Add backdrop functions to the multiscreen api and add a enum backdrop_type parameter...
[kugel-rb.git] / firmware / export / config-mrobe500.h
blob80961c93c108b8ede5945da19aaa317dd50ffc7f
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 to add support for ATA DMA */
39 //#define HAVE_ATA_DMA
41 /* define this if you have a bitmap LCD display */
42 #define HAVE_LCD_BITMAP
44 /* define this if you have a colour LCD */
45 #define HAVE_LCD_COLOR
47 /* define this if you want album art for this target */
48 #define HAVE_ALBUMART
50 /* define this to enable bitmap scaling */
51 #define HAVE_BMP_SCALING
53 /* define this to enable JPEG decoding */
54 #define HAVE_JPEG
56 /* define this if you have access to the quickscreen */
57 #define HAVE_QUICKSCREEN
59 /* define this if you have access to the pitchscreen */
60 #define HAVE_PITCHSCREEN
62 /* define this if you would like tagcache to build on this target */
63 #define HAVE_TAGCACHE
65 /* define this if the target has volume keys which can be used in the lists */
66 #define HAVE_VOLUME_IN_LIST
68 /* LCD dimensions */
69 #define CONFIG_LCD LCD_MROBE500
71 #if 0
72 #define LCD_NATIVE_WIDTH 480
73 #define LCD_NATIVE_HEIGHT 640
74 #else
75 #define LCD_NATIVE_WIDTH 240
76 #define LCD_NATIVE_HEIGHT 320
77 #endif
79 /* choose the lcd orientation. CONFIG_ORIENTATION defined in config.h */
80 #if 0
81 /* This is the Portrait setup */
82 #define LCD_WIDTH LCD_NATIVE_WIDTH
83 #define LCD_HEIGHT LCD_NATIVE_HEIGHT
84 #else
85 /* This is the Landscape setup */
86 #define LCD_WIDTH LCD_NATIVE_HEIGHT
87 #define LCD_HEIGHT LCD_NATIVE_WIDTH
88 #endif
90 #define LCD_DEPTH 16 /* 65k colours */
91 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
93 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
94 should be defined as well. */
95 #define HAVE_LCD_SLEEP
96 #define HAVE_LCD_SLEEP_SETTING
98 /* remote LCD */
99 #define HAVE_REMOTE_LCD
100 #define LCD_REMOTE_WIDTH 79
101 #define LCD_REMOTE_HEIGHT 16
102 #define LCD_REMOTE_DEPTH 1
104 /* Remote display colours, for screenshots and sim (0xRRGGBB) */
105 #define LCD_REMOTE_DARKCOLOR 0x000000
106 #define LCD_REMOTE_BRIGHTCOLOR 0x5a915a
107 #define LCD_REMOTE_BL_DARKCOLOR 0x000000
108 #define LCD_REMOTE_BL_BRIGHTCOLOR 0x82b4fa
110 #define LCD_REMOTE_PIXELFORMAT VERTICAL_PACKING
112 #define CONFIG_REMOTE_KEYPAD MROBE_REMOTE
114 #define MIN_REMOTE_CONTRAST_SETTING 0
115 #define MAX_REMOTE_CONTRAST_SETTING 15
116 #define DEFAULT_REMOTE_CONTRAST_SETTING 7
118 #define CONFIG_KEYPAD MROBE500_PAD
119 #define HAVE_TOUCHSCREEN
120 #define HAVE_BUTTON_DATA
122 /* define this if the target has volume keys which can be used in the lists */
123 #define HAVE_VOLUME_IN_LIST
125 /* Define this if you do software codec */
126 #define CONFIG_CODEC SWCODEC
128 //#define HAVE_HARDWARE_BEEP
130 /* There is no hardware tone control */
131 #define HAVE_SW_TONE_CONTROLS
133 /* define this if you have a real-time clock */
134 #define CONFIG_RTC RTC_RX5X348AB
136 /* define this if you have a disk storage, i.e. something
137 that needs spinups and can cause skips when shaked */
138 #define HAVE_DISK_STORAGE
140 /* Define this for LCD backlight available */
141 #define HAVE_BACKLIGHT
143 #define HAVE_BACKLIGHT_BRIGHTNESS
145 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
147 /* Main LCD backlight brightness range and defaults */
148 #define MIN_BRIGHTNESS_SETTING 0
149 #define MAX_BRIGHTNESS_SETTING 127
150 #define DEFAULT_BRIGHTNESS_SETTING 85 /* OF "full brightness" */
151 #define DEFAULT_DIMNESS_SETTING 22 /* OF "most dim" */
153 /* Define this if you have a software controlled poweroff */
154 #define HAVE_SW_POWEROFF
156 /* The number of bytes reserved for loadable codecs */
157 #define CODEC_SIZE 0x100000
159 /* The number of bytes reserved for loadable plugins */
160 #if LCD_NATIVE_WIDTH < 480
161 #define PLUGIN_BUFFER_SIZE 0x100000
162 #else
163 /* THe larger screen needs larger bitmaps in plugins */
164 #define PLUGIN_BUFFER_SIZE 0x200000
165 #endif
167 #define HW_SAMPR_CAPS SAMPR_CAP_44
169 #define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */
170 #define BATTERY_CAPACITY_MIN 1000 /* min. capacity selectable */
171 #define BATTERY_CAPACITY_MAX 2000 /* max. capacity selectable */
172 #define BATTERY_CAPACITY_INC 100 /* capacity increment */
173 #define BATTERY_TYPES_COUNT 1 /* only one type */
175 /* define current usage levels */
176 #define CURRENT_NORMAL 100 /* Measured */
177 #define CURRENT_BACKLIGHT 100 /* Over 200 mA total measured when on */
178 #define CURRENT_RECORD 0 /* no recording */
180 /* Hardware controlled charging with monitoring */
181 #define CONFIG_CHARGING CHARGING_MONITOR
183 /* Define this if you have a Texas Instruments TSC2100 touch screen */
184 #define HAVE_TSC2100
186 #ifndef SIMULATOR
188 /* M66591 register base */
189 #define M66591_BASE 0x60000000
191 /* enable these for the usb stack */
192 #define CONFIG_USBOTG USBOTG_M66591
193 #define USE_ROCKBOX_USB
194 //#define USB_ENABLE_SERIAL
195 #define HAVE_USBSTACK
196 /* usb stack and driver settings */
197 #define USB_NUM_ENDPOINTS 7
198 #define USB_VENDOR_ID 0x07b4
199 #define USB_PRODUCT_ID 0x0281
201 /* Define this if hardware supports alternate blitting */
202 #define HAVE_LCD_MODES LCD_MODE_RGB565 | LCD_MODE_YUV | LCD_MODE_PAL256
204 #define CONFIG_CPU DM320
206 #define CONFIG_I2C I2C_DM320
208 /* define this if the hardware can be powered off while charging */
209 #define HAVE_POWEROFF_WHILE_CHARGING
211 /* The size of the flash ROM */
212 #define FLASH_SIZE 0x400000
214 /* Define this to the CPU frequency */
215 #define CPU_FREQ 87500000
217 /* Define this if you have ATA power-off control */
218 #define HAVE_ATA_POWER_OFF
220 /* Virtual LED (icon) */
221 #define CONFIG_LED LED_VIRTUAL
223 /* define this if the backlight can be set to a brightness */
224 #define __BACKLIGHT_INIT
226 /* Offset ( in the firmware file's header ) to the file CRC */
227 #define FIRMWARE_OFFSET_FILE_CRC 0
229 /* Offset ( in the firmware file's header ) to the real data */
230 #define FIRMWARE_OFFSET_FILE_DATA 8
232 /* Define this if you have adjustable CPU frequency */
233 #define HAVE_ADJUSTABLE_CPU_FREQ
235 #define BOOTFILE_EXT "mrobe500"
236 #define BOOTFILE "rockbox." BOOTFILE_EXT
237 #define BOOTDIR "/.rockbox"
239 #endif