summaryrefslogtreecommitdiff
path: root/board/amlogic/g12b_w400_v1/firmware/scp_task/pwr_ctrl.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/amlogic/g12b_w400_v1/firmware/scp_task/pwr_ctrl.c')
-rw-r--r--board/amlogic/g12b_w400_v1/firmware/scp_task/pwr_ctrl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/amlogic/g12b_w400_v1/firmware/scp_task/pwr_ctrl.c b/board/amlogic/g12b_w400_v1/firmware/scp_task/pwr_ctrl.c
index 8d7e79364f..52cb3dfe69 100644
--- a/board/amlogic/g12b_w400_v1/firmware/scp_task/pwr_ctrl.c
+++ b/board/amlogic/g12b_w400_v1/firmware/scp_task/pwr_ctrl.c
@@ -144,6 +144,8 @@ static unsigned int detect_key(unsigned int suspend_from)
{
int exit_reason = 0;
unsigned *irq = (unsigned *)WAKEUP_SRC_IRQ_ADDR_BASE;
+
+ backup_remote_register();
init_remote();
#ifdef CONFIG_CEC_WAKEUP
if (hdmi_cec_func_config & 0x1) {
@@ -196,6 +198,8 @@ static unsigned int detect_key(unsigned int suspend_from)
__switch_idle_task();
} while (1);
+ restore_remote_register();
+
return exit_reason;
}