From 0adc27a200c1c75781834e36c245946e3b307348 Mon Sep 17 00:00:00 2001 From: Portisch Date: Tue, 23 Oct 2018 13:14:41 +0200 Subject: gxb/gxl/gxm/txl: fix wakeup timer calc Change-Id: I47f3f7246ab263d0a0f2ff58ff539c625de15e89 --- board/amlogic/gxb_p200_v1/firmware/scp_task/pwr_ctrl.c | 2 +- board/amlogic/gxb_p201_v1/firmware/scp_task/pwr_ctrl.c | 2 +- board/amlogic/gxb_skt_v1/firmware/scp_task/pwr_ctrl.c | 2 +- board/amlogic/gxl_p212_v1/firmware/scp_task/pwr_ctrl.c | 2 +- board/amlogic/gxl_p241_v1/firmware/scp_task/pwr_ctrl.c | 2 +- board/amlogic/gxl_p271_v1/firmware/scp_task/pwr_ctrl.c | 2 +- board/amlogic/gxl_p281_v1/firmware/scp_task/pwr_ctrl.c | 2 +- board/amlogic/gxl_p400_v1/firmware/scp_task/pwr_ctrl.c | 2 +- board/amlogic/gxl_p401_v1/firmware/scp_task/pwr_ctrl.c | 2 +- board/amlogic/gxl_skt_v1/firmware/scp_task/pwr_ctrl.c | 2 +- board/amlogic/gxm_q200_v1/firmware/scp_task/pwr_ctrl.c | 2 +- board/amlogic/gxm_q201_v1/firmware/scp_task/pwr_ctrl.c | 2 +- board/amlogic/gxm_skt_v1/firmware/scp_task/pwr_ctrl.c | 2 +- board/amlogic/gxtvbb_9023_skt_v1/firmware/scp_task/pwr_ctrl.c | 2 +- board/amlogic/gxtvbb_p300_v1/firmware/scp_task/pwr_ctrl.c | 2 +- board/amlogic/gxtvbb_p301_v1/firmware/scp_task/pwr_ctrl.c | 2 +- board/amlogic/gxtvbb_p311_v1/firmware/scp_task/pwr_ctrl.c | 2 +- board/amlogic/gxtvbb_skt_v1/firmware/scp_task/pwr_ctrl.c | 2 +- board/amlogic/gxtvbb_t966_skt_v1/firmware/scp_task/pwr_ctrl.c | 2 +- board/amlogic/txl_p320_v1/firmware/scp_task/pwr_ctrl.c | 2 +- board/amlogic/txl_p321_v1/firmware/scp_task/pwr_ctrl.c | 2 +- board/amlogic/txl_p341_v1/firmware/scp_task/pwr_ctrl.c | 2 +- board/amlogic/txl_p341_v2/firmware/scp_task/pwr_ctrl.c | 2 +- board/amlogic/txl_p346_v1/firmware/scp_task/pwr_ctrl.c | 2 +- board/amlogic/txl_t950_skt_v1/firmware/scp_task/pwr_ctrl.c | 2 +- board/amlogic/txlx_t962e_r321_v1/firmware/scp_task/pwr_ctrl.c | 2 +- board/amlogic/txlx_t962x_r311_v1/firmware/scp_task/pwr_ctrl.c | 2 +- board/hardkernel/odroidc2/firmware/scp_task/pwr_ctrl.c | 2 +- 28 files changed, 28 insertions(+), 28 deletions(-) mode change 100644 => 100755 board/amlogic/gxb_p200_v1/firmware/scp_task/pwr_ctrl.c mode change 100644 => 100755 board/amlogic/gxb_p201_v1/firmware/scp_task/pwr_ctrl.c mode change 100644 => 100755 board/amlogic/gxb_skt_v1/firmware/scp_task/pwr_ctrl.c mode change 100644 => 100755 board/amlogic/gxl_p271_v1/firmware/scp_task/pwr_ctrl.c mode change 100644 => 100755 board/amlogic/gxtvbb_9023_skt_v1/firmware/scp_task/pwr_ctrl.c mode change 100644 => 100755 board/amlogic/gxtvbb_p300_v1/firmware/scp_task/pwr_ctrl.c mode change 100644 => 100755 board/amlogic/gxtvbb_p301_v1/firmware/scp_task/pwr_ctrl.c mode change 100644 => 100755 board/amlogic/gxtvbb_p311_v1/firmware/scp_task/pwr_ctrl.c mode change 100644 => 100755 board/amlogic/gxtvbb_skt_v1/firmware/scp_task/pwr_ctrl.c mode change 100644 => 100755 board/amlogic/gxtvbb_t966_skt_v1/firmware/scp_task/pwr_ctrl.c mode change 100644 => 100755 board/amlogic/txl_p320_v1/firmware/scp_task/pwr_ctrl.c mode change 100644 => 100755 board/amlogic/txl_p321_v1/firmware/scp_task/pwr_ctrl.c mode change 100644 => 100755 board/amlogic/txl_p341_v1/firmware/scp_task/pwr_ctrl.c mode change 100644 => 100755 board/amlogic/txl_p341_v2/firmware/scp_task/pwr_ctrl.c mode change 100644 => 100755 board/amlogic/txl_p346_v1/firmware/scp_task/pwr_ctrl.c mode change 100644 => 100755 board/amlogic/txl_t950_skt_v1/firmware/scp_task/pwr_ctrl.c mode change 100644 => 100755 board/amlogic/txlx_t962e_r321_v1/firmware/scp_task/pwr_ctrl.c mode change 100644 => 100755 board/amlogic/txlx_t962x_r311_v1/firmware/scp_task/pwr_ctrl.c mode change 100644 => 100755 board/hardkernel/odroidc2/firmware/scp_task/pwr_ctrl.c diff --git a/board/amlogic/gxb_p200_v1/firmware/scp_task/pwr_ctrl.c b/board/amlogic/gxb_p200_v1/firmware/scp_task/pwr_ctrl.c old mode 100644 new mode 100755 index c5fbeb7409..f266c649ab --- a/board/amlogic/gxb_p200_v1/firmware/scp_task/pwr_ctrl.c +++ b/board/amlogic/gxb_p200_v1/firmware/scp_task/pwr_ctrl.c @@ -240,7 +240,7 @@ static unsigned int detect_key(unsigned int suspend_from) #endif case IRQ_TIMERA_NUM: if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { wakeup_timer_clear(); exit_reason = AUTO_WAKEUP; diff --git a/board/amlogic/gxb_p201_v1/firmware/scp_task/pwr_ctrl.c b/board/amlogic/gxb_p201_v1/firmware/scp_task/pwr_ctrl.c old mode 100644 new mode 100755 index 2cf730cd50..0297cb240b --- a/board/amlogic/gxb_p201_v1/firmware/scp_task/pwr_ctrl.c +++ b/board/amlogic/gxb_p201_v1/firmware/scp_task/pwr_ctrl.c @@ -204,7 +204,7 @@ static unsigned int detect_key(unsigned int suspend_from) #endif case IRQ_TIMERA_NUM: if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { wakeup_timer_clear(); exit_reason = AUTO_WAKEUP; diff --git a/board/amlogic/gxb_skt_v1/firmware/scp_task/pwr_ctrl.c b/board/amlogic/gxb_skt_v1/firmware/scp_task/pwr_ctrl.c old mode 100644 new mode 100755 index a4aeb817f4..f3fc3f7931 --- a/board/amlogic/gxb_skt_v1/firmware/scp_task/pwr_ctrl.c +++ b/board/amlogic/gxb_skt_v1/firmware/scp_task/pwr_ctrl.c @@ -237,7 +237,7 @@ static unsigned int detect_key(unsigned int suspend_from) #endif case IRQ_TIMERA_NUM: if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { wakeup_timer_clear(); exit_reason = AUTO_WAKEUP; diff --git a/board/amlogic/gxl_p212_v1/firmware/scp_task/pwr_ctrl.c b/board/amlogic/gxl_p212_v1/firmware/scp_task/pwr_ctrl.c index e2a92e23c1..1079a20c15 100755 --- a/board/amlogic/gxl_p212_v1/firmware/scp_task/pwr_ctrl.c +++ b/board/amlogic/gxl_p212_v1/firmware/scp_task/pwr_ctrl.c @@ -234,7 +234,7 @@ static unsigned int detect_key(unsigned int suspend_from) if (irq[IRQ_TIMERA] == IRQ_TIMERA_NUM) { irq[IRQ_TIMERA] = 0xFFFFFFFF; if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { wakeup_timer_clear(); exit_reason = AUTO_WAKEUP; diff --git a/board/amlogic/gxl_p241_v1/firmware/scp_task/pwr_ctrl.c b/board/amlogic/gxl_p241_v1/firmware/scp_task/pwr_ctrl.c index 66ed83e3c0..55a460b97a 100755 --- a/board/amlogic/gxl_p241_v1/firmware/scp_task/pwr_ctrl.c +++ b/board/amlogic/gxl_p241_v1/firmware/scp_task/pwr_ctrl.c @@ -236,7 +236,7 @@ static unsigned int detect_key(unsigned int suspend_from) if (irq[IRQ_TIMERA] == IRQ_TIMERA_NUM) { irq[IRQ_TIMERA] = 0xFFFFFFFF; if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { wakeup_timer_clear(); exit_reason = AUTO_WAKEUP; diff --git a/board/amlogic/gxl_p271_v1/firmware/scp_task/pwr_ctrl.c b/board/amlogic/gxl_p271_v1/firmware/scp_task/pwr_ctrl.c old mode 100644 new mode 100755 index 373141b071..cb4a438880 --- a/board/amlogic/gxl_p271_v1/firmware/scp_task/pwr_ctrl.c +++ b/board/amlogic/gxl_p271_v1/firmware/scp_task/pwr_ctrl.c @@ -227,7 +227,7 @@ static unsigned int detect_key(unsigned int suspend_from) if (irq[IRQ_TIMERA] == IRQ_TIMERA_NUM) { irq[IRQ_TIMERA] = 0xFFFFFFFF; if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { wakeup_timer_clear(); exit_reason = AUTO_WAKEUP; diff --git a/board/amlogic/gxl_p281_v1/firmware/scp_task/pwr_ctrl.c b/board/amlogic/gxl_p281_v1/firmware/scp_task/pwr_ctrl.c index 0f1dbd1b98..0e0dc0df55 100755 --- a/board/amlogic/gxl_p281_v1/firmware/scp_task/pwr_ctrl.c +++ b/board/amlogic/gxl_p281_v1/firmware/scp_task/pwr_ctrl.c @@ -234,7 +234,7 @@ static unsigned int detect_key(unsigned int suspend_from) if (irq[IRQ_TIMERA] == IRQ_TIMERA_NUM) { irq[IRQ_TIMERA] = 0xFFFFFFFF; if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { wakeup_timer_clear(); exit_reason = AUTO_WAKEUP; diff --git a/board/amlogic/gxl_p400_v1/firmware/scp_task/pwr_ctrl.c b/board/amlogic/gxl_p400_v1/firmware/scp_task/pwr_ctrl.c index bed023e438..53898c4123 100755 --- a/board/amlogic/gxl_p400_v1/firmware/scp_task/pwr_ctrl.c +++ b/board/amlogic/gxl_p400_v1/firmware/scp_task/pwr_ctrl.c @@ -241,7 +241,7 @@ static unsigned int detect_key(unsigned int suspend_from) if (irq[IRQ_TIMERA] == IRQ_TIMERA_NUM) { irq[IRQ_TIMERA] = 0xFFFFFFFF; if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { wakeup_timer_clear(); exit_reason = AUTO_WAKEUP; diff --git a/board/amlogic/gxl_p401_v1/firmware/scp_task/pwr_ctrl.c b/board/amlogic/gxl_p401_v1/firmware/scp_task/pwr_ctrl.c index bed023e438..53898c4123 100755 --- a/board/amlogic/gxl_p401_v1/firmware/scp_task/pwr_ctrl.c +++ b/board/amlogic/gxl_p401_v1/firmware/scp_task/pwr_ctrl.c @@ -241,7 +241,7 @@ static unsigned int detect_key(unsigned int suspend_from) if (irq[IRQ_TIMERA] == IRQ_TIMERA_NUM) { irq[IRQ_TIMERA] = 0xFFFFFFFF; if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { wakeup_timer_clear(); exit_reason = AUTO_WAKEUP; diff --git a/board/amlogic/gxl_skt_v1/firmware/scp_task/pwr_ctrl.c b/board/amlogic/gxl_skt_v1/firmware/scp_task/pwr_ctrl.c index 7ce73e31d2..36c0a25aee 100755 --- a/board/amlogic/gxl_skt_v1/firmware/scp_task/pwr_ctrl.c +++ b/board/amlogic/gxl_skt_v1/firmware/scp_task/pwr_ctrl.c @@ -226,7 +226,7 @@ static unsigned int detect_key(unsigned int suspend_from) if (irq[IRQ_TIMERA] == IRQ_TIMERA_NUM) { irq[IRQ_TIMERA] = 0xFFFFFFFF; if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { wakeup_timer_clear(); exit_reason = AUTO_WAKEUP; diff --git a/board/amlogic/gxm_q200_v1/firmware/scp_task/pwr_ctrl.c b/board/amlogic/gxm_q200_v1/firmware/scp_task/pwr_ctrl.c index ef08e7c920..963bceef8b 100755 --- a/board/amlogic/gxm_q200_v1/firmware/scp_task/pwr_ctrl.c +++ b/board/amlogic/gxm_q200_v1/firmware/scp_task/pwr_ctrl.c @@ -252,7 +252,7 @@ static unsigned int detect_key(unsigned int suspend_from) if (irq[IRQ_TIMERA] == IRQ_TIMERA_NUM) { irq[IRQ_TIMERA] = 0xFFFFFFFF; if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { wakeup_timer_clear(); exit_reason = AUTO_WAKEUP; diff --git a/board/amlogic/gxm_q201_v1/firmware/scp_task/pwr_ctrl.c b/board/amlogic/gxm_q201_v1/firmware/scp_task/pwr_ctrl.c index a4b0b1d3bc..aa82781987 100755 --- a/board/amlogic/gxm_q201_v1/firmware/scp_task/pwr_ctrl.c +++ b/board/amlogic/gxm_q201_v1/firmware/scp_task/pwr_ctrl.c @@ -253,7 +253,7 @@ static unsigned int detect_key(unsigned int suspend_from) if (irq[IRQ_TIMERA] == IRQ_TIMERA_NUM) { irq[IRQ_TIMERA] = 0xFFFFFFFF; if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { wakeup_timer_clear(); exit_reason = AUTO_WAKEUP; diff --git a/board/amlogic/gxm_skt_v1/firmware/scp_task/pwr_ctrl.c b/board/amlogic/gxm_skt_v1/firmware/scp_task/pwr_ctrl.c index 55dc54d5bd..69bdb39f9a 100755 --- a/board/amlogic/gxm_skt_v1/firmware/scp_task/pwr_ctrl.c +++ b/board/amlogic/gxm_skt_v1/firmware/scp_task/pwr_ctrl.c @@ -240,7 +240,7 @@ static unsigned int detect_key(unsigned int suspend_from) if (irq[IRQ_TIMERA] == IRQ_TIMERA_NUM) { irq[IRQ_TIMERA] = 0xFFFFFFFF; if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { wakeup_timer_clear(); exit_reason = AUTO_WAKEUP; diff --git a/board/amlogic/gxtvbb_9023_skt_v1/firmware/scp_task/pwr_ctrl.c b/board/amlogic/gxtvbb_9023_skt_v1/firmware/scp_task/pwr_ctrl.c old mode 100644 new mode 100755 index 5be84ab965..684090671f --- a/board/amlogic/gxtvbb_9023_skt_v1/firmware/scp_task/pwr_ctrl.c +++ b/board/amlogic/gxtvbb_9023_skt_v1/firmware/scp_task/pwr_ctrl.c @@ -142,7 +142,7 @@ static unsigned int detect_key(unsigned int suspend_from) if (irq[IRQ_TIMERA] == IRQ_TIMERA_NUM) { irq[IRQ_TIMERA] = 0xFFFFFFFF; if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { wakeup_timer_clear(); exit_reason = AUTO_WAKEUP; diff --git a/board/amlogic/gxtvbb_p300_v1/firmware/scp_task/pwr_ctrl.c b/board/amlogic/gxtvbb_p300_v1/firmware/scp_task/pwr_ctrl.c old mode 100644 new mode 100755 index c4cc369cfc..69e6287499 --- a/board/amlogic/gxtvbb_p300_v1/firmware/scp_task/pwr_ctrl.c +++ b/board/amlogic/gxtvbb_p300_v1/firmware/scp_task/pwr_ctrl.c @@ -384,7 +384,7 @@ static unsigned int detect_key(unsigned int suspend_from) if (irq[IRQ_TIMERA] == IRQ_TIMERA_NUM) { irq[IRQ_TIMERA] = 0xFFFFFFFF; if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { wakeup_timer_clear(); exit_reason = AUTO_WAKEUP; diff --git a/board/amlogic/gxtvbb_p301_v1/firmware/scp_task/pwr_ctrl.c b/board/amlogic/gxtvbb_p301_v1/firmware/scp_task/pwr_ctrl.c old mode 100644 new mode 100755 index 8724a74de2..302b263ead --- a/board/amlogic/gxtvbb_p301_v1/firmware/scp_task/pwr_ctrl.c +++ b/board/amlogic/gxtvbb_p301_v1/firmware/scp_task/pwr_ctrl.c @@ -369,7 +369,7 @@ static unsigned int detect_key(unsigned int suspend_from) if (irq[IRQ_TIMERA] == IRQ_TIMERA_NUM) { irq[IRQ_TIMERA] = 0xFFFFFFFF; if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { wakeup_timer_clear(); exit_reason = AUTO_WAKEUP; diff --git a/board/amlogic/gxtvbb_p311_v1/firmware/scp_task/pwr_ctrl.c b/board/amlogic/gxtvbb_p311_v1/firmware/scp_task/pwr_ctrl.c old mode 100644 new mode 100755 index 726f5dc1d3..9dfc60d8ad --- a/board/amlogic/gxtvbb_p311_v1/firmware/scp_task/pwr_ctrl.c +++ b/board/amlogic/gxtvbb_p311_v1/firmware/scp_task/pwr_ctrl.c @@ -258,7 +258,7 @@ static unsigned int detect_key(unsigned int suspend_from) if (irq[IRQ_TIMERA] == IRQ_TIMERA_NUM) { irq[IRQ_TIMERA] = 0xFFFFFFFF; if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { wakeup_timer_clear(); exit_reason = AUTO_WAKEUP; diff --git a/board/amlogic/gxtvbb_skt_v1/firmware/scp_task/pwr_ctrl.c b/board/amlogic/gxtvbb_skt_v1/firmware/scp_task/pwr_ctrl.c old mode 100644 new mode 100755 index 6939bb567b..c38116ede9 --- a/board/amlogic/gxtvbb_skt_v1/firmware/scp_task/pwr_ctrl.c +++ b/board/amlogic/gxtvbb_skt_v1/firmware/scp_task/pwr_ctrl.c @@ -354,7 +354,7 @@ static unsigned int detect_key(unsigned int suspend_from) if (irq[IRQ_TIMERA] == IRQ_TIMERA_NUM) { irq[IRQ_TIMERA] = 0xFFFFFFFF; if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { wakeup_timer_clear(); exit_reason = AUTO_WAKEUP; diff --git a/board/amlogic/gxtvbb_t966_skt_v1/firmware/scp_task/pwr_ctrl.c b/board/amlogic/gxtvbb_t966_skt_v1/firmware/scp_task/pwr_ctrl.c old mode 100644 new mode 100755 index fc355ac981..c6285e7799 --- a/board/amlogic/gxtvbb_t966_skt_v1/firmware/scp_task/pwr_ctrl.c +++ b/board/amlogic/gxtvbb_t966_skt_v1/firmware/scp_task/pwr_ctrl.c @@ -143,7 +143,7 @@ static unsigned int detect_key(unsigned int suspend_from) if (irq[IRQ_TIMERA] == IRQ_TIMERA_NUM) { irq[IRQ_TIMERA] = 0xFFFFFFFF; if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { wakeup_timer_clear(); exit_reason = AUTO_WAKEUP; diff --git a/board/amlogic/txl_p320_v1/firmware/scp_task/pwr_ctrl.c b/board/amlogic/txl_p320_v1/firmware/scp_task/pwr_ctrl.c old mode 100644 new mode 100755 index b64ecaace9..6076c0b39f --- a/board/amlogic/txl_p320_v1/firmware/scp_task/pwr_ctrl.c +++ b/board/amlogic/txl_p320_v1/firmware/scp_task/pwr_ctrl.c @@ -300,7 +300,7 @@ static unsigned int detect_key(unsigned int suspend_from) irq[IRQ_TIMERA] = 0xFFFFFFFF; /*uart_puts("timera ...\n");*/ if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { exit_reason = AUTO_WAKEUP; } diff --git a/board/amlogic/txl_p321_v1/firmware/scp_task/pwr_ctrl.c b/board/amlogic/txl_p321_v1/firmware/scp_task/pwr_ctrl.c old mode 100644 new mode 100755 index 9e557cfcc8..f3ee71b3ae --- a/board/amlogic/txl_p321_v1/firmware/scp_task/pwr_ctrl.c +++ b/board/amlogic/txl_p321_v1/firmware/scp_task/pwr_ctrl.c @@ -369,7 +369,7 @@ static unsigned int detect_key(unsigned int suspend_from) if (irq[IRQ_TIMERA] == IRQ_TIMERA_NUM) { irq[IRQ_TIMERA] = 0xFFFFFFFF; if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { exit_reason = AUTO_WAKEUP; } diff --git a/board/amlogic/txl_p341_v1/firmware/scp_task/pwr_ctrl.c b/board/amlogic/txl_p341_v1/firmware/scp_task/pwr_ctrl.c old mode 100644 new mode 100755 index 2e1067db87..0df691e2b2 --- a/board/amlogic/txl_p341_v1/firmware/scp_task/pwr_ctrl.c +++ b/board/amlogic/txl_p341_v1/firmware/scp_task/pwr_ctrl.c @@ -316,7 +316,7 @@ static unsigned int detect_key(unsigned int suspend_from) if (irq[IRQ_TIMERA] == IRQ_TIMERA_NUM) { irq[IRQ_TIMERA] = 0xFFFFFFFF; if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { exit_reason = AUTO_WAKEUP; } diff --git a/board/amlogic/txl_p341_v2/firmware/scp_task/pwr_ctrl.c b/board/amlogic/txl_p341_v2/firmware/scp_task/pwr_ctrl.c old mode 100644 new mode 100755 index c6071e33e4..4da16d6548 --- a/board/amlogic/txl_p341_v2/firmware/scp_task/pwr_ctrl.c +++ b/board/amlogic/txl_p341_v2/firmware/scp_task/pwr_ctrl.c @@ -316,7 +316,7 @@ static unsigned int detect_key(unsigned int suspend_from) if (irq[IRQ_TIMERA] == IRQ_TIMERA_NUM) { irq[IRQ_TIMERA] = 0xFFFFFFFF; if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { exit_reason = AUTO_WAKEUP; } diff --git a/board/amlogic/txl_p346_v1/firmware/scp_task/pwr_ctrl.c b/board/amlogic/txl_p346_v1/firmware/scp_task/pwr_ctrl.c old mode 100644 new mode 100755 index 8b890ffbc0..b1c3bee09a --- a/board/amlogic/txl_p346_v1/firmware/scp_task/pwr_ctrl.c +++ b/board/amlogic/txl_p346_v1/firmware/scp_task/pwr_ctrl.c @@ -294,7 +294,7 @@ static unsigned int detect_key(unsigned int suspend_from) if (irq[IRQ_TIMERA] == IRQ_TIMERA_NUM) { irq[IRQ_TIMERA] = 0xFFFFFFFF; if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { exit_reason = AUTO_WAKEUP; } diff --git a/board/amlogic/txl_t950_skt_v1/firmware/scp_task/pwr_ctrl.c b/board/amlogic/txl_t950_skt_v1/firmware/scp_task/pwr_ctrl.c old mode 100644 new mode 100755 index 97f7df6b40..0eaf0a3435 --- a/board/amlogic/txl_t950_skt_v1/firmware/scp_task/pwr_ctrl.c +++ b/board/amlogic/txl_t950_skt_v1/firmware/scp_task/pwr_ctrl.c @@ -318,7 +318,7 @@ static unsigned int detect_key(unsigned int suspend_from) if (irq[IRQ_TIMERA] == IRQ_TIMERA_NUM) { irq[IRQ_TIMERA] = 0xFFFFFFFF; if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { exit_reason = AUTO_WAKEUP; } diff --git a/board/amlogic/txlx_t962e_r321_v1/firmware/scp_task/pwr_ctrl.c b/board/amlogic/txlx_t962e_r321_v1/firmware/scp_task/pwr_ctrl.c old mode 100644 new mode 100755 index 029f0f6bbe..ac603049c6 --- a/board/amlogic/txlx_t962e_r321_v1/firmware/scp_task/pwr_ctrl.c +++ b/board/amlogic/txlx_t962e_r321_v1/firmware/scp_task/pwr_ctrl.c @@ -347,7 +347,7 @@ static unsigned int detect_key(unsigned int suspend_from) if (irq[IRQ_TIMERA] == IRQ_TIMERA_NUM) { irq[IRQ_TIMERA] = 0xFFFFFFFF; if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { exit_reason = AUTO_WAKEUP; } diff --git a/board/amlogic/txlx_t962x_r311_v1/firmware/scp_task/pwr_ctrl.c b/board/amlogic/txlx_t962x_r311_v1/firmware/scp_task/pwr_ctrl.c old mode 100644 new mode 100755 index 55d4e0151b..cda8d4c999 --- a/board/amlogic/txlx_t962x_r311_v1/firmware/scp_task/pwr_ctrl.c +++ b/board/amlogic/txlx_t962x_r311_v1/firmware/scp_task/pwr_ctrl.c @@ -368,7 +368,7 @@ static unsigned int detect_key(unsigned int suspend_from) if (irq[IRQ_TIMERA] == IRQ_TIMERA_NUM) { irq[IRQ_TIMERA] = 0xFFFFFFFF; if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { exit_reason = AUTO_WAKEUP; } diff --git a/board/hardkernel/odroidc2/firmware/scp_task/pwr_ctrl.c b/board/hardkernel/odroidc2/firmware/scp_task/pwr_ctrl.c old mode 100644 new mode 100755 index 1ced3ddee1..56b45e1978 --- a/board/hardkernel/odroidc2/firmware/scp_task/pwr_ctrl.c +++ b/board/hardkernel/odroidc2/firmware/scp_task/pwr_ctrl.c @@ -239,7 +239,7 @@ static unsigned int detect_key(unsigned int suspend_from) #endif case IRQ_TIMERA_NUM: if (time_out_ms != 0) - time_out_ms--; + time_out_ms -= 10; if (time_out_ms == 0) { wakeup_timer_clear(); exit_reason = AUTO_WAKEUP; -- cgit v1.2.1