summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew McRae <amcrae@google.com>2020-07-28 15:20:17 +1000
committerCommit Bot <commit-bot@chromium.org>2020-07-28 10:59:30 +0000
commitce7692b4330dc86eeefba490d86fce607a304af0 (patch)
tree71ee265ac3b529097b7192d6b329329bb3833465
parentea077cccd9e5cf25176ab9082be438ac26823126 (diff)
downloadchrome-ec-ce7692b4330dc86eeefba490d86fce607a304af0.tar.gz
anx7447: Add mux registers to register dump
Add the ANX7447 mux registers to the tcpc register dump. BUG=none TEST=Confirm that mux registers are displayed. BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I4dcee0e6378f6a4e4dc60bfcdee27671a0ff0119 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2321821 Tested-by: Andrew McRae <amcrae@chromium.org> Reviewed-by: Peter Marheine <pmarheine@chromium.org> Commit-Queue: Andrew McRae <amcrae@chromium.org>
-rw-r--r--driver/tcpm/anx7447.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/driver/tcpm/anx7447.c b/driver/tcpm/anx7447.c
index 28fb702ef7..f1fda87cf1 100644
--- a/driver/tcpm/anx7447.c
+++ b/driver/tcpm/anx7447.c
@@ -707,6 +707,21 @@ static int anx7447_set_polarity(int port,
#ifdef CONFIG_CMD_TCPC_DUMP
static const struct tcpc_reg_dump_map anx7447_regs[] = {
{
+ .addr = ANX7447_REG_TCPC_SWITCH_0,
+ .name = "SWITCH_0",
+ .size = 1,
+ },
+ {
+ .addr = ANX7447_REG_TCPC_SWITCH_1,
+ .name = "SWITCH_1",
+ .size = 1,
+ },
+ {
+ .addr = ANX7447_REG_TCPC_AUX_SWITCH,
+ .name = "AUX_SWITCH",
+ .size = 1,
+ },
+ {
.addr = ANX7447_REG_ADC_CTRL_1,
.name = "ADC_CTRL_1",
.size = 1,