fuzev2: prevent button light flickering when accessing µSD
[kugel-rb.git] / firmware / export / config / iaudiox5.h
blobea7dfbc87e18766778374101d06aa9f1d3ed0b8c
1 /*
2 * This config file is for iAudio X5
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 10
9 #define MODEL_NAME "iAudio X5"
11 /* define this if you use an ATA controller */
12 #define CONFIG_STORAGE STORAGE_ATA
14 /*define this if the ATA controller and method of USB access support LBA48 */
15 #define HAVE_LBA48
17 /* define this if you have recording possibility */
18 #define HAVE_RECORDING
20 /* Define bitmask of input sources - recordable bitmask can be defined
21 explicitly if different */
22 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
24 /* define the bitmask of hardware sample rates */
25 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
27 /* define the bitmask of recording sample rates */
28 #define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
30 /* define this if you have a bitmap LCD display */
31 #define HAVE_LCD_BITMAP
33 /* define this if you can flip your LCD */
34 #define HAVE_LCD_FLIP
36 /* define this if you have a colour LCD */
37 #define HAVE_LCD_COLOR
39 /* define this if you want album art for this target */
40 #define HAVE_ALBUMART
42 /* define this to enable bitmap scaling */
43 #define HAVE_BMP_SCALING
45 /* define this to enable JPEG decoding */
46 #define HAVE_JPEG
48 /* define this if you can invert the colours on your LCD */
49 #define HAVE_LCD_INVERT
51 /* define this if you have access to the quickscreen */
52 #define HAVE_QUICKSCREEN
54 /* define this if you have access to the pitchscreen */
55 #define HAVE_PITCHSCREEN
57 /* define this if you would like tagcache to build on this target */
58 #define HAVE_TAGCACHE
60 /* LCD dimensions */
61 #define LCD_WIDTH 160
62 #define LCD_HEIGHT 128
63 #define LCD_DEPTH 16 /* pseudo 262.144 colors */
64 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
66 /* remote LCD */
67 #define LCD_REMOTE_WIDTH 128
68 #define LCD_REMOTE_HEIGHT 96
69 #define LCD_REMOTE_DEPTH 2
71 #define LCD_REMOTE_PIXELFORMAT VERTICAL_INTERLEAVED
73 /* Remote display colours, for screenshots and sim (0xRRGGBB) */
74 #define LCD_REMOTE_DARKCOLOR 0x000000
75 #define LCD_REMOTE_BRIGHTCOLOR 0x5a915a
76 #define LCD_REMOTE_BL_DARKCOLOR 0x000000
77 #define LCD_REMOTE_BL_BRIGHTCOLOR 0x82b4fa
79 #ifndef BOOTLOADER
80 /* Define this if your LCD can be enabled/disabled */
81 #define HAVE_LCD_ENABLE
83 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
84 should be defined as well. */
85 #define HAVE_LCD_SLEEP
86 #define HAVE_LCD_SLEEP_SETTING
87 #endif
89 #define CONFIG_KEYPAD IAUDIO_X5M5_PAD
91 /* Define this to enable morse code input */
92 #define HAVE_MORSE_INPUT
94 #define AB_REPEAT_ENABLE 1
95 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
97 /* Define this if you do software codec */
98 #define CONFIG_CODEC SWCODEC
100 /* define this if you have a real-time clock */
101 #define CONFIG_RTC RTC_PCF50606
103 /* Define this if you have an remote lcd */
104 #define HAVE_REMOTE_LCD
106 #define CONFIG_LCD LCD_X5
108 /* Define this for LCD backlight available */
109 #define HAVE_BACKLIGHT
110 #define HAVE_BACKLIGHT_BRIGHTNESS
111 /* Which backlight fading type? */
112 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_HW_REG
114 /* define this if you have a disk storage, i.e. something
115 that needs spinups and can cause skips when shaked */
116 #define HAVE_DISK_STORAGE
118 /* Define this if you have a software controlled poweroff */
119 #define HAVE_SW_POWEROFF
121 /* The number of bytes reserved for loadable codecs */
122 #define CODEC_SIZE 0x100000
124 /* The number of bytes reserved for loadable plugins */
125 #define PLUGIN_BUFFER_SIZE 0x80000
127 /* FM Tuner */
128 #define CONFIG_TUNER TEA5767
129 #define CONFIG_TUNER_XTAL 32768
131 #define HAVE_TLV320
133 /* TLV320 has no tone controls, so we use the software ones */
134 #define HAVE_SW_TONE_CONTROLS
136 #define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */
137 #define BATTERY_CAPACITY_MIN 950 /* min. capacity selectable */
138 #define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */
139 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
140 #define BATTERY_TYPES_COUNT 1 /* only one type */
142 /* Hardware controlled charging? FIXME */
143 #define CONFIG_CHARGING CHARGING_SIMPLE
145 /* define current usage levels */
146 #define CURRENT_NORMAL 65 /*2250mah/35h = 65 ma*/
147 #define CURRENT_BACKLIGHT 25
148 #define CURRENT_REMOTE 8 /* additional current when remote connected */
150 /* Define this if your LCD can set contrast */
151 #define HAVE_LCD_CONTRAST
153 /* Define this if you have a Motorola SCF5250 */
154 #define CONFIG_CPU MCF5250
156 /* Define this if you want to use coldfire's i2c interface */
157 #define CONFIG_I2C I2C_COLDFIRE
159 /* define this if the hardware can be powered off while charging */
160 #define HAVE_POWEROFF_WHILE_CHARGING
162 /* The size of the flash ROM */
163 #define FLASH_SIZE 0x400000
165 /* Define this to the CPU frequency */
166 #define CPU_FREQ 11289600
168 /* Define this if you have ATA power-off control */
169 #define HAVE_ATA_POWER_OFF
171 /* Offset ( in the firmware file's header ) to the file CRC */
172 #define FIRMWARE_OFFSET_FILE_CRC 0
174 /* Offset ( in the firmware file's header ) to the real data */
175 #define FIRMWARE_OFFSET_FILE_DATA 8
177 /* USB On-the-go */
178 #define CONFIG_USBOTG USBOTG_M5636
180 /* Define this if you have adjustable CPU frequency */
181 #define HAVE_ADJUSTABLE_CPU_FREQ
183 #define BOOTFILE_EXT "iaudio"
184 #define BOOTFILE "rockbox." BOOTFILE_EXT
185 #define BOOTDIR "/.rockbox"
187 #define BOOTLOADER_ENTRYPOINT 0x001F0000
188 #define FLASH_ENTRYPOINT 0x00001000
189 #define FLASH_MAGIC 0xfbfbfbf1
191 /* Define this for FM radio input available */
192 #define HAVE_FMRADIO_IN
194 /** Port-specific settings **/
196 /* Main LCD contrast range and defaults */
197 #define MIN_CONTRAST_SETTING 1
198 #define MAX_CONTRAST_SETTING 30
199 #define DEFAULT_CONTRAST_SETTING 19 /* Match boot contrast */
201 /* Main LCD backlight brightness range and defaults */
202 /* PCF50506 can output 0%-100% duty cycle but D305A expects %15-100%. */
203 #define MIN_BRIGHTNESS_SETTING 1 /* 15/16 (93.75%) */
204 #define MAX_BRIGHTNESS_SETTING 13 /* 3/16 (18.75%) */
205 #define DEFAULT_BRIGHTNESS_SETTING 8 /* 8/16 (50.00%) = x5 boot default */
207 /* Remote LCD contrast range and defaults */
208 #define MIN_REMOTE_CONTRAST_SETTING 10
209 #define MAX_REMOTE_CONTRAST_SETTING 35
210 #define DEFAULT_REMOTE_CONTRAST_SETTING 24 /* Match boot contrast */
212 /* Define this if a programmable hotkey is mapped */
213 //#define HAVE_HOTKEY