summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2014-10-06 17:42:33 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2014-10-06 18:58:33 +0100
commit7f8228955f3f3eef42e6fc61f4fa95b37b36df75 (patch)
tree824ac25f8bceeed9cc1af1133b4c5ec4f66f849e /tools
parentd0a412597b92208d13d640013a2b277bd22f6c11 (diff)
quick_dump/skl: Make quick_dump SKL aware
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/quick_dump/chipset.i2
-rw-r--r--tools/quick_dump/chipset_macro_wrap.c5
-rwxr-xr-xtools/quick_dump/quick_dump.py2
-rw-r--r--tools/quick_dump/skylake1
4 files changed, 10 insertions, 0 deletions
diff --git a/tools/quick_dump/chipset.i b/tools/quick_dump/chipset.i
index a6fa7034..90db40e8 100644
--- a/tools/quick_dump/chipset.i
+++ b/tools/quick_dump/chipset.i
@@ -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);
diff --git a/tools/quick_dump/chipset_macro_wrap.c b/tools/quick_dump/chipset_macro_wrap.c
index 862281e2..7b673407 100644
--- a/tools/quick_dump/chipset_macro_wrap.c
+++ b/tools/quick_dump/chipset_macro_wrap.c
@@ -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)
{
diff --git a/tools/quick_dump/quick_dump.py b/tools/quick_dump/quick_dump.py
index 46e883e4..702a9d52 100755
--- a/tools/quick_dump/quick_dump.py
+++ b/tools/quick_dump/quick_dump.py
@@ -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
diff --git a/tools/quick_dump/skylake b/tools/quick_dump/skylake
new file mode 100644
index 00000000..95baca16
--- /dev/null
+++ b/tools/quick_dump/skylake
@@ -0,0 +1 @@
+skl_display.txt