summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2009-10-04 02:04:49 +0000
committerDave Chapman <dave@dchapman.com>2009-10-04 02:04:49 +0000
commit98d7203eca87ec0fd0f1938e61064c51798ea068 (patch)
treed407e9d0627f55c39d0f56ea4d10d459027b8c36 /firmware
parent97cc27411daa0506baeb9faf22d0d3061fe0287a (diff)
downloadrockbox-98d7203eca87ec0fd0f1938e61064c51798ea068.zip
rockbox-98d7203eca87ec0fd0f1938e61064c51798ea068.tar.gz
rockbox-98d7203eca87ec0fd0f1938e61064c51798ea068.tar.bz2
rockbox-98d7203eca87ec0fd0f1938e61064c51798ea068.tar.xz
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
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/s5l8700/app.lds6
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/target/arm/s5l8700/app.lds b/firmware/target/arm/s5l8700/app.lds
index 812bce8..26fa9b9 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)
#define DRAMSIZE (DRAM_SIZE - STUBOFFSET - PLUGINSIZE - CODECSIZE)
#define CODECORIG (ENDAUDIOADDR)
-#define IRAMSIZE (0x20000)
+#if CONFIG_CPU==S5L8700
+#define IRAMSIZE (64*1024) /* 128KB total - 64KB for core, 64KB for plugins */
+#else /* S5L8701 */
+#define IRAMSIZE (96*1024) /* 176KB total - 96KB for core, 80KB for plugins */
+#endif
/* Where the codec buffer ends, and the plugin buffer starts */
#define ENDADDR (ENDAUDIOADDR + CODECSIZE)