diff options
Diffstat (limited to 'firmware/app.lds')
-rw-r--r-- | firmware/app.lds | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/firmware/app.lds b/firmware/app.lds index c5c4e6e30e..a02d0a3b54 100644 --- a/firmware/app.lds +++ b/firmware/app.lds | |||
@@ -39,6 +39,9 @@ INPUT(target/sh/crt0.o) | |||
39 | #if CONFIG_CPU==S3C2440 | 39 | #if CONFIG_CPU==S3C2440 |
40 | #include "s3c2440.h" | 40 | #include "s3c2440.h" |
41 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - 0x100 - PLUGINSIZE - STUBOFFSET - CODECSIZE - LCD_BUFFER_SIZE - TTB_SIZE | 41 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - 0x100 - PLUGINSIZE - STUBOFFSET - CODECSIZE - LCD_BUFFER_SIZE - TTB_SIZE |
42 | #elif CONFIG_CPU==IMX31L | ||
43 | #include "imx31l.h" | ||
44 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - STUBOFFSET - CODECSIZE - TTB_SIZE | ||
42 | #elif CONFIG_CPU==DM320 | 45 | #elif CONFIG_CPU==DM320 |
43 | #include "dm320.h" | 46 | #include "dm320.h" |
44 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - STUBOFFSET - CODECSIZE - LCD_BUFFER_SIZE - TTB_SIZE | 47 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - STUBOFFSET - CODECSIZE - LCD_BUFFER_SIZE - TTB_SIZE |
@@ -76,6 +79,8 @@ INPUT(target/sh/crt0.o) | |||
76 | #elif CONFIG_CPU==IMX31L | 79 | #elif CONFIG_CPU==IMX31L |
77 | #define DRAMORIG (0x0 + STUBOFFSET) | 80 | #define DRAMORIG (0x0 + STUBOFFSET) |
78 | #define IRAMORIG 0x1FFFC000 | 81 | #define IRAMORIG 0x1FFFC000 |
82 | #define IRAMORIG DRAMORIG | ||
83 | #define IRAM DRAM | ||
79 | #define IRAMSIZE 0x4000 | 84 | #define IRAMSIZE 0x4000 |
80 | #elif defined(CPU_TCC780X) | 85 | #elif defined(CPU_TCC780X) |
81 | #define DRAMORIG 0x20000000 + STUBOFFSET | 86 | #define DRAMORIG 0x20000000 + STUBOFFSET |
@@ -105,7 +110,7 @@ MEMORY | |||
105 | ITCM : ORIGIN = ITCMORIG, LENGTH = ITCMSIZE | 110 | ITCM : ORIGIN = ITCMORIG, LENGTH = ITCMSIZE |
106 | DTCM : ORIGIN = DTCMORIG, LENGTH = DTCMSIZE | 111 | DTCM : ORIGIN = DTCMORIG, LENGTH = DTCMSIZE |
107 | SRAM : ORIGIN = SRAMORIG, LENGTH = SRAMSIZE | 112 | SRAM : ORIGIN = SRAMORIG, LENGTH = SRAMSIZE |
108 | #elif CONFIG_CPU != S3C2440 | 113 | #elif CONFIG_CPU != S3C2440 && CONFIG_CPU != IMX31L |
109 | IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE | 114 | IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE |
110 | #endif | 115 | #endif |
111 | #if CONFIG_CPU==PNX0101 | 116 | #if CONFIG_CPU==PNX0101 |
@@ -296,7 +301,7 @@ SECTIONS | |||
296 | _end = .; | 301 | _end = .; |
297 | } > DRAM | 302 | } > DRAM |
298 | 303 | ||
299 | #elif CONFIG_CPU==S3C2440 | 304 | #elif CONFIG_CPU==S3C2440 || CONFIG_CPU == IMX31L |
300 | .text : | 305 | .text : |
301 | { | 306 | { |
302 | loadaddress = .; | 307 | loadaddress = .; |