uboot-d1: add bootloader for upcoming d1 target
[openwrt/staging/mans0n.git] / package / boot / uboot-d1 / patches / 0068-sunxi-Move-SPL_TEXT_BASE-to-the-board-Kconfig.patch
1 From 5d60490d0f0ca0a5d414ba9a4e41ceea8a98b4d2 Mon Sep 17 00:00:00 2001
2 From: Samuel Holland <samuel@sholland.org>
3 Date: Sat, 6 Aug 2022 00:07:47 -0500
4 Subject: [PATCH 68/90] sunxi: Move SPL_TEXT_BASE to the board Kconfig
5
6 It makes sense to put this near the definition of SUNXI_SRAM_ADDRESS.
7
8 Signed-off-by: Samuel Holland <samuel@sholland.org>
9 ---
10 board/sunxi/Kconfig | 5 +++++
11 common/spl/Kconfig | 3 ---
12 2 files changed, 5 insertions(+), 3 deletions(-)
13
14 --- a/board/sunxi/Kconfig
15 +++ b/board/sunxi/Kconfig
16 @@ -73,6 +73,11 @@ config SPL_STACK_R_ADDR
17 default 0x4fe00000 if SUNXI_MINIMUM_DRAM_MB >= 256
18 default 0x43e00000 if SUNXI_MINIMUM_DRAM_MB >= 64
19
20 +config SPL_TEXT_BASE
21 + default 0x10060 if MACH_SUN9I || MACH_SUN50I || MACH_SUN50I_H5
22 + default 0x20060 if SUN50I_GEN_H6
23 + default 0x00060
24 +
25 config SUNXI_MINIMUM_DRAM_MB
26 int
27 default 32 if MACH_SUNIV
28 --- a/common/spl/Kconfig
29 +++ b/common/spl/Kconfig
30 @@ -261,9 +261,6 @@ config SPL_TEXT_BASE
31 default 0x402F4000 if AM43XX
32 default 0x402F0400 if AM33XX
33 default 0x40301350 if OMAP54XX
34 - default 0x10060 if MACH_SUN50I || MACH_SUN50I_H5 || MACH_SUN9I
35 - default 0x20060 if SUN50I_GEN_H6
36 - default 0x00060 if ARCH_SUNXI
37 default 0xfffc0000 if ARCH_ZYNQMP
38 default 0x0
39 help