diff options
Diffstat (limited to 'board/servo_v4/usb_pd_config.h')
-rw-r--r-- | board/servo_v4/usb_pd_config.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/board/servo_v4/usb_pd_config.h b/board/servo_v4/usb_pd_config.h index e56dc5c791..0d306771ba 100644 --- a/board/servo_v4/usb_pd_config.h +++ b/board/servo_v4/usb_pd_config.h @@ -55,6 +55,12 @@ /* use the hardware accelerator for CRC */ #define CONFIG_HW_CRC +/* Servo v4 CC configuration */ +#define CC_DETACH (1 << 0) /* Emulate detach: both CC open */ +#define CC_DISABLE_DTS (1 << 1) /* Apply resistors to single or both CC? */ +#define CC_ALLOW_SRC (1 << 2) /* Allow charge through by policy? */ +#define CC_ENABLE_DRP (1 << 3) /* Enable dual-role port */ + /* TX uses SPI1 on PB3-4 for CHG port, SPI2 on PB 13-14 for DUT port */ #define SPI_REGS(p) ((p) ? STM32_SPI2_REGS : STM32_SPI1_REGS) static inline void spi_enable_clock(int port) |