summaryrefslogtreecommitdiff
path: root/tools/intel_reg.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2015-08-19 17:34:45 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2015-09-11 15:32:28 +0300
commit7d2f1d7d9ed44d45b91ebdda9fe25d90cbaa92ab (patch)
tree8d0303843e9f3a452f1f12ef12ab38624b379712 /tools/intel_reg.c
parentfb8131545f386348403fba32dc22c79b4aa110af (diff)
tools/intel_reg: Print the potential port names in the help text
v2: Repaint with Jani's favorite color Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tools/intel_reg.c')
-rw-r--r--tools/intel_reg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/intel_reg.c b/tools/intel_reg.c
index fb3461f7..84b3c9de 100644
--- a/tools/intel_reg.c
+++ b/tools/intel_reg.c
@@ -631,6 +631,11 @@ static int intel_reg_help(struct config *config, int argc, char *argv[])
printf(" [(PORTNAME|PORTNUM|MMIO-OFFSET):](REGNAME|REGADDR)\n");
printf("\n");
+ printf("PORTNAME is one of:\n");
+ intel_reg_spec_print_ports();
+ printf("\n");
+
+ printf("\n");
printf("OPTIONS common to most COMMANDS:\n");
printf(" --spec=PATH Read register spec from directory or file\n");
printf(" --mmio=FILE Use an MMIO snapshot\n");