diff options
-rw-r--r-- | driver/ppc/syv682x.c | 2 | ||||
-rw-r--r-- | include/config.h | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/driver/ppc/syv682x.c b/driver/ppc/syv682x.c index f3c0d9dbb4..453e14e388 100644 --- a/driver/ppc/syv682x.c +++ b/driver/ppc/syv682x.c @@ -528,7 +528,7 @@ static int syv682x_init(int port) * select HV channel. */ regval = SYV682X_CONTROL_1_PWR_ENB | - (SYV682X_HV_ILIM_3_30 << SYV682X_HV_ILIM_BIT_SHIFT) | + (CONFIG_SYV682X_HV_ILIM << SYV682X_HV_ILIM_BIT_SHIFT) | /* !SYV682X_CONTROL_1_HV_DR */ SYV682X_CONTROL_1_CH_SEL; rv = write_reg(port, SYV682X_CONTROL_1_REG, regval); diff --git a/include/config.h b/include/config.h index 405e1cec93..d60cae8137 100644 --- a/include/config.h +++ b/include/config.h @@ -3377,6 +3377,12 @@ #undef CONFIG_USBC_PPC_SN5S330 #undef CONFIG_USBC_PPC_SYV682X +/* + * SYV682x PPC high voltage power path current limit. Default limit is + * 3.3A. See the syv682x header file for permissible values. + */ +#define CONFIG_SYV682X_HV_ILIM SYV682X_HV_ILIM_3_30 + /* PPC is capable of providing VCONN */ #undef CONFIG_USBC_PPC_VCONN |