diff options
Diffstat (limited to 'firmware/target/arm/tms320dm320/system-dm320.c')
-rw-r--r-- | firmware/target/arm/tms320dm320/system-dm320.c | 8 |
1 files changed, 6 insertions, 2 deletions
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); |