From ce7692b4330dc86eeefba490d86fce607a304af0 Mon Sep 17 00:00:00 2001 From: Andrew McRae Date: Tue, 28 Jul 2020 15:20:17 +1000 Subject: 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 Change-Id: I4dcee0e6378f6a4e4dc60bfcdee27671a0ff0119 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2321821 Tested-by: Andrew McRae Reviewed-by: Peter Marheine Commit-Queue: Andrew McRae --- driver/tcpm/anx7447.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 @@ -706,6 +706,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", -- cgit v1.2.1