summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2010-11-02 22:56:31 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2010-11-02 22:56:31 +0000
commit57a683fc7d656ea99e1d3bb376a9261d99ebdc59 (patch)
tree831b92cb741c673b637591229e2a187f87a99f3d
parent88b6bef9d4269af7d7ad94dba1e47d2f204b3a65 (diff)
downloadrockbox-57a683fc7d656ea99e1d3bb376a9261d99ebdc59.tar.gz
rockbox-57a683fc7d656ea99e1d3bb376a9261d99ebdc59.zip
Reconfigure IRAM for S5L870x. S5L8700 has 256 KB of IRAM, use a 48 KB / 208 KB split for core/codec. S5L8701 has 176 KB of IRAM, use a 48 KB / 128 KB split for core/codec. This will allow further speed optimization of codecs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28463 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/plugin.lds10
-rw-r--r--firmware/target/arm/s5l8700/app.lds4
2 files changed, 8 insertions, 6 deletions
diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds
index 653b8bae87..2f11bd1235 100644
--- a/apps/plugins/plugin.lds
+++ b/apps/plugins/plugin.lds
@@ -139,14 +139,16 @@ OUTPUT_FORMAT(elf32-littlemips)
139#endif 139#endif
140 140
141#elif CONFIG_CPU==S5L8700 141#elif CONFIG_CPU==S5L8700
142/* S5L8700 have 256KB of IRAM */
142#define DRAMORIG 0x08000000 143#define DRAMORIG 0x08000000
143#define IRAMORIG (0x00000000 + (64*1024)) 144#define IRAMORIG (0x00000000 + (48*1024))
144#define IRAMSIZE (64*1024) 145#define IRAMSIZE (208*1024)
145 146
146#elif CONFIG_CPU==S5L8701 147#elif CONFIG_CPU==S5L8701
148/* S5L8701 have 176KB of IRAM */
147#define DRAMORIG 0x08000000 149#define DRAMORIG 0x08000000
148#define IRAMORIG (0x00000000 + (96*1024)) 150#define IRAMORIG (0x00000000 + (48*1024))
149#define IRAMSIZE (80*1024) 151#define IRAMSIZE (128*1024)
150 152
151#elif CONFIG_CPU == JZ4732 153#elif CONFIG_CPU == JZ4732
152#define DRAMORIG 0x80004000 + STUBOFFSET 154#define DRAMORIG 0x80004000 + STUBOFFSET
diff --git a/firmware/target/arm/s5l8700/app.lds b/firmware/target/arm/s5l8700/app.lds
index f055dffd79..2f8ef6a40f 100644
--- a/firmware/target/arm/s5l8700/app.lds
+++ b/firmware/target/arm/s5l8700/app.lds
@@ -21,9 +21,9 @@ STARTUP(target/arm/s5l8700/crt0.o)
21#define DRAMSIZE (DRAM_SIZE - PLUGINSIZE - CODECSIZE) 21#define DRAMSIZE (DRAM_SIZE - PLUGINSIZE - CODECSIZE)
22#define CODECORIG (ENDAUDIOADDR) 22#define CODECORIG (ENDAUDIOADDR)
23#if CONFIG_CPU==S5L8700 23#if CONFIG_CPU==S5L8700
24#define IRAMSIZE (128*1024) /* 256KB total - 128KB for core, 128KB for plugins */ 24#define IRAMSIZE (48*1024) /* 256KB total - 48KB for core, 208KB for plugins */
25#else /* S5L8701 */ 25#else /* S5L8701 */
26#define IRAMSIZE (96*1024) /* 176KB total - 96KB for core, 80KB for plugins */ 26#define IRAMSIZE (48*1024) /* 176KB total - 48KB for core, 128KB for plugins */
27#endif 27#endif
28 28
29/* Where the codec buffer ends, and the plugin buffer starts */ 29/* Where the codec buffer ends, and the plugin buffer starts */