add HAVE_DISK_STORAGE, and use that instead of HAVE_FLASH_STORAGE when checking for...
[kugel-rb.git] / firmware / export / config-iaudiox5.h
blobbe2100629588fd21cc38a75a7062938490c536ac
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 HAVE_ATA
14 /* define this if you have recording possibility */
15 #define HAVE_RECORDING
17 /* Define bitmask of input sources - recordable bitmask can be defined
18 explicitly if different */
19 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
21 /* define the bitmask of hardware sample rates */
22 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
24 /* define the bitmask of recording sample rates */
25 #define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
27 /* define this if you have a bitmap LCD display */
28 #define HAVE_LCD_BITMAP
30 /* define this if you can flip your LCD */
31 #define HAVE_LCD_FLIP
33 /* define this if you have a colour LCD */
34 #define HAVE_LCD_COLOR
36 /* define this if you want album art for this target */
37 #define HAVE_ALBUMART
39 /* define this if you can invert the colours on your LCD */
40 #define HAVE_LCD_INVERT
42 /* define this if you have access to the quickscreen */
43 #define HAVE_QUICKSCREEN
45 /* define this if you have access to the pitchscreen */
46 #define HAVE_PITCHSCREEN
48 /* define this if you would like tagcache to build on this target */
49 #define HAVE_TAGCACHE
51 /* LCD dimensions */
52 #define LCD_WIDTH 160
53 #define LCD_HEIGHT 128
54 #define LCD_DEPTH 16 /* pseudo 262.144 colors */
55 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
57 /* remote LCD */
58 #define LCD_REMOTE_WIDTH 128
59 #define LCD_REMOTE_HEIGHT 96
60 #define LCD_REMOTE_DEPTH 2
62 #define LCD_REMOTE_PIXELFORMAT VERTICAL_INTERLEAVED
64 #ifndef BOOTLOADER
65 /* Define this if your LCD can be enabled/disabled */
66 #define HAVE_LCD_ENABLE
68 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
69 should be defined as well. */
70 #define HAVE_LCD_SLEEP
71 #define HAVE_LCD_SLEEP_SETTING
72 #endif
74 #define CONFIG_KEYPAD IAUDIO_X5M5_PAD
76 #define AB_REPEAT_ENABLE 1
77 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
79 /* Define this if you do software codec */
80 #define CONFIG_CODEC SWCODEC
82 /* define this if you have a real-time clock */
83 #define CONFIG_RTC RTC_PCF50606
85 /* Define this if you have an remote lcd */
86 #define HAVE_REMOTE_LCD
88 #define CONFIG_LCD LCD_X5
90 /* Define this for LCD backlight available */
91 #define HAVE_BACKLIGHT
92 #define HAVE_BACKLIGHT_BRIGHTNESS
94 /* define this if you have a disk storage, i.e. something
95 that needs spinups and can cause skips when shaked */
96 #define HAVE_DISK_STORAGE
98 /* Define this if you have a software controlled poweroff */
99 #define HAVE_SW_POWEROFF
101 /* The number of bytes reserved for loadable codecs */
102 #define CODEC_SIZE 0x80000
104 /* The number of bytes reserved for loadable plugins */
105 #define PLUGIN_BUFFER_SIZE 0x80000
107 /* FM Tuner */
108 #define CONFIG_TUNER TEA5767
109 #define CONFIG_TUNER_XTAL 32768
111 #define HAVE_TLV320
113 /* TLV320 has no tone controls, so we use the software ones */
114 #define HAVE_SW_TONE_CONTROLS
116 #define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */
117 #define BATTERY_CAPACITY_MIN 950 /* min. capacity selectable */
118 #define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */
119 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
120 #define BATTERY_TYPES_COUNT 1 /* only one type */
122 /* Hardware controlled charging? FIXME */
123 #define CONFIG_CHARGING CHARGING_SIMPLE
125 #ifndef SIMULATOR
127 /* Define this if your LCD can set contrast */
128 #define HAVE_LCD_CONTRAST
130 /* Define this if you have a Motorola SCF5250 */
131 #define CONFIG_CPU MCF5250
133 /* Define this if you want to use coldfire's i2c interface */
134 #define CONFIG_I2C I2C_COLDFIRE
136 /* define this if the hardware can be powered off while charging */
137 #define HAVE_POWEROFF_WHILE_CHARGING
139 /* The size of the flash ROM */
140 #define FLASH_SIZE 0x400000
142 /* Define this to the CPU frequency */
143 #define CPU_FREQ 11289600
145 /* Define this if you have ATA power-off control */
146 #define HAVE_ATA_POWER_OFF
148 /* Virtual LED (icon) */
149 #define CONFIG_LED LED_VIRTUAL
151 /* Offset ( in the firmware file's header ) to the file CRC */
152 #define FIRMWARE_OFFSET_FILE_CRC 0
154 /* Offset ( in the firmware file's header ) to the real data */
155 #define FIRMWARE_OFFSET_FILE_DATA 8
157 /* USB On-the-go */
158 #define CONFIG_USBOTG USBOTG_M5636
160 /* Define this if you have adjustable CPU frequency */
161 #define HAVE_ADJUSTABLE_CPU_FREQ
163 #define BOOTFILE_EXT "iaudio"
164 #define BOOTFILE "rockbox." BOOTFILE_EXT
165 #define BOOTDIR "/.rockbox"
167 #define BOOTLOADER_ENTRYPOINT 0x001F0000
168 #define FLASH_ENTRYPOINT 0x00001000
169 #define FLASH_MAGIC 0xfbfbfbf1
171 #endif /* SIMULATOR */
173 /* Define this for FM radio input available */
174 #define HAVE_FMRADIO_IN
176 /** Port-specific settings **/
178 /* Main LCD contrast range and defaults */
179 #define MIN_CONTRAST_SETTING 1
180 #define MAX_CONTRAST_SETTING 30
181 #define DEFAULT_CONTRAST_SETTING 19 /* Match boot contrast */
183 /* Main LCD backlight brightness range and defaults */
184 /* PCF50506 can output 0%-100% duty cycle but D305A expects %15-100%. */
185 #define MIN_BRIGHTNESS_SETTING 1 /* 15/16 (93.75%) */
186 #define MAX_BRIGHTNESS_SETTING 13 /* 3/16 (18.75%) */
187 #define DEFAULT_BRIGHTNESS_SETTING 8 /* 8/16 (50.00%) = x5 boot default */
189 /* Remote LCD contrast range and defaults */
190 #define MIN_REMOTE_CONTRAST_SETTING 10
191 #define MAX_REMOTE_CONTRAST_SETTING 35
192 #define DEFAULT_REMOTE_CONTRAST_SETTING 24 /* Match boot contrast */