From a8bd0f5f3be5809d4960af553c8dced3bba3df6b Mon Sep 17 00:00:00 2001 From: Philipp Tomsich Date: Fri, 8 Apr 2016 01:14:22 +0200 Subject: sunxi: enable SPL for sun9i --- include/configs/sunxi-common.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index 7fd1cd1f7e..5952e5e50d 100644 --- a/include/configs/sunxi-common.h +++ b/include/configs/sunxi-common.h @@ -193,7 +193,11 @@ #define CONFIG_SPL_BOARD_LOAD_IMAGE +#if defined(CONFIG_MACH_SUN9I) +#define CONFIG_SPL_TEXT_BASE 0x10020 /* sram start+header */ +#else #define CONFIG_SPL_TEXT_BASE 0x20 /* sram start+header */ +#endif #define CONFIG_SPL_MAX_SIZE 0x5fe0 /* 24KB on sun4i/sun7i */ #define CONFIG_SPL_LIBDISK_SUPPORT @@ -208,7 +212,11 @@ #define CONFIG_SPL_PAD_TO 32768 /* decimal for 'dd' */ /* end of 32 KiB in sram */ +#if defined(CONFIG_MACH_SUN9I) +#define LOW_LEVEL_SRAM_STACK 0x0001a000 /* 40KiB */ +#else #define LOW_LEVEL_SRAM_STACK 0x00008000 /* End of sram */ +#endif #define CONFIG_SPL_STACK LOW_LEVEL_SRAM_STACK /* I2C */ -- cgit v1.2.3