Skip to content

Commit 7a8bd3d

Browse files
Titan-Realtekdanieldegrasse
authored andcommitted
soc : realtek: ec: rts5912: fix VIN polarity issue
fix ulpm driver polarity issue. when pin-pol set to falling need to set the POL bit to 1. when pin-pol set to rising need to set the POL bit to 0. Signed-off-by: Titan Chen <titan.chen@realtek.com>
1 parent 91c71dd commit 7a8bd3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soc/realtek/ec/rts5912/rts5912_ulpm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ void rts5912_ulpm_enable(void)
146146
if (wkup_pins_cfgs[i].pin_mode == RTS5912_ULPM_WKUP_PIN_MODE_VIN) {
147147
LOG_DBG("setup VIN%d in ", id);
148148
/* Configure Polarity */
149-
if (wkup_pins_cfgs[i].pin_pol == RTS5912_ULPM_WKUP_PIN_POL_RISING) {
149+
if (wkup_pins_cfgs[i].pin_pol == RTS5912_ULPM_WKUP_PIN_POL_FALLING) {
150150
/* Falling Edge */
151151
sys_reg->VIVOCTRL |= BIT(SYSTEM_VIVOCTRL_VIN0POL_Pos + id);
152152
LOG_DBG("Falling Edge\n");

0 commit comments

Comments
 (0)