diff options
author | Chris Wang <chris.wang@amd.corp-partner.google.com> | 2021-01-26 20:09:34 +0800 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2021-01-28 20:44:27 +0000 |
commit | ad4f6d7c6e10027d420d3bae722b734674643873 (patch) | |
tree | c019d327f3932e3dc30881e3ed9080c39799a31b /src/soc/amd/picasso/include | |
parent | 15e379aaf334e7931710b4208ccedf2f9ee44b0d (diff) |
soc/amd/picasso: allow USB_PD port setting override
Allow to override the RFMUX setting if the board does not use PD chip.
BUG=b:177389383
BRANCH=none
TEST=Build; Check the USB_PD port been override.
Change-Id: Idd559b67668846805005a6e00f5a84655310f348
Signed-off-by: Chris Wang <chris.wang@amd.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49932
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd/picasso/include')
-rw-r--r-- | src/soc/amd/picasso/include/soc/i2c.h | 7 |
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. */ |