summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPortisch <hugo.portisch@yahoo.de>2018-10-24 14:25:09 +0300
committerDongjin Kim <tobetter@gmail.com>2020-02-13 11:13:40 +0300
commit2044cc4984e8ad8e924e6ca8061fe6700f37e72a (patch)
tree38b57433d2e83bea32b68cdba6739dbbb77428d0
parent45a984a34828143ba318330f1fb40d46e5204ca9 (diff)
downloadu-boot-2044cc4984e8ad8e924e6ca8061fe6700f37e72a.tar.xz
gxb/gxl/gxm: prepare suspend parameter for LED control
Change-Id: I73512141b68410071ad886063097e14ebb07a444
-rwxr-xr-xarch/arm/cpu/armv8/gxb/firmware/scp_task/suspend.c2
-rwxr-xr-xarch/arm/cpu/armv8/gxb/firmware/scp_task/suspend.h2
-rwxr-xr-xarch/arm/cpu/armv8/gxl/firmware/scp_task/suspend.c2
-rwxr-xr-xarch/arm/cpu/armv8/gxl/firmware/scp_task/suspend.h2
-rwxr-xr-xboard/amlogic/gxb_p200_v1/firmware/scp_task/pwr_ctrl.c2
-rwxr-xr-xboard/amlogic/gxb_p201_v1/firmware/scp_task/pwr_ctrl.c2
-rwxr-xr-xboard/amlogic/gxb_skt_v1/firmware/scp_task/pwr_ctrl.c2
-rwxr-xr-xboard/amlogic/gxl_p212_v1/firmware/scp_task/pwr_ctrl.c2
-rwxr-xr-xboard/amlogic/gxl_p241_v1/firmware/scp_task/pwr_ctrl.c2
-rwxr-xr-xboard/amlogic/gxl_p281_v1/firmware/scp_task/pwr_ctrl.c2
-rwxr-xr-xboard/amlogic/gxl_p400_v1/firmware/scp_task/pwr_ctrl.c2
-rwxr-xr-xboard/amlogic/gxl_p401_v1/firmware/scp_task/pwr_ctrl.c2
-rwxr-xr-xboard/amlogic/gxl_skt_v1/firmware/scp_task/pwr_ctrl.c2
-rwxr-xr-xboard/amlogic/gxm_q200_v1/firmware/scp_task/pwr_ctrl.c2
-rwxr-xr-xboard/amlogic/gxm_q201_v1/firmware/scp_task/pwr_ctrl.c2
-rwxr-xr-xboard/amlogic/gxm_skt_v1/firmware/scp_task/pwr_ctrl.c2
-rwxr-xr-xboard/hardkernel/odroidc2/firmware/scp_task/pwr_ctrl.c2
17 files changed, 17 insertions, 17 deletions
diff --git a/arch/arm/cpu/armv8/gxb/firmware/scp_task/suspend.c b/arch/arm/cpu/armv8/gxb/firmware/scp_task/suspend.c
index 0c3ee2842b..a1b88239fe 100755
--- a/arch/arm/cpu/armv8/gxb/firmware/scp_task/suspend.c
+++ b/arch/arm/cpu/armv8/gxb/firmware/scp_task/suspend.c
@@ -86,7 +86,7 @@ void enter_suspend(unsigned int suspend_from)
uart_puts("\n");
#endif
p_pwr_op->power_off_at_clk81(suspend_from);
- p_pwr_op->power_off_at_24M();
+ p_pwr_op->power_off_at_24M(suspend_from);
switch_to_32k();
gxbb_com_gate_off();
diff --git a/arch/arm/cpu/armv8/gxb/firmware/scp_task/suspend.h b/arch/arm/cpu/armv8/gxb/firmware/scp_task/suspend.h
index 08053b7b3e..ec7b0e7e17 100755
--- a/arch/arm/cpu/armv8/gxb/firmware/scp_task/suspend.h
+++ b/arch/arm/cpu/armv8/gxb/firmware/scp_task/suspend.h
@@ -27,7 +27,7 @@ struct pwr_op {
void (*power_off_at_clk81)(unsigned int);
void (*power_on_at_clk81)(void);
- void (*power_off_at_24M)(void);
+ void (*power_off_at_24M)(unsigned int);
void (*power_on_at_24M)(void);
void (*power_off_at_32k)(void);
diff --git a/arch/arm/cpu/armv8/gxl/firmware/scp_task/suspend.c b/arch/arm/cpu/armv8/gxl/firmware/scp_task/suspend.c
index 8e18716a21..00aabec148 100755
--- a/arch/arm/cpu/armv8/gxl/firmware/scp_task/suspend.c
+++ b/arch/arm/cpu/armv8/gxl/firmware/scp_task/suspend.c
@@ -76,7 +76,7 @@ void enter_suspend(unsigned int suspend_from)
uart_puts("\n");
#endif
p_pwr_op->power_off_at_clk81(suspend_from);
- p_pwr_op->power_off_at_24M();
+ p_pwr_op->power_off_at_24M(suspend_from);
gxbb_com_gate_off();
p_pwr_op->power_off_at_32k();
diff --git a/arch/arm/cpu/armv8/gxl/firmware/scp_task/suspend.h b/arch/arm/cpu/armv8/gxl/firmware/scp_task/suspend.h
index 65b45fa12a..bc1a4ca71d 100755
--- a/arch/arm/cpu/armv8/gxl/firmware/scp_task/suspend.h
+++ b/arch/arm/cpu/armv8/gxl/firmware/scp_task/suspend.h
@@ -29,7 +29,7 @@ struct pwr_op {
void (*power_off_at_clk81)(unsigned int);
void (*power_on_at_clk81)(void);
- void (*power_off_at_24M)(void);
+ void (*power_off_at_24M)(unsigned int);
void (*power_on_at_24M)(void);
void (*power_off_at_32k)(void);
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
index de9f283f70..785b33c709 100755
--- a/board/amlogic/gxb_p200_v1/firmware/scp_task/pwr_ctrl.c
+++ b/board/amlogic/gxb_p200_v1/firmware/scp_task/pwr_ctrl.c
@@ -98,7 +98,7 @@ static void power_on_at_clk81(void)
power_on_3v3();
}
-static void power_off_at_24M(void)
+static void power_off_at_24M(unsigned int shutdown)
{
//LED gpioao_13
aml_update_bits(AO_GPIO_O_EN_N, 1<<29, 0);
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
index 4437699b8d..673bf8760c 100755
--- a/board/amlogic/gxb_p201_v1/firmware/scp_task/pwr_ctrl.c
+++ b/board/amlogic/gxb_p201_v1/firmware/scp_task/pwr_ctrl.c
@@ -97,7 +97,7 @@ static void power_on_at_clk81(void)
power_on_3v3();
}
-static void power_off_at_24M(void)
+static void power_off_at_24M(unsigned int shutdown)
{
//LED gpioao_13
aml_update_bits(AO_GPIO_O_EN_N, 1<<29, 0);
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
index 6efdf5a5c5..a06d2d4d78 100755
--- a/board/amlogic/gxb_skt_v1/firmware/scp_task/pwr_ctrl.c
+++ b/board/amlogic/gxb_skt_v1/firmware/scp_task/pwr_ctrl.c
@@ -98,7 +98,7 @@ static void power_on_at_clk81(void)
power_on_3v3();
}
-static void power_off_at_24M(void)
+static void power_off_at_24M(unsigned int shutdown)
{
//LED gpioao_13
aml_update_bits(AO_GPIO_O_EN_N, 1<<29, 0);
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 d3f180aa65..a11133aaf1 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
@@ -111,7 +111,7 @@ static void power_on_at_clk81(void)
hdmi_5v_ctrl(ON);
}
-static void power_off_at_24M(void)
+static void power_off_at_24M(unsigned int shutdown)
{
/* LED GPIODV_24*/
aml_update_bits(PREG_PAD_GPIO0_EN_N, 1 << 24, 0);
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 632666a19b..3878533c9b 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
@@ -114,7 +114,7 @@ static void power_on_at_clk81(void)
hdmi_5v_ctrl(ON);
}
-static void power_off_at_24M(void)
+static void power_off_at_24M(unsigned int shutdown)
{
/* LED GPIODV_24*/
aml_update_bits(PREG_PAD_GPIO0_EN_N, 1 << 24, 0);
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 8d058c968f..33b840bc5a 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
@@ -113,7 +113,7 @@ static void power_on_at_clk81(void)
hdmi_5v_ctrl(ON);
}
-static void power_off_at_24M(void)
+static void power_off_at_24M(unsigned int shutdown)
{
/* LED GPIODV_24*/
aml_update_bits(PREG_PAD_GPIO0_EN_N, 1 << 24, 0);
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 1a38e09070..2327faebf0 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
@@ -131,7 +131,7 @@ static void power_on_at_clk81(void)
hdmi_5v_ctrl(ON);
}
-static void power_off_at_24M(void)
+static void power_off_at_24M(unsigned int shutdown)
{
/* LED GPIOAO_9*/
aml_update_bits(AO_GPIO_O_EN_N, 1 << 9, 0);
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 1a38e09070..2327faebf0 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
@@ -131,7 +131,7 @@ static void power_on_at_clk81(void)
hdmi_5v_ctrl(ON);
}
-static void power_off_at_24M(void)
+static void power_off_at_24M(unsigned int shutdown)
{
/* LED GPIOAO_9*/
aml_update_bits(AO_GPIO_O_EN_N, 1 << 9, 0);
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 5d3e43fcfd..6debac7d97 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
@@ -108,7 +108,7 @@ static void power_on_at_clk81(void)
hdmi_5v_ctrl(ON);
}
-static void power_off_at_24M(void)
+static void power_off_at_24M(unsigned int shutdown)
{
/* LED GPIODV_24*/
aml_update_bits(PREG_PAD_GPIO0_EN_N, 1 << 24, 0);
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 cc49ff4b31..c84d6d231a 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
@@ -131,7 +131,7 @@ static void power_on_at_clk81(void)
hdmi_5v_ctrl(ON);
}
-static void power_off_at_24M(void)
+static void power_off_at_24M(unsigned int shutdown)
{
/* LED GPIOAO_9*/
aml_update_bits(AO_GPIO_O_EN_N, 1 << 9, 0);
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 9ed77f89e9..5c8309c01d 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
@@ -131,7 +131,7 @@ static void power_on_at_clk81(void)
hdmi_5v_ctrl(ON);
}
-static void power_off_at_24M(void)
+static void power_off_at_24M(unsigned int shutdown)
{
/* LED GPIOAO_9*/
aml_update_bits(AO_GPIO_O_EN_N, 1 << 9, 0);
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 6641bf2f4d..9cd0be5ca6 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
@@ -130,7 +130,7 @@ static void power_on_at_clk81(void)
hdmi_5v_ctrl(ON);
}
-static void power_off_at_24M(void)
+static void power_off_at_24M(unsigned int shutdown)
{
/* LED GPIOAO_9*/
aml_update_bits(AO_GPIO_O_EN_N, 1 << 9, 0);
diff --git a/board/hardkernel/odroidc2/firmware/scp_task/pwr_ctrl.c b/board/hardkernel/odroidc2/firmware/scp_task/pwr_ctrl.c
index 224e05b1ff..5a50fab7ba 100755
--- a/board/hardkernel/odroidc2/firmware/scp_task/pwr_ctrl.c
+++ b/board/hardkernel/odroidc2/firmware/scp_task/pwr_ctrl.c
@@ -98,7 +98,7 @@ static void power_on_at_clk81(void)
power_on_3v3();
}
-static void power_off_at_24M(void)
+static void power_off_at_24M(unsigned int shutdown)
{
//LED gpioao_13
aml_update_bits(AO_GPIO_O_EN_N, 1<<29, 0);