summaryrefslogtreecommitdiff
path: root/tools/intel_iosf_sb_read.c
AgeCommit message (Collapse)Author
2015-03-24tools/intel_iosf_sb_read: Support different register stridesVille Syrjälä
Some IOSF SB units ogranize their registers in a pecualiar way. Even though the registers are 32 bits wide, the register offsets only increment by one when going from one register to the next. Correctly deal with this when dumping several consecutive registers. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2015-03-24tools/intel_iosf_sb_read: Add -c command line option like intel_reg_readVille Syrjälä
Add a command line option '-c <count>' that can be used to read set of consecutive registers without having to specify the offset for each of them. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2015-03-24tools/intel_iosf_sb_*: Support reading/writing multiple registers at onceVille Syrjälä
Allow the user to specify a list of registers to read, and register/value pairs to write. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2015-03-24tools/intel_iosf_sb_*: Use getopt() to parse the optionsVille Syrjälä
I want to add some command line options so switch to getopt() to make that easier. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2015-03-24tools/intel_iosf_sb_*: Replace if ladder with an array and bsearch()Ville Syrjälä
Replace the silly strcasecmp() if ladder with and array that maps the unit names to port numbers. And keep the thing sorted so we can do the lookup with bsearch() for extra speed :) Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2015-03-24toos/intel_iosf_sb_*: Fix DPIO IOSF SB port numberVille Syrjälä
The correct port is 0x12, not 0x13 which is actually GPIO_NC. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2014-09-18toos/intel_iosf_sb: Add symbolic unit namesVille Syrjälä
Add a bunc of symbolic sideband unit names so that you don't have to go trawling through the sideband HAS every time you want to poke at something with the tool. You can still specify the port manually though if you know them by heart already. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2014-09-18tools: Allow iosf-sb utils to work on chvVille Syrjälä
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>
2014-06-13tools: Add intel_iosf_sb_{read,write} toolsVille Syrjälä
Add generic tools to poke at IOSF sideband. The user needs to manually specify SB port as well as the register. TODO: Maybe add symbolic names for the units? Would avoid having to trawl the docs for the magic hex value. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>