summaryrefslogtreecommitdiff
path: root/firmware/boot.lds
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/boot.lds')
-rw-r--r--firmware/boot.lds43
1 files changed, 42 insertions, 1 deletions
diff --git a/firmware/boot.lds b/firmware/boot.lds
index 0e2ccc1b90..999e1b0f26 100644
--- a/firmware/boot.lds
+++ b/firmware/boot.lds
@@ -69,6 +69,12 @@ INPUT(target/sh/crt0.o)
69#define IRAMSIZE 0x18000 69#define IRAMSIZE 0x18000
70#define FLASHORIG 0x001f0000 70#define FLASHORIG 0x001f0000
71#define FLASHSIZE 2M 71#define FLASHSIZE 2M
72#elif CONFIG_CPU == IMX31L
73#define DRAMORIG 0x80000000
74#define IRAMORIG 0x1FFFC000
75#define IRAMSIZE 16K
76#define FLASHORIG 0x0000000
77#define FLASHSIZE 1M
72#else 78#else
73#define DRAMORIG 0x09000000 79#define DRAMORIG 0x09000000
74#define IRAMORIG 0x0f000000 80#define IRAMORIG 0x0f000000
@@ -77,7 +83,7 @@ INPUT(target/sh/crt0.o)
77#define FLASHSIZE 256K - ROM_START 83#define FLASHSIZE 256K - ROM_START
78#endif 84#endif
79 85
80#if !defined(CPU_PP) && (CONFIG_CPU!=S3C2440) 86#if !defined(CPU_PP) && (CONFIG_CPU!=S3C2440) && (CONFIG_CPU!=IMX31L)
81MEMORY 87MEMORY
82{ 88{
83 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE 89 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
@@ -216,6 +222,41 @@ SECTIONS
216 _end = .; 222 _end = .;
217 }>DRAM 223 }>DRAM
218} 224}
225#elif (CONFIG_CPU==IMX31L)
226{
227 . = 0x88201000;
228 .vectors :
229 {
230 KEEP(*(.vectors*));
231 *(.vectors*);
232 }
233 .text : {
234 *(.init.text)
235 *(.text*)
236 }
237 .data : {
238 *(.icode)
239 *(.irodata)
240 *(.idata)
241 *(.data*)
242 _dataend = . ;
243 }
244 .stack :
245 {
246 *(.stack)
247 _stackbegin = .;
248 stackbegin = .;
249 . += 0x2000;
250 _stackend = .;
251 stackend = .;
252 }
253 .bss : {
254 _edata = .;
255 *(.bss*);
256 *(.ibss);
257 _end = .;
258 }
259}
219#else 260#else
220{ 261{
221 .vectors : 262 .vectors :