syv682x: Set SYV682X HV_ILIM depend on sink path.
Set syv682x HV_ILIM when source path enable.
BRANCH=master
TEST=Use ppc_dump <port> to check the setting correct.
@@ -297,6 +297,8 @@ static int syv682x_vbus_sink_enable(int port, int enable)
/* Select Sink mode and turn on the channel */
regval &= ~(SYV682X_CONTROL_1_HV_DR |
SYV682X_CONTROL_1_PWR_ENB);
+ /* Set sink current limit to the configured value */
+ regval |= CONFIG_SYV682X_HV_ILIM << SYV682X_HV_ILIM_BIT_SHIFT;
flags[port] &= ~SYV682X_FLAGS_SOURCE_ENABLED;
} else {
/*
