diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2014-08-28 16:32:46 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2014-09-18 12:56:55 +0300 |
commit | b39eb28c256ecdf4f60dab08dba4bbc36294a576 (patch) | |
tree | 4add7a490ef22b03722865b35a9df34611d980e6 /tools/intel_iosf_sb_write.c | |
parent | 50534460dd2034bd4cbdabd803fa2680cbc7b490 (diff) |
tools: Allow iosf-sb utils to work on chv
Unlike the kernel IS_VALLEYVIEW() doesn't cover chv in igt. Add the
appropriate IS_CHERRYVIEW() checks to the various sideband poking tools.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tools/intel_iosf_sb_write.c')
-rw-r--r-- | tools/intel_iosf_sb_write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/intel_iosf_sb_write.c b/tools/intel_iosf_sb_write.c index 0d3dea20..251b6607 100644 --- a/tools/intel_iosf_sb_write.c +++ b/tools/intel_iosf_sb_write.c @@ -42,7 +42,7 @@ int main(int argc, char** argv) uint32_t port, reg, val, tmp; struct pci_device *dev = intel_get_pci_device(); - if (argc != 4 || !IS_VALLEYVIEW(dev->device_id)) { + if (argc != 4 || !(IS_VALLEYVIEW(dev->device_id) || IS_CHERRYVIEW(dev->device_id))) { usage(argv[0]); return 1; } |