summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--driver/ppc/syv682x.c2
-rw-r--r--include/config.h6
2 files changed, 7 insertions, 1 deletions
diff --git a/driver/ppc/syv682x.c b/driver/ppc/syv682x.c
index c88ae9346b..fa73c75176 100644
--- a/driver/ppc/syv682x.c
+++ b/driver/ppc/syv682x.c
@@ -619,7 +619,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 6b9af1479a..cd1976ff33 100644
--- a/include/config.h
+++ b/include/config.h
@@ -4261,6 +4261,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 gating the SBU lines. */
#undef CONFIG_USBC_PPC_SBU