summaryrefslogtreecommitdiff
path: root/firmware/target/arm/s5l8700
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/s5l8700')
-rw-r--r--firmware/target/arm/s5l8700/boot.lds12
1 files changed, 10 insertions, 2 deletions
diff --git a/firmware/target/arm/s5l8700/boot.lds b/firmware/target/arm/s5l8700/boot.lds
index 757abaa11a..6f0a809486 100644
--- a/firmware/target/arm/s5l8700/boot.lds
+++ b/firmware/target/arm/s5l8700/boot.lds
@@ -8,17 +8,25 @@ STARTUP(target/arm/s5l8700/crt0.o)
8/* DRAMORIG is in fact 0x8000000 but remapped to 0x0 */ 8/* DRAMORIG is in fact 0x8000000 but remapped to 0x0 */
9#define DRAMORIG 0x0 9#define DRAMORIG 0x0
10#define DRAMSIZE 16M 10#define DRAMSIZE 16M
11# 11
12#define IRAMORIG 0x22000000 12#define IRAMORIG 0x22000000
13#define IRAMSIZE 256K 13#define IRAMSIZE 256K
14 14
15#ifdef MEIZU_M6SL
16#define DFULOADADDR IRAMORIG
17#else
18#define DFULOADADDR (IRAMORIG+0x20000)
19#endif
20
15/* This is not available in all versions of the S5L8700 */ 21/* This is not available in all versions of the S5L8700 */
16#define FLASHORIG 0x24000000 22#define FLASHORIG 0x24000000
17#define FLASHSIZE 1M 23#define FLASHSIZE 1M
18 24
19SECTIONS 25SECTIONS
20{ 26{
21 . = IRAMORIG; 27 /*. = IRAMORIG; */
28 /* As long as we don't flash the code, use the DFU load address */
29 . = DFULOADADDR;
22 30
23 .text : { 31 .text : {
24 *(.init.text) 32 *(.init.text)