summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBen Widawsky <ben@bwidawsk.net>2013-05-22 16:15:04 -0700
committerBen Widawsky <ben@bwidawsk.net>2013-05-22 16:15:04 -0700
commit1109c5acfd58d6f5d7c4b0f1d9961fdc3bfc7732 (patch)
treeb437afd4565b462f77e6ca5ca9cc8630a63fb8f8 /tools
parent099a92ea28d3bceffaebf7d65ae5a9219038ae0e (diff)
quick_dump: Add basic haswell support
Mostly using the IVB registers + a few I grabbed from i915_reg.h Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Diffstat (limited to 'tools')
-rw-r--r--tools/quick_dump/haswell1
-rw-r--r--tools/quick_dump/haswell_other.txt7
-rw-r--r--tools/quick_dump/intel_chipset.c5
-rwxr-xr-xtools/quick_dump/quick_dump.py2
4 files changed, 15 insertions, 0 deletions
diff --git a/tools/quick_dump/haswell b/tools/quick_dump/haswell
new file mode 100644
index 00000000..87d863b9
--- /dev/null
+++ b/tools/quick_dump/haswell
@@ -0,0 +1 @@
+haswell_other.txt
diff --git a/tools/quick_dump/haswell_other.txt b/tools/quick_dump/haswell_other.txt
new file mode 100644
index 00000000..c9904c22
--- /dev/null
+++ b/tools/quick_dump/haswell_other.txt
@@ -0,0 +1,7 @@
+('HSW_FUSE_STRAP', '0x00042014', '')
+('HSW_PWR_WELL_BIOS', '0x00045400', '')
+('HSW_PWR_WELL_DRIVER', '0x00045404', '')
+('HSW_PWR_WELL_KVMR', '0x00045408', '')
+('HSW_PWR_WELL_DEBUG', '0x0004540c', '')
+('HSW_PWR_WELL_CTL5', '0x00045410', '')
+('HSW_PWR_WELL_CTL6', '0x00045414', '')
diff --git a/tools/quick_dump/intel_chipset.c b/tools/quick_dump/intel_chipset.c
index d6e7f91d..c26d36c2 100644
--- a/tools/quick_dump/intel_chipset.c
+++ b/tools/quick_dump/intel_chipset.c
@@ -16,6 +16,11 @@ int is_valleyview(unsigned short pciid)
return IS_VALLEYVIEW(pciid);
}
+int is_haswell(unsigned short pciid)
+{
+ return IS_HASWELL(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 dd64710e..6111b5d8 100755
--- a/tools/quick_dump/quick_dump.py
+++ b/tools/quick_dump/quick_dump.py
@@ -49,6 +49,8 @@ if args.autodetect:
args.profile = open('ivybridge', 'r')
elif chipset.is_valleyview(devid):
args.profile = open('valleyview', 'r')
+ elif chipset.is_haswell(devid):
+ args.profile = open('haswell', 'r')
else:
print("Autodetect of %x " + devid + " failed")