summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorDavid Hendricks <dhendrix@chromium.org>2012-08-31 18:05:42 -0700
committerGerrit <chrome-bot@google.com>2012-09-04 12:05:25 -0700
commit9591d70bcd74cadb561ef880bb22e78a932a774f (patch)
treeb377476b8015fc47540b30824639bf154512d010 /common
parent7d1ffde50818b6a0eb1ccb58f571a6f7bcd65a4c (diff)
downloadchrome-ec-9591d70bcd74cadb561ef880bb22e78a932a774f.tar.gz
make pmu register dump more verbose
This adds a row that displays register offset and increases highest register offset to 18. The new output is 79 columns wide. Signed-off-by: David Hendricks <dhendrix@chromium.org> BRANCH=snow BUG=none TEST=see below Before: pmu PMU: 0c 00 3e 00 12 20 4b bf ff ff 00 12 pmu events b00001100 ac gpio 0 After: > pmu 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16 17 18 PMU: 0c 00 fe ff 12 20 4b bf ff ff 00 12 1e 1e 1e 1f 1f 1f 02 1f 1f 02 20 00 00 pmu events b00001100 ac gpio 0 Change-Id: I5058e5aee1affadaa00f20de785c1ea70eaea82e Reviewed-on: https://gerrit.chromium.org/gerrit/32082 Reviewed-by: Rong Chang <rongchang@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Commit-Ready: David Hendricks <dhendrix@chromium.org> Tested-by: David Hendricks <dhendrix@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/pmu_tps65090.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/common/pmu_tps65090.c b/common/pmu_tps65090.c
index 3af89ad5bb..23027cd6a1 100644
--- a/common/pmu_tps65090.c
+++ b/common/pmu_tps65090.c
@@ -536,13 +536,16 @@ static int print_pmu_info(void)
int reg, ret;
int value;
- for (reg = 0; reg < 0xc; reg++) {
+ ccprintf(" ");
+ for (reg = 0; reg <= 0x18; reg++)
+ ccprintf("%02x ", reg);
+ ccprintf("\n");
+
+ ccprintf("PMU: ");
+ for (reg = 0; reg <= 0x18; reg++) {
ret = pmu_read(reg, &value);
if (ret)
return ret;
- if (!reg)
- ccputs("PMU: ");
-
ccprintf("%02x ", value);
}
ccputs("\n");