quick_dump/skl: Make quick_dump SKL aware

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
Damien Lespiau 2014-10-06 17:42:33 +01:00
parent d0a412597b
commit 7f8228955f
4 changed files with 10 additions and 0 deletions

View File

@ -11,6 +11,7 @@ extern int is_valleyview(unsigned short pciid);
extern int is_cherryview(unsigned short pciid);
extern int is_haswell(unsigned short pciid);
extern int is_broadwell(unsigned short pciid);
extern int is_skylake(unsigned short pciid);
extern struct pci_device *intel_get_pci_device();
extern int intel_register_access_init(struct pci_device *pci_dev, int safe);
extern uint32_t intel_register_read(uint32_t reg);
@ -28,6 +29,7 @@ extern int is_valleyview(unsigned short pciid);
extern int is_cherryview(unsigned short pciid);
extern int is_haswell(unsigned short pciid);
extern int is_broadwell(unsigned short pciid);
extern int is_skylake(unsigned short pciid);
extern struct pci_device *intel_get_pci_device();
extern int intel_register_access_init(struct pci_device *pci_dev, int safe);
extern uint32_t intel_register_read(uint32_t reg);

View File

@ -33,6 +33,11 @@ int is_broadwell(unsigned short pciid)
return IS_BROADWELL(pciid);
}
int is_skylake(unsigned short pciid)
{
return IS_SKYLAKE(pciid);
}
/* Simple helper because I couldn't make this work in the script */
unsigned short pcidev_to_devid(struct pci_device *pdev)
{

View File

@ -72,6 +72,8 @@ def autodetect_chipset():
return open('haswell', 'r')
elif chipset.is_broadwell(devid):
return open('broadwell', 'r')
elif chipset.is_skylake(devid):
return open('skylake', 'r')
else:
print("Autodetect of devid " + hex(devid) + " failed")
return None

1
tools/quick_dump/skylake Normal file
View File

@ -0,0 +1 @@
skl_display.txt