sunxi: Clean up the SPL_STACK_R_ADDR defaults

Update this option to be based on SUNXI_MINIMUM_DRAM_MB. This corrects
the value used on V3s, which previously was the MACH_SUN8I default, and
so relied on addresses wrapping modulo the DRAM size.

Signed-off-by: Samuel Holland <samuel@sholland.org>
This commit is contained in:
Samuel Holland 2022-08-05 23:25:26 -05:00
parent 665abb4e4a
commit b44e50d3f3

View File

@ -57,14 +57,9 @@ config IDENT_STRING
config SPL_STACK_R_ADDR config SPL_STACK_R_ADDR
default 0x81e00000 if MACH_SUNIV default 0x81e00000 if MACH_SUNIV
default 0x4fe00000 if MACH_SUN4I
default 0x4fe00000 if MACH_SUN5I
default 0x4fe00000 if MACH_SUN6I
default 0x4fe00000 if MACH_SUN7I
default 0x4fe00000 if MACH_SUN8I
default 0x2fe00000 if MACH_SUN9I default 0x2fe00000 if MACH_SUN9I
default 0x4fe00000 if MACH_SUN50I default 0x4fe00000 if SUNXI_MINIMUM_DRAM_MB >= 256
default 0x4fe00000 if SUN50I_GEN_H6 default 0x43e00000 if SUNXI_MINIMUM_DRAM_MB >= 64
config SUNXI_MINIMUM_DRAM_MB config SUNXI_MINIMUM_DRAM_MB
int int