diff options
author | Scott Collyer <scollyer@google.com> | 2020-12-12 19:12:02 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-12-22 17:42:10 +0000 |
commit | 283c0e9ebe822201b282beca8818e81fc2217c05 (patch) | |
tree | f4e17fbe6b80e54a57fd4b1c0e3536e1b3a656f1 /chip/stm32/registers-stm32g4.h | |
parent | 4b996f19dfc12c3bbce79601b15e325a782211db (diff) | |
download | chrome-ec-283c0e9ebe822201b282beca8818e81fc2217c05.tar.gz |
stm32g4: ucpd: Add missing tcpci methods
This CL adds a VCONN enabe/disable support function to remove the
pull resistor and 2 addiltional functions which are required to
complete the stm32gx tcpci driver.
BUG=b:167601672
BRANCH=None
TEST=verfied type-c attaches properly on quiche
Signed-off-by: Scott Collyer <scollyer@google.com>
Change-Id: I5a3732f15a5a0af9d372ae37475e9e8bdd3914b4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2588850
Tested-by: Scott Collyer <scollyer@chromium.org>
Commit-Queue: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'chip/stm32/registers-stm32g4.h')
-rw-r--r-- | chip/stm32/registers-stm32g4.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chip/stm32/registers-stm32g4.h b/chip/stm32/registers-stm32g4.h index c774118159..cf4306984b 100644 --- a/chip/stm32/registers-stm32g4.h +++ b/chip/stm32/registers-stm32g4.h @@ -896,6 +896,7 @@ typedef volatile struct stm32_spi_regs stm32_spi_regs_t; #define STM32_SPI_SR_FTLVL (3 << 11) /* --- Debug --- */ +#define STM32_DBGMCU_IDCODE REG32(STM32_DBGMCU_BASE + 0x00) #define STM32_DBGMCU_CR REG32(STM32_DBGMCU_BASE + 0x04) #define STM32_DBGMCU_APB1FZ REG32(STM32_DBGMCU_BASE + 0x08) #define STM32_DBGMCU_APB2FZ REG32(STM32_DBGMCU_BASE + 0x0C) |