diff options
author | Björn Stenberg <bjorn@haxx.se> | 2009-12-07 09:17:48 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2009-12-07 09:17:48 +0000 |
commit | 36a81eb9b98ac7b1dff0d6658dba0255dd579f5f (patch) | |
tree | 81b81008c4cb69c276329ecd50200887c4da4838 /firmware/export/config-mrobe500.h | |
parent | 66fa5b578904f7df61293d6ce5c08966b5db13db (diff) | |
download | rockbox-36a81eb9b98ac7b1dff0d6658dba0255dd579f5f.tar.gz rockbox-36a81eb9b98ac7b1dff0d6658dba0255dd579f5f.zip |
Reverted r23881 mistakenly committed to branch.v3.4
git-svn-id: svn://svn.rockbox.org/rockbox/branches/v3_4@23882 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/config-mrobe500.h')
-rw-r--r-- | firmware/export/config-mrobe500.h | 251 |
1 files changed, 251 insertions, 0 deletions
diff --git a/firmware/export/config-mrobe500.h b/firmware/export/config-mrobe500.h new file mode 100644 index 0000000000..45733a644f --- /dev/null +++ b/firmware/export/config-mrobe500.h | |||
@@ -0,0 +1,251 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2007 by Karl Kurbjun | ||
11 | * | ||
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. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | |||
22 | /* | ||
23 | * This config file is for the M:Robe 500i | ||
24 | */ | ||
25 | #define TARGET_TREE /* this target is using the target tree system */ | ||
26 | |||
27 | #define CONFIG_SDRAM_START 0x00900000 | ||
28 | |||
29 | #define OLYMPUS_MROBE_500 1 | ||
30 | #define MODEL_NAME "Olympus M:Robe 500i" | ||
31 | |||
32 | /* For Rolo and boot loader */ | ||
33 | #define MODEL_NUMBER 22 | ||
34 | |||
35 | /* define this if you use an ATA controller */ | ||
36 | #define CONFIG_STORAGE STORAGE_ATA | ||
37 | |||
38 | /* Define this to add support for ATA DMA */ | ||
39 | //#define HAVE_ATA_DMA | ||
40 | |||
41 | /* define this if you have a bitmap LCD display */ | ||
42 | #define HAVE_LCD_BITMAP | ||
43 | |||
44 | /* define this if you have a colour LCD */ | ||
45 | #define HAVE_LCD_COLOR | ||
46 | |||
47 | /* define this if you want album art for this target */ | ||
48 | #define HAVE_ALBUMART | ||
49 | |||
50 | /* define this to enable bitmap scaling */ | ||
51 | #define HAVE_BMP_SCALING | ||
52 | |||
53 | /* define this to enable JPEG decoding */ | ||
54 | #define HAVE_JPEG | ||
55 | |||
56 | /* define this if you have access to the quickscreen */ | ||
57 | #define HAVE_QUICKSCREEN | ||
58 | |||
59 | /* define this if you have access to the pitchscreen */ | ||
60 | #define HAVE_PITCHSCREEN | ||
61 | |||
62 | /* define this if you would like tagcache to build on this target */ | ||
63 | #define HAVE_TAGCACHE | ||
64 | |||
65 | /* define this if the target has volume keys which can be used in the lists */ | ||
66 | #define HAVE_VOLUME_IN_LIST | ||
67 | |||
68 | /* LCD dimensions */ | ||
69 | #define CONFIG_LCD LCD_MROBE500 | ||
70 | |||
71 | /* These defines are used internal to this header */ | ||
72 | #define _LCD_RES_QVGA 1 | ||
73 | #define _LCD_RES_VGA 2 | ||
74 | #define _LCD_PORTRAIT 1 | ||
75 | #define _LCD_LANDSCAPE 2 | ||
76 | |||
77 | /* Setup the resolution and orientation */ | ||
78 | #define _RESOLUTION _LCD_RES_VGA | ||
79 | #define _ORIENTATION _LCD_LANDSCAPE | ||
80 | |||
81 | #if _RESOLUTION == _LCD_RES_VGA | ||
82 | #define LCD_NATIVE_WIDTH 480 | ||
83 | #define LCD_NATIVE_HEIGHT 640 | ||
84 | #else | ||
85 | #define LCD_NATIVE_WIDTH 240 | ||
86 | #define LCD_NATIVE_HEIGHT 320 | ||
87 | #endif | ||
88 | |||
89 | /* choose the lcd orientation. CONFIG_ORIENTATION defined in config.h */ | ||
90 | #if _ORIENTATION == _LCD_PORTRAIT | ||
91 | /* This is the Portrait setup */ | ||
92 | #define LCD_WIDTH LCD_NATIVE_WIDTH | ||
93 | #define LCD_HEIGHT LCD_NATIVE_HEIGHT | ||
94 | #else | ||
95 | /* This is the Landscape setup */ | ||
96 | #define LCD_WIDTH LCD_NATIVE_HEIGHT | ||
97 | #define LCD_HEIGHT LCD_NATIVE_WIDTH | ||
98 | #endif | ||
99 | |||
100 | #define LCD_DEPTH 16 /* 65k colours */ | ||
101 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ | ||
102 | |||
103 | #define MAX_ICON_HEIGHT 35 | ||
104 | #define MAX_ICON_WIDTH 35 | ||
105 | |||
106 | /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE | ||
107 | should be defined as well. */ | ||
108 | #define HAVE_LCD_SLEEP | ||
109 | #define HAVE_LCD_SLEEP_SETTING | ||
110 | |||
111 | /* remote LCD */ | ||
112 | #define HAVE_REMOTE_LCD | ||
113 | #define LCD_REMOTE_WIDTH 79 | ||
114 | #define LCD_REMOTE_HEIGHT 16 | ||
115 | #define LCD_REMOTE_DEPTH 1 | ||
116 | |||
117 | /* Remote display colours, for screenshots and sim (0xRRGGBB) */ | ||
118 | #define LCD_REMOTE_DARKCOLOR 0x000000 | ||
119 | #define LCD_REMOTE_BRIGHTCOLOR 0x5a915a | ||
120 | #define LCD_REMOTE_BL_DARKCOLOR 0x000000 | ||
121 | #define LCD_REMOTE_BL_BRIGHTCOLOR 0x82b4fa | ||
122 | |||
123 | #define LCD_REMOTE_PIXELFORMAT VERTICAL_PACKING | ||
124 | |||
125 | #define CONFIG_REMOTE_KEYPAD MROBE_REMOTE | ||
126 | |||
127 | #define MIN_REMOTE_CONTRAST_SETTING 0 | ||
128 | #define MAX_REMOTE_CONTRAST_SETTING 15 | ||
129 | #define DEFAULT_REMOTE_CONTRAST_SETTING 7 | ||
130 | |||
131 | #define CONFIG_KEYPAD MROBE500_PAD | ||
132 | #define HAVE_TOUCHSCREEN | ||
133 | #define HAVE_BUTTON_DATA | ||
134 | |||
135 | /* define this if the target has volume keys which can be used in the lists */ | ||
136 | #define HAVE_VOLUME_IN_LIST | ||
137 | |||
138 | /* Define this if you do software codec */ | ||
139 | #define CONFIG_CODEC SWCODEC | ||
140 | |||
141 | //#define HAVE_HARDWARE_BEEP | ||
142 | |||
143 | /* There is no hardware tone control */ | ||
144 | #define HAVE_SW_TONE_CONTROLS | ||
145 | |||
146 | /* define this if you have a real-time clock */ | ||
147 | #define CONFIG_RTC RTC_RX5X348AB | ||
148 | |||
149 | /* define this if you have a disk storage, i.e. something | ||
150 | that needs spinups and can cause skips when shaked */ | ||
151 | #define HAVE_DISK_STORAGE | ||
152 | |||
153 | /* Define this for LCD backlight available */ | ||
154 | #define HAVE_BACKLIGHT | ||
155 | |||
156 | #define HAVE_BACKLIGHT_BRIGHTNESS | ||
157 | |||
158 | #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING | ||
159 | |||
160 | /* Main LCD backlight brightness range and defaults */ | ||
161 | #define MIN_BRIGHTNESS_SETTING 0 | ||
162 | #define MAX_BRIGHTNESS_SETTING 127 | ||
163 | #define DEFAULT_BRIGHTNESS_SETTING 85 /* OF "full brightness" */ | ||
164 | #define DEFAULT_DIMNESS_SETTING 22 /* OF "most dim" */ | ||
165 | |||
166 | /* Define this if you have a software controlled poweroff */ | ||
167 | #define HAVE_SW_POWEROFF | ||
168 | |||
169 | /* The number of bytes reserved for loadable codecs */ | ||
170 | #define CODEC_SIZE 0x100000 | ||
171 | |||
172 | /* The number of bytes reserved for loadable plugins */ | ||
173 | #if LCD_NATIVE_WIDTH < 480 | ||
174 | #define PLUGIN_BUFFER_SIZE 0x100000 | ||
175 | #else | ||
176 | /* THe larger screen needs larger bitmaps in plugins */ | ||
177 | #define PLUGIN_BUFFER_SIZE 0x200000 | ||
178 | #endif | ||
179 | |||
180 | #define HW_SAMPR_CAPS SAMPR_CAP_44 | ||
181 | |||
182 | #define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */ | ||
183 | #define BATTERY_CAPACITY_MIN 1000 /* min. capacity selectable */ | ||
184 | #define BATTERY_CAPACITY_MAX 2000 /* max. capacity selectable */ | ||
185 | #define BATTERY_CAPACITY_INC 100 /* capacity increment */ | ||
186 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
187 | |||
188 | /* define current usage levels */ | ||
189 | #define CURRENT_NORMAL 100 /* Measured */ | ||
190 | #define CURRENT_BACKLIGHT 100 /* Over 200 mA total measured when on */ | ||
191 | #define CURRENT_RECORD 0 /* no recording */ | ||
192 | |||
193 | /* Hardware controlled charging with monitoring */ | ||
194 | #define CONFIG_CHARGING CHARGING_MONITOR | ||
195 | |||
196 | /* Define this if you have a Texas Instruments TSC2100 touch screen */ | ||
197 | #define HAVE_TSC2100 | ||
198 | |||
199 | #if !defined(SIMULATOR) | ||
200 | |||
201 | /* M66591 register base */ | ||
202 | #define M66591_BASE 0x60000000 | ||
203 | |||
204 | /* enable these for the usb stack */ | ||
205 | #define CONFIG_USBOTG USBOTG_M66591 | ||
206 | #define USE_ROCKBOX_USB | ||
207 | //#define USB_ENABLE_SERIAL | ||
208 | #define HAVE_USBSTACK | ||
209 | /* usb stack and driver settings */ | ||
210 | #define USB_NUM_ENDPOINTS 7 | ||
211 | #define USB_VENDOR_ID 0x07b4 | ||
212 | #define USB_PRODUCT_ID 0x0281 | ||
213 | |||
214 | /* Define this if hardware supports alternate blitting */ | ||
215 | #define HAVE_LCD_MODES LCD_MODE_RGB565 | LCD_MODE_YUV | LCD_MODE_PAL256 | ||
216 | |||
217 | #define CONFIG_CPU DM320 | ||
218 | |||
219 | #define CONFIG_I2C I2C_DM320 | ||
220 | |||
221 | /* define this if the hardware can be powered off while charging */ | ||
222 | #define HAVE_POWEROFF_WHILE_CHARGING | ||
223 | |||
224 | /* The size of the flash ROM */ | ||
225 | #define FLASH_SIZE 0x400000 | ||
226 | |||
227 | /* Define this to the CPU frequency */ | ||
228 | #define CPU_FREQ 87500000 | ||
229 | |||
230 | /* Define this if you have ATA power-off control */ | ||
231 | #define HAVE_ATA_POWER_OFF | ||
232 | |||
233 | /* define this if the backlight can be set to a brightness */ | ||
234 | #define __BACKLIGHT_INIT | ||
235 | |||
236 | /* Offset ( in the firmware file's header ) to the file CRC */ | ||
237 | #define FIRMWARE_OFFSET_FILE_CRC 0 | ||
238 | |||
239 | /* Offset ( in the firmware file's header ) to the real data */ | ||
240 | #define FIRMWARE_OFFSET_FILE_DATA 8 | ||
241 | |||
242 | /* Define this if you have adjustable CPU frequency */ | ||
243 | #define HAVE_ADJUSTABLE_CPU_FREQ | ||
244 | |||
245 | #define BOOTFILE_EXT "mrobe500" | ||
246 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
247 | #define BOOTDIR "/.rockbox" | ||
248 | |||
249 | #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */ | ||
250 | |||
251 | #endif | ||