TARGET_TREE is not needed anymore
[maemo-rb.git] / firmware / export / config / mrobe500.h
blob3111ab7abdaa0c002e9f4fd8d70d54f62cdf7988
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
26 /* This is the absolute address on the bus */
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 the ATA controller and method of USB access support LBA48 */
39 #define HAVE_LBA48
41 /* Define this to add support for ATA DMA */
42 //#define HAVE_ATA_DMA
44 /* define this if you have a bitmap LCD display */
45 #define HAVE_LCD_BITMAP
47 /* define this if you have a colour LCD */
48 #define HAVE_LCD_COLOR
50 /* define this if you want album art for this target */
51 #define HAVE_ALBUMART
53 /* define this to enable bitmap scaling */
54 #define HAVE_BMP_SCALING
56 /* define this to enable JPEG decoding */
57 #define HAVE_JPEG
59 /* define this if you have access to the quickscreen */
60 #define HAVE_QUICKSCREEN
62 /* define this if you have access to the pitchscreen */
63 #define HAVE_PITCHSCREEN
65 /* define this if you would like tagcache to build on this target */
66 #define HAVE_TAGCACHE
68 /* define this if the target has volume keys which can be used in the lists */
69 #define HAVE_VOLUME_IN_LIST
71 /* define this if you want viewport clipping enabled for safe LCD functions */
72 #define HAVE_VIEWPORT_CLIP
74 /* LCD dimensions */
75 #define CONFIG_LCD LCD_MROBE500
77 /* These defines are used internal to this header */
78 #define _LCD_RES_QVGA 1
79 #define _LCD_RES_VGA 2
80 #define _LCD_PORTRAIT 1
81 #define _LCD_LANDSCAPE 2
83 /* Setup the resolution and orientation */
84 #define _RESOLUTION _LCD_RES_VGA
85 #define _ORIENTATION _LCD_LANDSCAPE
87 #if _RESOLUTION == _LCD_RES_VGA
88 #define LCD_NATIVE_WIDTH 480
89 #define LCD_NATIVE_HEIGHT 640
90 #define LCD_DPI 216
91 #else
92 #define LCD_NATIVE_WIDTH 240
93 #define LCD_NATIVE_HEIGHT 320
94 #define LCD_DPI 108
95 #endif
97 /* choose the lcd orientation. CONFIG_ORIENTATION defined in config.h */
98 #if _ORIENTATION == _LCD_PORTRAIT
99 /* This is the Portrait setup */
100 #define LCD_WIDTH LCD_NATIVE_WIDTH
101 #define LCD_HEIGHT LCD_NATIVE_HEIGHT
102 #else
103 /* Frame buffer stride */
104 #define LCD_STRIDEFORMAT VERTICAL_STRIDE
106 /* This is the Landscape setup */
107 #define LCD_WIDTH LCD_NATIVE_HEIGHT
108 #define LCD_HEIGHT LCD_NATIVE_WIDTH
109 #endif
111 #define LCD_DEPTH 16 /* 65k colours */
112 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
114 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
115 should be defined as well. */
116 #define HAVE_LCD_SLEEP
117 #define HAVE_LCD_SLEEP_SETTING
119 /* remote LCD */
120 #define HAVE_REMOTE_LCD
121 #define LCD_REMOTE_WIDTH 79
122 #define LCD_REMOTE_HEIGHT 16
123 #define LCD_REMOTE_DEPTH 1
125 /* Remote display colours, for screenshots and sim (0xRRGGBB) */
126 #define LCD_REMOTE_DARKCOLOR 0x000000
127 #define LCD_REMOTE_BRIGHTCOLOR 0x5a915a
128 #define LCD_REMOTE_BL_DARKCOLOR 0x000000
129 #define LCD_REMOTE_BL_BRIGHTCOLOR 0x82b4fa
131 #define LCD_REMOTE_PIXELFORMAT VERTICAL_PACKING
133 #define CONFIG_REMOTE_KEYPAD MROBE_REMOTE
135 #define MIN_REMOTE_CONTRAST_SETTING 0
136 #define MAX_REMOTE_CONTRAST_SETTING 15
137 #define DEFAULT_REMOTE_CONTRAST_SETTING 7
139 #define CONFIG_KEYPAD MROBE500_PAD
140 #define HAVE_TOUCHSCREEN
141 #define HAVE_BUTTON_DATA
143 /* Define this to enable morse code input */
144 #define HAVE_MORSE_INPUT
146 /* define this if the target has volume keys which can be used in the lists */
147 #define HAVE_VOLUME_IN_LIST
149 /* Define this if you do software codec */
150 #define CONFIG_CODEC SWCODEC
152 //#define HAVE_HARDWARE_BEEP
154 /* There is no hardware tone control */
155 #define HAVE_SW_TONE_CONTROLS
157 /* define this if you have a real-time clock */
158 #define CONFIG_RTC RTC_RX5X348AB
160 /* define this if you have a disk storage, i.e. something
161 that needs spinups and can cause skips when shaked */
162 #define HAVE_DISK_STORAGE
164 /* Define this for LCD backlight available */
165 #define HAVE_BACKLIGHT
167 #define HAVE_BACKLIGHT_BRIGHTNESS
169 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
171 /* Main LCD backlight brightness range and defaults */
172 #define MIN_BRIGHTNESS_SETTING 0
173 #define MAX_BRIGHTNESS_SETTING 127
174 #define DEFAULT_BRIGHTNESS_SETTING 85 /* OF "full brightness" */
175 #define DEFAULT_DIMNESS_SETTING 22 /* OF "most dim" */
177 /* Define this if you have a software controlled poweroff */
178 #define HAVE_SW_POWEROFF
180 /* The number of bytes reserved for loadable codecs */
181 #define CODEC_SIZE 0x100000
183 /* The number of bytes reserved for loadable plugins */
184 #if LCD_NATIVE_WIDTH < 480
185 #define PLUGIN_BUFFER_SIZE 0x100000
186 #else
187 /* THe larger screen needs larger bitmaps in plugins */
188 #define PLUGIN_BUFFER_SIZE 0x200000
189 #endif
191 #define HW_SAMPR_CAPS SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11 | SAMPR_CAP_8
193 #define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */
194 #define BATTERY_CAPACITY_MIN 1000 /* min. capacity selectable */
195 #define BATTERY_CAPACITY_MAX 2000 /* max. capacity selectable */
196 #define BATTERY_CAPACITY_INC 100 /* capacity increment */
197 #define BATTERY_TYPES_COUNT 1 /* only one type */
199 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
201 /* define current usage levels */
202 #define CURRENT_NORMAL 85 /* Measured */
203 #define CURRENT_BACKLIGHT 200 /* Over 200 mA total measured when on */
204 #define CURRENT_RECORD 0 /* no recording */
206 /* Hardware controlled charging with monitoring */
207 #define CONFIG_CHARGING CHARGING_MONITOR
209 /* Define this if you have a Texas Instruments TSC2100 touch screen */
210 #define HAVE_TSC2100
212 /* M66591 register base */
213 #define M66591_BASE 0x60000000
215 /* enable these for the usb stack */
216 #define CONFIG_USBOTG USBOTG_M66591
217 #define USE_ROCKBOX_USB
219 #define HAVE_USBSTACK
220 //#define HAVE_USB_POWER
221 //#define USBPOWER_BUTTON BUTTON_POWER
222 //#define USBPOWER_BTN_IGNORE BUTTON_TOUCH
223 /* usb stack and driver settings */
224 #define USB_NUM_ENDPOINTS 7
225 #define USB_VENDOR_ID 0x07b4
226 #define USB_PRODUCT_ID 0x0281
227 #define HAVE_USB_HID_MOUSE
229 /* Define this if hardware supports alternate blitting */
230 #define HAVE_LCD_MODES LCD_MODE_RGB565 | LCD_MODE_YUV | LCD_MODE_PAL256
232 #define CONFIG_CPU DM320
234 #define CONFIG_I2C I2C_DM320
236 /* define this if the hardware can be powered off while charging */
237 #define HAVE_POWEROFF_WHILE_CHARGING
239 /* The size of the flash ROM */
240 #define FLASH_SIZE 0x400000
242 /* Define this to the CPU frequency */
243 #define CPU_FREQ 87500000
245 /* Define this if you have ATA power-off control */
246 #define HAVE_ATA_POWER_OFF
248 /* Offset ( in the firmware file's header ) to the file CRC */
249 #define FIRMWARE_OFFSET_FILE_CRC 0
251 /* Offset ( in the firmware file's header ) to the real data */
252 #define FIRMWARE_OFFSET_FILE_DATA 8
254 /* Define this if you have adjustable CPU frequency */
255 #define HAVE_ADJUSTABLE_CPU_FREQ
257 #define BOOTFILE_EXT "mrobe500"
258 #define BOOTFILE "rockbox." BOOTFILE_EXT
259 #define BOOTDIR "/.rockbox"
261 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
263 /* Define this if a programmable hotkey is mapped */
264 #define HAVE_HOTKEY