M:Robe 500: More LCD initialization, QVGA (vs. VGA) is now enabled by default for...
[kugel-rb.git] / firmware / export / config-mrobe500.h
blob90bbefe329505b0fdbefa69da1f9485cb8fc721f
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2007 by Karl Kurbjun
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
23 * This config file is for the M:Robe 500i
25 #define TARGET_TREE /* this target is using the target tree system */
27 #define CONFIG_SDRAM_START 0x00900000
29 #define OLYMPUS_MROBE_500 1
30 #define MODEL_NAME "Olympus M:Robe 500i"
32 /* For Rolo and boot loader */
33 #define MODEL_NUMBER 22
35 /* define this if you use an ATA controller */
36 #define CONFIG_STORAGE STORAGE_ATA
38 /* define this if you have a bitmap LCD display */
39 #define HAVE_LCD_BITMAP
41 /* define this if you have a colour LCD */
42 #define HAVE_LCD_COLOR
44 /* define this if you want album art for this target */
45 //#define HAVE_ALBUMART
47 /* define this if you have access to the quickscreen */
48 #define HAVE_QUICKSCREEN
50 /* define this if you have access to the pitchscreen */
51 #define HAVE_PITCHSCREEN
53 /* define this if you would like tagcache to build on this target */
54 #define HAVE_TAGCACHE
56 /* define this if the target has volume keys which can be used in the lists */
57 #define HAVE_VOLUME_IN_LIST
59 /* LCD dimensions */
60 #define CONFIG_LCD LCD_MROBE500
62 #if 0
63 #define LCD_NATIVE_WIDTH 480
64 #define LCD_NATIVE_HEIGHT 640
65 #else
66 #define LCD_NATIVE_WIDTH 240
67 #define LCD_NATIVE_HEIGHT 320
68 #endif
70 /* choose the lcd orientation. CONFIG_ORIENTATION defined in config.h */
71 #if 0
72 #define LCD_WIDTH LCD_NATIVE_WIDTH
73 #define LCD_HEIGHT LCD_NATIVE_HEIGHT
74 #else
75 #define LCD_WIDTH LCD_NATIVE_HEIGHT
76 #define LCD_HEIGHT LCD_NATIVE_WIDTH
77 #endif
79 #define LCD_DEPTH 16 /* 65k colours */
80 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
82 /* Define this if your LCD can be enabled/disabled */
83 #define HAVE_LCD_ENABLE
85 #define HAVE_LCD_SLEEP_SETTING
87 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
88 should be defined as well. */
89 #define HAVE_LCD_SLEEP
91 /* remote LCD */
92 //#define HAVE_REMOTE_LCD
93 #define LCD_REMOTE_WIDTH 79
94 #define LCD_REMOTE_HEIGHT 16
95 #define LCD_REMOTE_DEPTH 1
97 #define LCD_REMOTE_PIXELFORMAT VERTICAL_PACKING
99 #define MIN_REMOTE_CONTRAST_SETTING 0
100 #define MAX_REMOTE_CONTRAST_SETTING 15
101 #define DEFAULT_REMOTE_CONTRAST_SETTING 7
103 #define CONFIG_KEYPAD MROBE500_PAD
104 #define HAVE_TOUCHSCREEN
105 #define HAVE_BUTTON_DATA
107 /* Define this if you do software codec */
108 #define CONFIG_CODEC SWCODEC
110 /* There is no hardware tone control */
111 #define HAVE_SW_TONE_CONTROLS
113 /* define this if you have a real-time clock */
114 #define CONFIG_RTC RTC_RX5X348AB
116 /* define this if you have a disk storage, i.e. something
117 that needs spinups and can cause skips when shaked */
118 #define HAVE_DISK_STORAGE
120 /* Define this for LCD backlight available */
121 #define HAVE_BACKLIGHT
123 #define HAVE_BACKLIGHT_BRIGHTNESS
125 /* Main LCD backlight brightness range and defaults */
126 #define MIN_BRIGHTNESS_SETTING 0
127 #define MAX_BRIGHTNESS_SETTING 127
128 #define DEFAULT_BRIGHTNESS_SETTING 85 /* OF "full brightness" */
129 #define DEFAULT_DIMNESS_SETTING 22 /* OF "most dim" */
131 /* Define this if you have a software controlled poweroff */
132 #define HAVE_SW_POWEROFF
134 /* The number of bytes reserved for loadable codecs */
135 #define CODEC_SIZE 0x100000
137 /* The number of bytes reserved for loadable plugins */
138 #define PLUGIN_BUFFER_SIZE 0x100000
140 #define HW_SAMPR_CAPS SAMPR_CAP_44
142 #define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */
143 #define BATTERY_CAPACITY_MIN 1000 /* min. capacity selectable */
144 #define BATTERY_CAPACITY_MAX 2000 /* max. capacity selectable */
145 #define BATTERY_CAPACITY_INC 100 /* capacity increment */
146 #define BATTERY_TYPES_COUNT 1 /* only one type */
148 /* define current usage levels */
149 #define CURRENT_NORMAL 120 /* Measured */
150 #define CURRENT_BACKLIGHT 80 /* Over 200 mA total measured when on */
151 #define CURRENT_RECORD 0 /* no recording */
153 /* Hardware controlled charging with monitoring */
154 #define CONFIG_CHARGING CHARGING_MONITOR
156 /* Define this if you have a Texas Instruments TSC2100 touch screen */
157 #define HAVE_TSC2100
159 #ifndef SIMULATOR
161 /* Define this if hardware supports alternate blitting */
162 #define HAVE_LCD_MODES LCD_MODE_RGB565 | LCD_MODE_YUV | LCD_MODE_PAL256
164 /* Define this if you have a Motorola SCF5249 */
165 #define CONFIG_CPU DM320
167 #define CONFIG_I2C I2C_DM320
169 /* define this if the hardware can be powered off while charging */
170 #define HAVE_POWEROFF_WHILE_CHARGING
172 /* The size of the flash ROM */
173 #define FLASH_SIZE 0x400000
175 /* Define this to the CPU frequency */
176 #define CPU_FREQ 16934400
178 /* Define this if you have ATA power-off control */
179 #define HAVE_ATA_POWER_OFF
181 /* Virtual LED (icon) */
182 #define CONFIG_LED LED_VIRTUAL
184 /* define this if the backlight can be set to a brightness */
185 #define __BACKLIGHT_INIT
187 /* Offset ( in the firmware file's header ) to the file CRC */
188 #define FIRMWARE_OFFSET_FILE_CRC 0
190 /* Offset ( in the firmware file's header ) to the real data */
191 #define FIRMWARE_OFFSET_FILE_DATA 8
193 /* Define this if you have adjustable CPU frequency */
194 /* #define HAVE_ADJUSTABLE_CPU_FREQ */
196 #define BOOTFILE_EXT "mrobe500"
197 #define BOOTFILE "rockbox." BOOTFILE_EXT
198 #define BOOTDIR "/.rockbox"
200 #endif