mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-11 06:05:21 -05:00
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:
parent
729ff6f503
commit
5a2e19db64
3 changed files with 19 additions and 7 deletions
|
|
@ -68,7 +68,17 @@
|
||||||
/* LCD dimensions */
|
/* LCD dimensions */
|
||||||
#define CONFIG_LCD LCD_MROBE500
|
#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_WIDTH 480
|
||||||
#define LCD_NATIVE_HEIGHT 640
|
#define LCD_NATIVE_HEIGHT 640
|
||||||
#else
|
#else
|
||||||
|
|
@ -77,7 +87,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* choose the lcd orientation. CONFIG_ORIENTATION defined in config.h */
|
/* choose the lcd orientation. CONFIG_ORIENTATION defined in config.h */
|
||||||
#if 0
|
#if _ORIENTATION == _LCD_PORTRAIT
|
||||||
/* This is the Portrait setup */
|
/* This is the Portrait setup */
|
||||||
#define LCD_WIDTH LCD_NATIVE_WIDTH
|
#define LCD_WIDTH LCD_NATIVE_WIDTH
|
||||||
#define LCD_HEIGHT LCD_NATIVE_HEIGHT
|
#define LCD_HEIGHT LCD_NATIVE_HEIGHT
|
||||||
|
|
@ -183,7 +193,7 @@
|
||||||
/* Define this if you have a Texas Instruments TSC2100 touch screen */
|
/* Define this if you have a Texas Instruments TSC2100 touch screen */
|
||||||
#define HAVE_TSC2100
|
#define HAVE_TSC2100
|
||||||
|
|
||||||
#ifndef SIMULATOR
|
#if !defined(SIMULATOR)
|
||||||
|
|
||||||
/* M66591 register base */
|
/* M66591 register base */
|
||||||
#define M66591_BASE 0x60000000
|
#define M66591_BASE 0x60000000
|
||||||
|
|
|
||||||
|
|
@ -65,8 +65,6 @@ SECTIONS
|
||||||
{
|
{
|
||||||
*(.rodata) /* problems without this, dunno why */
|
*(.rodata) /* problems without this, dunno why */
|
||||||
*(.rodata*)
|
*(.rodata*)
|
||||||
*(.rodata.str1.1)
|
|
||||||
*(.rodata.str1.4)
|
|
||||||
. = ALIGN(0x4);
|
. = ALIGN(0x4);
|
||||||
} > DRAM
|
} > DRAM
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -272,7 +272,11 @@ void system_init(void)
|
||||||
#ifdef CREATIVE_ZVx
|
#ifdef CREATIVE_ZVx
|
||||||
dma_init();
|
dma_init();
|
||||||
#endif
|
#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) */
|
/* MMU initialization (Starts data and instruction cache) */
|
||||||
ttb_init();
|
ttb_init();
|
||||||
/* Make sure everything is mapped on itself */
|
/* Make sure everything is mapped on itself */
|
||||||
|
|
@ -280,7 +284,7 @@ void system_init(void)
|
||||||
/* Enable caching for RAM */
|
/* Enable caching for RAM */
|
||||||
map_section(CONFIG_SDRAM_START, CONFIG_SDRAM_START, MEM, CACHE_ALL);
|
map_section(CONFIG_SDRAM_START, CONFIG_SDRAM_START, MEM, CACHE_ALL);
|
||||||
/* enable buffered writing for the framebuffer */
|
/* 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
|
#ifdef CREATIVE_ZVx
|
||||||
/* mimic OF */
|
/* mimic OF */
|
||||||
map_section(0x00100000, 0x00100000, 4, CACHE_NONE);
|
map_section(0x00100000, 0x00100000, 4, CACHE_NONE);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue