mirror of
https://github.com/samueldr/wip-pinebook-pro.git
synced 2024-11-30 06:49:43 +01:00
u-boot: Only light the read LED early
This commit is contained in:
parent
532f45f0d7
commit
0da4ccd19a
1 changed files with 8 additions and 6 deletions
|
@ -1,16 +1,18 @@
|
||||||
From f62ba28ac93ebc759d9774cbffe7ce6ae22a51c0 Mon Sep 17 00:00:00 2001
|
From 61eb4a33dfbffbf19ab5aca62533d20b0e4cba43 Mon Sep 17 00:00:00 2001
|
||||||
From: dhivael <dhivael.git@eno.space>
|
From: dhivael <dhivael.git@eno.space>
|
||||||
Date: Sat, 11 Jan 2020 15:04:46 +0100
|
Date: Sat, 11 Jan 2020 15:04:46 +0100
|
||||||
Subject: [PATCH 1/5] rk3399: light pinebook power and standby leds during
|
Subject: [PATCH] rk3399: light pinebook power and standby leds during early
|
||||||
early boot
|
boot
|
||||||
|
|
||||||
this is a hack, but it works for now.
|
this is a hack, but it works for now.
|
||||||
|
|
||||||
|
Origin: https://git.eno.space/pbp-uboot.git/commit/?id=1a01021c9361c4e017cb5b032300f5555c393710
|
||||||
---
|
---
|
||||||
arch/arm/mach-rockchip/rk3399/rk3399.c | 12 +++++++++++-
|
arch/arm/mach-rockchip/rk3399/rk3399.c | 12 +++++++++++-
|
||||||
1 file changed, 11 insertions(+), 1 deletion(-)
|
1 file changed, 11 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/arch/arm/mach-rockchip/rk3399/rk3399.c b/arch/arm/mach-rockchip/rk3399/rk3399.c
|
diff --git a/arch/arm/mach-rockchip/rk3399/rk3399.c b/arch/arm/mach-rockchip/rk3399/rk3399.c
|
||||||
index 4fda93b1527..e24b39486d0 100644
|
index 4fda93b1527..952ac881711 100644
|
||||||
--- a/arch/arm/mach-rockchip/rk3399/rk3399.c
|
--- a/arch/arm/mach-rockchip/rk3399/rk3399.c
|
||||||
+++ b/arch/arm/mach-rockchip/rk3399/rk3399.c
|
+++ b/arch/arm/mach-rockchip/rk3399/rk3399.c
|
||||||
@@ -19,6 +19,8 @@
|
@@ -19,6 +19,8 @@
|
||||||
|
@ -39,7 +41,7 @@ index 4fda93b1527..e24b39486d0 100644
|
||||||
+ {
|
+ {
|
||||||
+ // set GPIO0_A2/B3 to GPIO_ACTIVE_HIGH
|
+ // set GPIO0_A2/B3 to GPIO_ACTIVE_HIGH
|
||||||
+ // set GPIO0_A2/B3 to OUTPUT
|
+ // set GPIO0_A2/B3 to OUTPUT
|
||||||
+ int mask = (1UL << RK_PA2) | (1UL << RK_PB3);
|
+ int mask = (1UL << RK_PA2)/* | (1UL << RK_PB3) green LED */;
|
||||||
+ setbits_le32(&gpio->swport_dr, mask);
|
+ setbits_le32(&gpio->swport_dr, mask);
|
||||||
+ setbits_le32(&gpio->swport_ddr, mask);
|
+ setbits_le32(&gpio->swport_ddr, mask);
|
||||||
+ }
|
+ }
|
||||||
|
@ -48,5 +50,5 @@ index 4fda93b1527..e24b39486d0 100644
|
||||||
rk_clrsetreg(&grf->gpio4c_iomux,
|
rk_clrsetreg(&grf->gpio4c_iomux,
|
||||||
GRF_GPIO4C3_SEL_MASK,
|
GRF_GPIO4C3_SEL_MASK,
|
||||||
--
|
--
|
||||||
2.25.3
|
2.25.4
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue