uboot-d1: add bootloader for upcoming d1 target
[openwrt/staging/mans0n.git] / package / boot / uboot-d1 / patches / 0066-sunxi-Move-PRE_CON_BUF_ADDR-to-the-board-Kconfig.patch
1 From e947c7377b90897e4c638dad6e64201361dc8a9e Mon Sep 17 00:00:00 2001
2 From: Samuel Holland <samuel@sholland.org>
3 Date: Sat, 6 Aug 2022 00:45:10 -0500
4 Subject: [PATCH 66/90] sunxi: Move PRE_CON_BUF_ADDR to the board Kconfig
5
6 This provides a default value for RISC-V when that is added, and it
7 makes sense to put this option next to the other DRAM layout options.
8
9 While at it, provide sensible values for platforms with less DRAM.
10
11 Signed-off-by: Samuel Holland <samuel@sholland.org>
12 ---
13 board/sunxi/Kconfig | 6 ++++++
14 common/Kconfig | 2 --
15 2 files changed, 6 insertions(+), 2 deletions(-)
16
17 --- a/board/sunxi/Kconfig
18 +++ b/board/sunxi/Kconfig
19 @@ -55,6 +55,12 @@ if BOARD_SUNXI
20 config IDENT_STRING
21 default " Allwinner Technology"
22
23 +config PRE_CON_BUF_ADDR
24 + default 0x81000000 if MACH_SUNIV
25 + default 0x2f000000 if MACH_SUN9I
26 + default 0x4f000000 if SUNXI_MINIMUM_DRAM_MB >= 256
27 + default 0x43000000 if SUNXI_MINIMUM_DRAM_MB >= 64
28 +
29 config SPL_STACK_R_ADDR
30 default 0x81e00000 if MACH_SUNIV
31 default 0x2fe00000 if MACH_SUN9I
32 --- a/common/Kconfig
33 +++ b/common/Kconfig
34 @@ -195,8 +195,6 @@ config PRE_CON_BUF_SZ
35 config PRE_CON_BUF_ADDR
36 hex "Address of the pre-console buffer"
37 depends on PRE_CONSOLE_BUFFER
38 - default 0x2f000000 if ARCH_SUNXI && MACH_SUN9I
39 - default 0x4f000000 if ARCH_SUNXI && !MACH_SUN9I
40 default 0x0f000000 if ROCKCHIP_RK3288
41 default 0x0f200000 if ROCKCHIP_RK3399
42 help