uboot-d1: add bootloader for upcoming d1 target
[openwrt/staging/mans0n.git] / package / boot / uboot-d1 / patches / 0070-sunxi-Move-TEXT_BASE-to-the-board-Kconfig.patch
1 From 08b45a89c7b25eb7828589360cf4ca2d9910cc59 Mon Sep 17 00:00:00 2001
2 From: Samuel Holland <samuel@sholland.org>
3 Date: Fri, 5 Aug 2022 21:48:53 -0500
4 Subject: [PATCH 70/90] sunxi: Move TEXT_BASE to the board Kconfig
5
6 This is how the vast majority of platforms provided TEXT_BASE.
7 sunxi was the exception here.
8
9 Signed-off-by: Samuel Holland <samuel@sholland.org>
10 ---
11 board/sunxi/Kconfig | 6 ++++++
12 boot/Kconfig | 4 ----
13 2 files changed, 6 insertions(+), 4 deletions(-)
14
15 --- a/board/sunxi/Kconfig
16 +++ b/board/sunxi/Kconfig
17 @@ -137,6 +137,12 @@ config SYS_LOAD_ADDR
18 config SYS_SOC
19 default "sunxi"
20
21 +config TEXT_BASE
22 + default 0x81700000 if MACH_SUNIV
23 + default 0x2a000000 if MACH_SUN9I
24 + default 0x4a000000 if SUNXI_MINIMUM_DRAM_MB >= 256
25 + default 0x42e00000 if SUNXI_MINIMUM_DRAM_MB >= 64
26 +
27 menu "sunxi board options"
28
29 choice
30 --- a/boot/Kconfig
31 +++ b/boot/Kconfig
32 @@ -633,10 +633,6 @@ config TEXT_BASE
33 depends on HAVE_TEXT_BASE
34 default 0x0 if POSITION_INDEPENDENT
35 default 0x80800000 if ARCH_OMAP2PLUS || ARCH_K3
36 - default 0x81700000 if MACH_SUNIV
37 - default 0x2a000000 if MACH_SUN9I
38 - default 0x4a000000 if SUNXI_MINIMUM_DRAM_MB >= 256
39 - default 0x42e00000 if SUNXI_MINIMUM_DRAM_MB >= 64
40 hex "Text Base"
41 help
42 The address in memory that U-Boot will be running from, initially.