1
0
Fork 0
forked from len0rd/rockbox

M:Robe 500: Start Building at 640x480 by default.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22216 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Karl Kurbjun 2009-08-09 05:17:10 +00:00
parent 729ff6f503
commit 5a2e19db64
3 changed files with 19 additions and 7 deletions

View file

@ -68,7 +68,17 @@
/* LCD dimensions */
#define CONFIG_LCD LCD_MROBE500
#if 0
/* These defines are used internal to this header */
#define _LCD_RES_QVGA 1
#define _LCD_RES_VGA 2
#define _LCD_PORTRAIT 1
#define _LCD_LANDSCAPE 2
/* Setup the resolution and orientation */
#define _RESOLUTION _LCD_RES_VGA
#define _ORIENTATION _LCD_LANDSCAPE
#if _RESOLUTION == _LCD_RES_VGA
#define LCD_NATIVE_WIDTH 480
#define LCD_NATIVE_HEIGHT 640
#else
@ -77,7 +87,7 @@
#endif
/* choose the lcd orientation. CONFIG_ORIENTATION defined in config.h */
#if 0
#if _ORIENTATION == _LCD_PORTRAIT
/* This is the Portrait setup */
#define LCD_WIDTH LCD_NATIVE_WIDTH
#define LCD_HEIGHT LCD_NATIVE_HEIGHT
@ -183,7 +193,7 @@
/* Define this if you have a Texas Instruments TSC2100 touch screen */
#define HAVE_TSC2100
#ifndef SIMULATOR
#if !defined(SIMULATOR)
/* M66591 register base */
#define M66591_BASE 0x60000000

View file

@ -65,8 +65,6 @@ SECTIONS
{
*(.rodata) /* problems without this, dunno why */
*(.rodata*)
*(.rodata.str1.1)
*(.rodata.str1.4)
. = ALIGN(0x4);
} > DRAM

View file

@ -272,7 +272,11 @@ void system_init(void)
#ifdef CREATIVE_ZVx
dma_init();
#endif
#define LCD_FUDGE LCD_NATIVE_WIDTH%32
#define LCD_BUFFER_SIZE ((LCD_NATIVE_WIDTH+LCD_FUDGE)*LCD_NATIVE_HEIGHT*2)
#define LCD_TTB_AREA ((LCD_BUFFER_SIZE>>19)+1)
/* MMU initialization (Starts data and instruction cache) */
ttb_init();
/* Make sure everything is mapped on itself */
@ -280,7 +284,7 @@ void system_init(void)
/* Enable caching for RAM */
map_section(CONFIG_SDRAM_START, CONFIG_SDRAM_START, MEM, CACHE_ALL);
/* enable buffered writing for the framebuffer */
map_section((int)FRAME, (int)FRAME, 1, BUFFERED);
map_section((int)FRAME, (int)FRAME, LCD_TTB_AREA, BUFFERED);
#ifdef CREATIVE_ZVx
/* mimic OF */
map_section(0x00100000, 0x00100000, 4, CACHE_NONE);