summaryrefslogtreecommitdiff
path: root/src/soc/amd/picasso/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd/picasso/include')
-rw-r--r--src/soc/amd/picasso/include/soc/i2c.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/soc/amd/picasso/include/soc/i2c.h b/src/soc/amd/picasso/include/soc/i2c.h
index 3e94a1ad62..41b930b186 100644
--- a/src/soc/amd/picasso/include/soc/i2c.h
+++ b/src/soc/amd/picasso/include/soc/i2c.h
@@ -21,6 +21,13 @@ struct soc_amd_i2c_save {
#define I2C2_SCL_PIN_IOMUX_GPIOxx GPIO_113_IOMUX_GPIOxx
#define I2C3_SCL_PIN_IOMUX_GPIOxx GPIO_19_IOMUX_GPIOxx
+#define I2C4_USB_PD_CTRL_OFFSET 0x600
+#define USB_PD_PORT_CONTROL (APU_I2C4_BASE + I2C4_USB_PD_CTRL_OFFSET)
+#define PD_PORT_MUX_OFFSET(x) (0x10 * (x))
+#define DP_REVERSE BIT(4)
+#define USB_PD_RFMUX_OVERRIDE BIT(8)
+#define USB_PD_DP_OVERRIDE BIT(9)
+
void sb_reset_i2c_slaves(void);
/* Sets the base address for the specific I2C bus. */