diff options
author | Dave Chapman <dave@dchapman.com> | 2009-10-04 02:04:49 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2009-10-04 02:04:49 +0000 |
commit | 98d7203eca87ec0fd0f1938e61064c51798ea068 (patch) | |
tree | d407e9d0627f55c39d0f56ea4d10d459027b8c36 | |
parent | 97cc27411daa0506baeb9faf22d0d3061fe0287a (diff) | |
download | rockbox-98d7203eca87ec0fd0f1938e61064c51798ea068.tar.gz rockbox-98d7203eca87ec0fd0f1938e61064c51798ea068.zip |
Correct the IRAM definitions for the S5L8700/8701 and add definitions for plugins/codecs. The current split (64/64 core/plugins for S5L8700 and 96/80 core/plugins for S5L8701) is arbitrary and should probably be tweaked later
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22905 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/plugin.lds | 10 | ||||
-rw-r--r-- | firmware/target/arm/s5l8700/app.lds | 6 |
2 files changed, 15 insertions, 1 deletions
diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds index f93d5d4425..6b608fcc70 100644 --- a/apps/plugins/plugin.lds +++ b/apps/plugins/plugin.lds | |||
@@ -140,6 +140,16 @@ OUTPUT_FORMAT(elf32-littlemips) | |||
140 | #define IRAMSIZE (IRAM_ORIG + IRAM_SIZE - IRAMORIG) | 140 | #define IRAMSIZE (IRAM_ORIG + IRAM_SIZE - IRAMORIG) |
141 | #endif | 141 | #endif |
142 | 142 | ||
143 | #elif CONFIG_CPU==S5L8700 | ||
144 | #define DRAMORIG 0x08000000 | ||
145 | #define IRAMORIG (0x00000000 + (64*1024)) | ||
146 | #define IRAMSIZE (64*1024) | ||
147 | |||
148 | #elif CONFIG_CPU==S5L8701 | ||
149 | #define DRAMORIG 0x08000000 | ||
150 | #define IRAMORIG (0x00000000 + (96*1024)) | ||
151 | #define IRAMSIZE (80*1024) | ||
152 | |||
143 | #elif CONFIG_CPU == JZ4732 | 153 | #elif CONFIG_CPU == JZ4732 |
144 | #define DRAMORIG 0x80004000 + STUBOFFSET | 154 | #define DRAMORIG 0x80004000 + STUBOFFSET |
145 | #define IRAM DRAM | 155 | #define IRAM DRAM |
diff --git a/firmware/target/arm/s5l8700/app.lds b/firmware/target/arm/s5l8700/app.lds index 812bce8cbb..26fa9b910d 100644 --- a/firmware/target/arm/s5l8700/app.lds +++ b/firmware/target/arm/s5l8700/app.lds | |||
@@ -27,7 +27,11 @@ STARTUP(target/arm/s5l8700/crt0.o) | |||
27 | 27 | ||
28 | #define DRAMSIZE (DRAM_SIZE - STUBOFFSET - PLUGINSIZE - CODECSIZE) | 28 | #define DRAMSIZE (DRAM_SIZE - STUBOFFSET - PLUGINSIZE - CODECSIZE) |
29 | #define CODECORIG (ENDAUDIOADDR) | 29 | #define CODECORIG (ENDAUDIOADDR) |
30 | #define IRAMSIZE (0x20000) | 30 | #if CONFIG_CPU==S5L8700 |
31 | #define IRAMSIZE (64*1024) /* 128KB total - 64KB for core, 64KB for plugins */ | ||
32 | #else /* S5L8701 */ | ||
33 | #define IRAMSIZE (96*1024) /* 176KB total - 96KB for core, 80KB for plugins */ | ||
34 | #endif | ||
31 | 35 | ||
32 | /* Where the codec buffer ends, and the plugin buffer starts */ | 36 | /* Where the codec buffer ends, and the plugin buffer starts */ |
33 | #define ENDADDR (ENDAUDIOADDR + CODECSIZE) | 37 | #define ENDADDR (ENDAUDIOADDR + CODECSIZE) |