From 93fccc763b97323cb3112bf9afee819cd03ba195 Mon Sep 17 00:00:00 2001 From: Karl Kurbjun Date: Thu, 9 Apr 2009 04:22:14 +0000 Subject: M:Robe 500: More LCD initialization, QVGA (vs. VGA) is now enabled by default for performance, 256 color palette mode added, include some linker cleanups and reorganization. Doom and MPEGPlayer now run reaonably well. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20664 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/tms320dm320/app.lds | 57 ++++++++++++++++++--------------- 1 file changed, 31 insertions(+), 26 deletions(-) (limited to 'firmware/target/arm/tms320dm320/app.lds') diff --git a/firmware/target/arm/tms320dm320/app.lds b/firmware/target/arm/tms320dm320/app.lds index 47ff239a1a..4e175101a9 100644 --- a/firmware/target/arm/tms320dm320/app.lds +++ b/firmware/target/arm/tms320dm320/app.lds @@ -6,35 +6,30 @@ OUTPUT_FORMAT(elf32-littlearm) OUTPUT_ARCH(arm) STARTUP(target/arm/tms320dm320/crt0.o) -#define PLUGINSIZE PLUGIN_BUFFER_SIZE -#define CODECSIZE CODEC_SIZE - #ifdef DEBUG #define STUBOFFSET 0x10000 #else #define STUBOFFSET 0 #endif -#define LCD_BUFFER_SIZE (LCD_WIDTH*LCD_HEIGHT*2) - -/* must be 16Kb (0x4000) aligned */ -#define TTB_SIZE (0x4000) +#define LCD_FUDGE LCD_NATIVE_WIDTH%32 -#define DRAMSIZE (MEMORYSIZE * 0x100000) - STUBOFFSET - PLUGINSIZE - CODECSIZE - LCD_BUFFER_SIZE - TTB_SIZE +#define LCD_BUFFER_SIZE ((LCD_NATIVE_WIDTH+LCD_FUDGE)*LCD_NATIVE_HEIGHT*2) -#define DRAMORIG 0x00900000 + STUBOFFSET -#define IRAMORIG 0x00000000 -#define IRAMSIZE 0x4000 +/* must be 16Kb (0x4000) aligned */ +#define TTB_SIZE 0x4000 -/* End of the audio buffer, where the codec buffer starts */ -#define ENDAUDIOADDR (DRAMORIG + DRAMSIZE) +/* Give this 1 meg to allow it to align to the MMU boundary */ +#define LCD_TTB_AREA 0x100000 -/* Where the codec buffer ends, and the plugin buffer starts */ -#define ENDADDR (ENDAUDIOADDR + CODECSIZE) +#define DRAMSIZE (MEMORYSIZE * 0x100000) - STUBOFFSET -#define LCDBEGIN (ENDADDR + PLUGINSIZE) +#define DRAMORIG 0x00900000 + STUBOFFSET +#define IRAMORIG 0x00000000 +#define IRAMSIZE 0x4000 -#define TTBBEGIN (LCDBEGIN + LCD_BUFFER_SIZE) +/* End of the audio buffer, where the codec buffer starts */ +#define ENDAUDIOADDR (DRAMORIG + DRAMSIZE - PLUGIN_BUFFER_SIZE - CODEC_SIZE - LCD_TTB_AREA) MEMORY { @@ -144,22 +139,32 @@ SECTIONS { codecbuf = .; _codecbuf = .; - } + . += CODEC_SIZE; + } > DRAM - .plugin ENDADDR (NOLOAD) : + .plugin (NOLOAD) : { _pluginbuf = .; pluginbuf = .; - } + . += PLUGIN_BUFFER_SIZE; + } > DRAM - .lcdbuffer LCDBEGIN (NOLOAD) : + .ttbtable (NOLOAD) : { - _lcdbuf = .; - } + . = ALIGN (0x4000); + _ttbstart = .; + . += TTB_SIZE; + } > DRAM + + /* The LCD buffer should be at the end of memory to protect against + * overflowing something else when the YUV blitter is fudging the screen + * size. + */ - .ttbtable TTBBEGIN (NOLOAD) : + .lcdbuffer (NOLOAD) : { - _ttbstart = .; - } + _lcdbuf = .; + . += LCD_BUFFER_SIZE; + } > DRAM } -- cgit v1.2.3