diff options
| author | Jakob L. Kreuze | 2022-04-15 18:40:19 -0400 |
|---|---|---|
| committer | Jakob L. Kreuze | 2022-04-15 18:40:46 -0400 |
| commit | 01be290c57a289aa0200e128764c3e73b5b38932 (patch) | |
| tree | 2ef45657a9b3d12e112854c6c14f70afba82b814 /sys-boot/u-boot/files | |
| parent | 119d15709be940524fff65f8d5e728d00454526c (diff) | |
Update patches for new version
Diffstat (limited to 'sys-boot/u-boot/files')
| -rw-r--r-- | sys-boot/u-boot/files/0001-Add-regulator-needed-for-usage-of-USB.patch | 20 | ||||
| -rw-r--r-- | sys-boot/u-boot/files/0002-Correct-boot-order-to-be-USB-SD-eMMC.patch | 38 | ||||
| -rw-r--r-- | sys-boot/u-boot/files/0002-Enable-the-power-LED-during-early-startup.patch (renamed from sys-boot/u-boot/files/0003-Enable-the-power-LED-during-early-startup.patch) | 18 | ||||
| -rw-r--r-- | sys-boot/u-boot/files/0003-Correct-boot-order-to-be-USB-SD-eMMC.patch | 27 |
4 files changed, 46 insertions, 57 deletions
diff --git a/sys-boot/u-boot/files/0001-Add-regulator-needed-for-usage-of-USB.patch b/sys-boot/u-boot/files/0001-Add-regulator-needed-for-usage-of-USB.patch index 39c2bc9..5b98157 100644 --- a/sys-boot/u-boot/files/0001-Add-regulator-needed-for-usage-of-USB.patch +++ b/sys-boot/u-boot/files/0001-Add-regulator-needed-for-usage-of-USB.patch @@ -1,6 +1,6 @@ -From 6ad924ab3b6b2a4d8c73a9871d0e94245cce6fcf Mon Sep 17 00:00:00 2001 -From: Nadia Holmquist Pedersen <nadia@nhp.sh> -Date: Sat, 20 Jun 2020 01:41:22 +0200 +From a2eedb4090451bde537c18585f2c0037881b4696 Mon Sep 17 00:00:00 2001 +From: "Jakob L. Kreuze" <zerodaysfordays@sdf.org> +Date: Fri, 15 Apr 2022 18:33:52 -0400 Subject: [PATCH 1/3] Add regulator needed for usage of USB --- @@ -8,10 +8,10 @@ Subject: [PATCH 1/3] Add regulator needed for usage of USB 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/rk3399-pinebook-pro.dts b/arch/arm/dts/rk3399-pinebook-pro.dts -index 294d21bf45..6214887a1c 100644 +index 2b5f001ff4..05aa7ce0ff 100644 --- a/arch/arm/dts/rk3399-pinebook-pro.dts +++ b/arch/arm/dts/rk3399-pinebook-pro.dts -@@ -207,6 +207,16 @@ +@@ -220,6 +220,16 @@ }; }; @@ -28,7 +28,7 @@ index 294d21bf45..6214887a1c 100644 /* 5 V USB power supply */ vcc5v0_usb: pa_5v: vcc5v0-usb-regulator { compatible = "regulator-fixed"; -@@ -610,8 +620,8 @@ +@@ -623,8 +633,8 @@ }; }; @@ -39,7 +39,7 @@ index 294d21bf45..6214887a1c 100644 regulator-always-on; regulator-boot-on; -@@ -872,6 +882,11 @@ +@@ -902,6 +912,11 @@ rockchip,pins = <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; }; @@ -48,10 +48,10 @@ index 294d21bf45..6214887a1c 100644 + rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; + }; + - vcc5v0_host_en_gpio: vcc5v0-host-en-gpio { + vcc5v0_host_en_pin: vcc5v0-host-en-pin { rockchip,pins = <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; }; -@@ -1054,10 +1069,12 @@ +@@ -1084,10 +1099,12 @@ }; &usb_host1_ehci { @@ -65,5 +65,5 @@ index 294d21bf45..6214887a1c 100644 }; -- -2.27.0 +2.35.1 diff --git a/sys-boot/u-boot/files/0002-Correct-boot-order-to-be-USB-SD-eMMC.patch b/sys-boot/u-boot/files/0002-Correct-boot-order-to-be-USB-SD-eMMC.patch deleted file mode 100644 index b6e755a..0000000 --- a/sys-boot/u-boot/files/0002-Correct-boot-order-to-be-USB-SD-eMMC.patch +++ /dev/null @@ -1,38 +0,0 @@ -From e622965b31e1d08c2b7c6b3a8d683c59f37b2733 Mon Sep 17 00:00:00 2001 -From: Nadia Holmquist Pedersen <nadia@nhp.sh> -Date: Sat, 20 Jun 2020 01:47:52 +0200 -Subject: [PATCH 2/3] Correct boot order to be USB -> SD -> eMMC - ---- - include/configs/rockchip-common.h | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/include/configs/rockchip-common.h b/include/configs/rockchip-common.h -index 0b9e24d1db..9e217fad2a 100644 ---- a/include/configs/rockchip-common.h -+++ b/include/configs/rockchip-common.h -@@ -17,8 +17,8 @@ - /* First try to boot from SD (index 0), then eMMC (index 1) */ - #if CONFIG_IS_ENABLED(CMD_MMC) - #define BOOT_TARGET_MMC(func) \ -- func(MMC, mmc, 0) \ -- func(MMC, mmc, 1) -+ func(MMC, mmc, 1) \ -+ func(MMC, mmc, 0) - #else - #define BOOT_TARGET_MMC(func) - #endif -@@ -55,9 +55,9 @@ - - #ifdef CONFIG_ROCKCHIP_RK3399 - #define BOOT_TARGET_DEVICES(func) \ -+ BOOT_TARGET_USB(func) \ - BOOT_TARGET_MMC(func) \ - BOOT_TARGET_NVME(func) \ -- BOOT_TARGET_USB(func) \ - BOOT_TARGET_PXE(func) \ - BOOT_TARGET_DHCP(func) \ - BOOT_TARGET_SF(func) --- -2.27.0 - diff --git a/sys-boot/u-boot/files/0003-Enable-the-power-LED-during-early-startup.patch b/sys-boot/u-boot/files/0002-Enable-the-power-LED-during-early-startup.patch index a2e811c..b7b37c2 100644 --- a/sys-boot/u-boot/files/0003-Enable-the-power-LED-during-early-startup.patch +++ b/sys-boot/u-boot/files/0002-Enable-the-power-LED-during-early-startup.patch @@ -1,17 +1,17 @@ -From 08e8ace48b5c3a31b44661ef22a8b8a459906d7e Mon Sep 17 00:00:00 2001 -From: Nadia Holmquist Pedersen <nadia@nhp.sh> -Date: Sat, 20 Jun 2020 01:49:49 +0200 -Subject: [PATCH 3/3] Enable the power LED during early startup +From 18600ddc0569ae424066add8e288dbc2e4d0e45c Mon Sep 17 00:00:00 2001 +From: "Jakob L. Kreuze" <zerodaysfordays@sdf.org> +Date: Fri, 15 Apr 2022 18:37:37 -0400 +Subject: [PATCH 2/3] Enable the power LED during early startup --- arch/arm/mach-rockchip/rk3399/rk3399.c | 12 +++++++++++- 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 -index 4fda93b152..e24b39486d 100644 +index 2bc8e60b99..c7ba8a0595 100644 --- a/arch/arm/mach-rockchip/rk3399/rk3399.c +++ b/arch/arm/mach-rockchip/rk3399/rk3399.c -@@ -19,6 +19,8 @@ +@@ -20,6 +20,8 @@ #include <asm/arch-rockchip/hardware.h> #include <linux/bitops.h> #include <power/regulator.h> @@ -20,7 +20,7 @@ index 4fda93b152..e24b39486d 100644 DECLARE_GLOBAL_DATA_PTR; -@@ -119,8 +121,8 @@ void board_debug_uart_init(void) +@@ -120,8 +122,8 @@ void board_debug_uart_init(void) struct rk3399_grf_regs * const grf = (void *)GRF_BASE; #ifdef CONFIG_TARGET_CHROMEBOOK_BOB struct rk3399_pmugrf_regs * const pmugrf = (void *)PMUGRF_BASE; @@ -30,7 +30,7 @@ index 4fda93b152..e24b39486d 100644 #if defined(CONFIG_DEBUG_UART_BASE) && (CONFIG_DEBUG_UART_BASE == 0xff180000) /* Enable early UART0 on the RK3399 */ -@@ -153,6 +155,14 @@ void board_debug_uart_init(void) +@@ -154,6 +156,14 @@ void board_debug_uart_init(void) spl_gpio_set_pull(&pmugrf->gpio0_p, GPIO(BANK_B, 4), GPIO_PULL_NORMAL); #endif /* CONFIG_TARGET_CHROMEBOOK_BOB */ @@ -46,5 +46,5 @@ index 4fda93b152..e24b39486d 100644 rk_clrsetreg(&grf->gpio4c_iomux, GRF_GPIO4C3_SEL_MASK, -- -2.27.0 +2.35.1 diff --git a/sys-boot/u-boot/files/0003-Correct-boot-order-to-be-USB-SD-eMMC.patch b/sys-boot/u-boot/files/0003-Correct-boot-order-to-be-USB-SD-eMMC.patch new file mode 100644 index 0000000..443c0ba --- /dev/null +++ b/sys-boot/u-boot/files/0003-Correct-boot-order-to-be-USB-SD-eMMC.patch @@ -0,0 +1,27 @@ +From 78df08299427f72581a877c015d354e9ea5454e2 Mon Sep 17 00:00:00 2001 +From: "Jakob L. Kreuze" <zerodaysfordays@sdf.org> +Date: Fri, 15 Apr 2022 18:37:46 -0400 +Subject: [PATCH 3/3] Correct boot order to be USB -> SD -> eMMC + +--- + include/configs/rockchip-common.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/configs/rockchip-common.h b/include/configs/rockchip-common.h +index ba7061a287..5dc92373b2 100644 +--- a/include/configs/rockchip-common.h ++++ b/include/configs/rockchip-common.h +@@ -55,9 +55,9 @@ + + #ifdef CONFIG_ROCKCHIP_RK3399 + #define BOOT_TARGET_DEVICES(func) \ ++ BOOT_TARGET_USB(func) \ + BOOT_TARGET_MMC(func) \ + BOOT_TARGET_NVME(func) \ +- BOOT_TARGET_USB(func) \ + BOOT_TARGET_PXE(func) \ + BOOT_TARGET_DHCP(func) \ + BOOT_TARGET_SF(func) +-- +2.35.1 + |