diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2014-05-28 18:45:27 +0300 |
---|---|---|
committer | Imre Deak <imre.deak@intel.com> | 2014-06-03 22:19:42 +0300 |
commit | 6d2577c74117e0f246152d2a16c96626c496a824 (patch) | |
tree | fab40d30fbe28b52fe01d27b8df9ca7aa4f12e7d /tools | |
parent | 9a642a72873c2df8a0c8ad8b63e25e42b1646382 (diff) |
quick_dump: chv: add detection support
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/quick_dump/chipset.i | 2 | ||||
-rw-r--r-- | tools/quick_dump/chipset_macro_wrap.c | 5 | ||||
-rwxr-xr-x | tools/quick_dump/quick_dump.py | 2 |
3 files changed, 9 insertions, 0 deletions
diff --git a/tools/quick_dump/chipset.i b/tools/quick_dump/chipset.i index 6dd92ccc..a6fa7034 100644 --- a/tools/quick_dump/chipset.i +++ b/tools/quick_dump/chipset.i @@ -8,6 +8,7 @@ extern int is_sandybridge(unsigned short pciid); extern int is_ivybridge(unsigned short pciid); 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 struct pci_device *intel_get_pci_device(); @@ -24,6 +25,7 @@ extern uint32_t intel_flisdsi_reg_read(uint32_t reg); extern int is_sandybridge(unsigned short pciid); extern int is_ivybridge(unsigned short pciid); 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 struct pci_device *intel_get_pci_device(); diff --git a/tools/quick_dump/chipset_macro_wrap.c b/tools/quick_dump/chipset_macro_wrap.c index ee79777e..8bba9f71 100644 --- a/tools/quick_dump/chipset_macro_wrap.c +++ b/tools/quick_dump/chipset_macro_wrap.c @@ -18,6 +18,11 @@ int is_valleyview(unsigned short pciid) return IS_VALLEYVIEW(pciid); } +int is_cherryview(unsigned short pciid) +{ + return IS_CHERRYVIEW(pciid); +} + int is_haswell(unsigned short pciid) { return IS_HASWELL(pciid); diff --git a/tools/quick_dump/quick_dump.py b/tools/quick_dump/quick_dump.py index c292f3d0..19568cba 100755 --- a/tools/quick_dump/quick_dump.py +++ b/tools/quick_dump/quick_dump.py @@ -64,6 +64,8 @@ def autodetect_chipset(): return open('sandybridge', 'r') elif chipset.is_ivybridge(devid): return open('ivybridge', 'r') + elif chipset.is_cherryview(devid): + return open('cherryview', 'r') elif chipset.is_valleyview(devid): return open('valleyview', 'r') elif chipset.is_haswell(devid): |