Skip to content

Commit 9286190

Browse files
committed
ODROID-N2: scp_task: fix to mitigate GL3523 defect issue
Signed-off-by: Dongjin Kim <tobetter@gmail.com> Change-Id: I598a72301c27431eea9c904771294e9009932eae
1 parent e0725c1 commit 9286190

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • board/hardkernel/odroidn2/firmware/scp_task

board/hardkernel/odroidn2/firmware/scp_task/pwr_ctrl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static void power_off_at_24M(unsigned int suspend_from)
8080
writel(readl(AO_GPIO_O_EN_N) & (~(1 << 4)), AO_GPIO_O_EN_N);
8181
writel(readl(AO_RTI_PIN_MUX_REG) & (~(0xf << 16)), AO_RTI_PIN_MUX_REG);
8282

83-
if (!enable_wol) {
83+
if (!enable_5V_system_power && !enable_wol) {
8484
/*set test_n low to power off vcck_b & vcc 3.3v*/
8585
writel(readl(AO_GPIO_O) & (~(1 << 31)), AO_GPIO_O);
8686
writel(readl(AO_GPIO_O_EN_N) & (~(1 << 31)), AO_GPIO_O_EN_N);
@@ -96,7 +96,7 @@ static void power_on_at_24M(unsigned int suspend_from)
9696
/*step up ee voltage*/
9797
set_vddee_voltage(CONFIG_VDDEE_INIT_VOLTAGE);
9898

99-
if (!enable_wol) {
99+
if (!enable_5V_system_power && !enable_wol) {
100100
/*set test_n high to power on vcck_b & vcc 3.3v*/
101101
writel(readl(AO_GPIO_O) | (1 << 31), AO_GPIO_O);
102102
writel(readl(AO_GPIO_O_EN_N) & (~(1 << 31)), AO_GPIO_O_EN_N);
@@ -112,7 +112,7 @@ static void power_on_at_24M(unsigned int suspend_from)
112112

113113
if (!enable_5V_system_power)
114114
{
115-
/*set gpioH_8 low to power on vcc 5v*/
115+
/*set gpioH_8 high to power on vcc 5v*/
116116
writel(readl(PREG_PAD_GPIO3_EN_N) | (1 << 8), PREG_PAD_GPIO3_EN_N);
117117
writel(readl(PERIPHS_PIN_MUX_C) & (~(0xf)), PERIPHS_PIN_MUX_C);
118118
}

0 commit comments

Comments
 (0)