summaryrefslogtreecommitdiff
path: root/include/configs/sunxi-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/configs/sunxi-common.h')
-rw-r--r--include/configs/sunxi-common.h8
1 files changed, 8 insertions, 0 deletions
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 */