summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2009-08-09 05:17:10 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2009-08-09 05:17:10 +0000
commit5a2e19db64b718410d24c77d6cc9f6dffcfd76f4 (patch)
tree62b50129d82b59a899f8df3b860a47a5a5913604 /firmware/target
parent729ff6f5030eef4c27ed66192969b806ca8ad47f (diff)
downloadrockbox-5a2e19db64b718410d24c77d6cc9f6dffcfd76f4.tar.gz
rockbox-5a2e19db64b718410d24c77d6cc9f6dffcfd76f4.zip
M:Robe 500: Start Building at 640x480 by default.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22216 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/tms320dm320/app.lds2
-rw-r--r--firmware/target/arm/tms320dm320/system-dm320.c8
2 files changed, 6 insertions, 4 deletions
diff --git a/firmware/target/arm/tms320dm320/app.lds b/firmware/target/arm/tms320dm320/app.lds
index 2c74278142..fbaaff3e6c 100644
--- a/firmware/target/arm/tms320dm320/app.lds
+++ b/firmware/target/arm/tms320dm320/app.lds
@@ -65,8 +65,6 @@ SECTIONS
65 { 65 {
66 *(.rodata) /* problems without this, dunno why */ 66 *(.rodata) /* problems without this, dunno why */
67 *(.rodata*) 67 *(.rodata*)
68 *(.rodata.str1.1)
69 *(.rodata.str1.4)
70 . = ALIGN(0x4); 68 . = ALIGN(0x4);
71 } > DRAM 69 } > DRAM
72 70
diff --git a/firmware/target/arm/tms320dm320/system-dm320.c b/firmware/target/arm/tms320dm320/system-dm320.c
index 7f40831646..461028a349 100644
--- a/firmware/target/arm/tms320dm320/system-dm320.c
+++ b/firmware/target/arm/tms320dm320/system-dm320.c
@@ -272,7 +272,11 @@ void system_init(void)
272#ifdef CREATIVE_ZVx 272#ifdef CREATIVE_ZVx
273 dma_init(); 273 dma_init();
274#endif 274#endif
275 275
276#define LCD_FUDGE LCD_NATIVE_WIDTH%32
277#define LCD_BUFFER_SIZE ((LCD_NATIVE_WIDTH+LCD_FUDGE)*LCD_NATIVE_HEIGHT*2)
278#define LCD_TTB_AREA ((LCD_BUFFER_SIZE>>19)+1)
279
276 /* MMU initialization (Starts data and instruction cache) */ 280 /* MMU initialization (Starts data and instruction cache) */
277 ttb_init(); 281 ttb_init();
278 /* Make sure everything is mapped on itself */ 282 /* Make sure everything is mapped on itself */
@@ -280,7 +284,7 @@ void system_init(void)
280 /* Enable caching for RAM */ 284 /* Enable caching for RAM */
281 map_section(CONFIG_SDRAM_START, CONFIG_SDRAM_START, MEM, CACHE_ALL); 285 map_section(CONFIG_SDRAM_START, CONFIG_SDRAM_START, MEM, CACHE_ALL);
282 /* enable buffered writing for the framebuffer */ 286 /* enable buffered writing for the framebuffer */
283 map_section((int)FRAME, (int)FRAME, 1, BUFFERED); 287 map_section((int)FRAME, (int)FRAME, LCD_TTB_AREA, BUFFERED);
284#ifdef CREATIVE_ZVx 288#ifdef CREATIVE_ZVx
285 /* mimic OF */ 289 /* mimic OF */
286 map_section(0x00100000, 0x00100000, 4, CACHE_NONE); 290 map_section(0x00100000, 0x00100000, 4, CACHE_NONE);