mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
sunxi: change SUNXI_HIGH_SRAM option to SUNXI_SRAM_ADDRESS
The new Allwinner H6 SoC has its SRAM A1 at neither 0x0 nor 0x10000, but it's at 0x20000. Thus the SUNXI_HIGH_SRAM option needs to be refactored to support this new configuration. Change it to SUNXI_SRAM_ADDRESS, which holds the real address of SRAM A1 in the memory map. Signed-off-by: Icenowy Zheng <icenowy@aosc.io> Reviewed-by: Andre Przywara <andre.przywara@arm.com> Acked-by: Maxime Ripard <maxime.ripard@bootlin.com> Reviewed-by: Jagan Teki <jagan@openedev.com> Tested-by: Jagan Teki <jagan@amarulasolutions.com>
This commit is contained in:
committed by
Jagan Teki
parent
dddc4b4af3
commit
cadc7c20e5
@@ -11,11 +11,7 @@
|
||||
#define SPL_SIGNATURE "SPL" /* marks "sunxi" SPL header */
|
||||
#define SPL_HEADER_VERSION 2
|
||||
|
||||
#ifdef CONFIG_SUNXI_HIGH_SRAM
|
||||
#define SPL_ADDR 0x10000
|
||||
#else
|
||||
#define SPL_ADDR 0x0
|
||||
#endif
|
||||
#define SPL_ADDR CONFIG_SUNXI_SRAM_ADDRESS
|
||||
|
||||
/* The low 8-bits of the 'boot_media' field in the SPL header */
|
||||
#define SUNXI_BOOTED_FROM_MMC0 0
|
||||
|
||||
Reference in New Issue
Block a user