Do some #ifdef'ing to make the Player happy.
[kugel-rb.git] / firmware / export / config-iaudiom5.h
blob30743581f7c4a93457edb622b910d3e8a195b0aa
1 /*
2 * This config file is for iAudio M5
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 17
9 #define MODEL_NAME "iAudio M5"
11 /* define this if you use an ATA controller */
12 #define CONFIG_STORAGE STORAGE_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 #ifdef HAVE_FMRADIO_IN /* FM modded M5 */
20 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
21 #else /* stock M5 */
22 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN)
23 #endif
25 /* define the bitmask of hardware sample rates */
26 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
28 /* define the bitmask of recording sample rates */
29 #define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
31 /* define this if you have a bitmap LCD display */
32 #define HAVE_LCD_BITMAP
34 /* define this if you want album art for this target */
35 #define HAVE_ALBUMART
37 /* define this to enable bitmap scaling */
38 #define HAVE_BMP_SCALING
40 /* define this to enable JPEG decoding */
41 #define HAVE_JPEG
43 /* define this if you can flip your LCD */
44 #define HAVE_LCD_FLIP
46 /* define this if you can invert the colours on your LCD */
47 #define HAVE_LCD_INVERT
49 /* define this if you have access to the quickscreen */
50 #define HAVE_QUICKSCREEN
52 /* define this if you have access to the pitchscreen */
53 #define HAVE_PITCHSCREEN
55 /* define this if you would like tagcache to build on this target */
56 #define HAVE_TAGCACHE
58 /* LCD dimensions */
59 #define LCD_WIDTH 160
60 #define LCD_HEIGHT 128
61 #define LCD_DEPTH 2
63 #define LCD_PIXELFORMAT VERTICAL_PACKING
65 /* Display colours, for screenshots and sim (0xRRGGBB) */
66 #define LCD_DARKCOLOR 0x000000
67 #define LCD_BRIGHTCOLOR 0x648764
68 #define LCD_BL_DARKCOLOR 0x000000
69 #define LCD_BL_BRIGHTCOLOR 0xdfd8ff
71 /* remote LCD */
72 #define LCD_REMOTE_WIDTH 128
73 #define LCD_REMOTE_HEIGHT 96
74 #define LCD_REMOTE_DEPTH 2
76 #define LCD_REMOTE_PIXELFORMAT VERTICAL_INTERLEAVED
78 /* Remote display colours, for screenshots and sim (0xRRGGBB) */
79 #define LCD_REMOTE_DARKCOLOR 0x000000
80 #define LCD_REMOTE_BRIGHTCOLOR 0x5a915a
81 #define LCD_REMOTE_BL_DARKCOLOR 0x000000
82 #define LCD_REMOTE_BL_BRIGHTCOLOR 0x82b4fa
84 #define CONFIG_KEYPAD IAUDIO_X5M5_PAD
86 #define AB_REPEAT_ENABLE 1
87 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
89 /* Define this if you do software codec */
90 #define CONFIG_CODEC SWCODEC
92 /* define this if you have a real-time clock */
93 #define CONFIG_RTC RTC_PCF50606
95 /* Define this if you have an remote lcd */
96 #define HAVE_REMOTE_LCD
98 #define CONFIG_LCD LCD_S1D15E06
100 /* Define this for LCD backlight available */
101 #define HAVE_BACKLIGHT
103 /* define this if you have a disk storage, i.e. something
104 that needs spinups and can cause skips when shaked */
105 #define HAVE_DISK_STORAGE
107 /* Define this if you have a software controlled poweroff */
108 #define HAVE_SW_POWEROFF
110 /* The number of bytes reserved for loadable codecs */
111 #define CODEC_SIZE 0x100000
113 /* The number of bytes reserved for loadable plugins */
114 #define PLUGIN_BUFFER_SIZE 0x80000
116 #ifdef HAVE_FMRADIO_IN /* FM modded M5 */
117 /* FM Tuner */
118 #define CONFIG_TUNER TEA5767
119 #define CONFIG_TUNER_XTAL 32768
120 #endif
122 #define HAVE_TLV320
124 /* TLV320 has no tone controls, so we use the software ones */
125 #define HAVE_SW_TONE_CONTROLS
127 #define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */
128 #define BATTERY_CAPACITY_MIN 950 /* min. capacity selectable */
129 #define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */
130 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
131 #define BATTERY_TYPES_COUNT 1 /* only one type */
133 /* Hardware controlled charging? FIXME */
134 #define CONFIG_CHARGING CHARGING_SIMPLE
136 /* define current usage levels */
137 #define CURRENT_REMOTE 8 /* additional current when remote connected */
139 #ifndef SIMULATOR
141 /* Define this if your LCD can set contrast */
142 #define HAVE_LCD_CONTRAST
144 /* Define this if you have a Motorola SCF5250 */
145 #define CONFIG_CPU MCF5250
147 /* Define this if you want to use coldfire's i2c interface */
148 #define CONFIG_I2C I2C_COLDFIRE
150 /* define this if the hardware can be powered off while charging */
151 #define HAVE_POWEROFF_WHILE_CHARGING
153 /* The size of the flash ROM */
154 #define FLASH_SIZE 0x400000
156 /* Define this to the CPU frequency */
157 #define CPU_FREQ 11289600
159 /* Define this if you have ATA power-off control */
160 #define HAVE_ATA_POWER_OFF
162 /* Virtual LED (icon) */
163 #define CONFIG_LED LED_VIRTUAL
165 /* Offset ( in the firmware file's header ) to the file CRC */
166 #define FIRMWARE_OFFSET_FILE_CRC 0
168 /* Offset ( in the firmware file's header ) to the real data */
169 #define FIRMWARE_OFFSET_FILE_DATA 8
171 /* Define this if you have adjustable CPU frequency */
172 #define HAVE_ADJUSTABLE_CPU_FREQ
174 #define BOOTFILE_EXT "iaudio"
175 #define BOOTFILE "rockbox." BOOTFILE_EXT
176 #define BOOTDIR "/.rockbox"
178 #define BOOTLOADER_ENTRYPOINT 0x001F0000
179 #define FLASH_ENTRYPOINT 0x00001000
180 #define FLASH_MAGIC 0xfbfbfbf1
182 #endif /* SIMULATOR */
184 /** Port-specific settings **/
186 /* Main LCD contrast range and defaults */
187 #define MIN_CONTRAST_SETTING 24
188 #define MAX_CONTRAST_SETTING 63
189 #define DEFAULT_CONTRAST_SETTING 40
191 /* Remote LCD contrast range and defaults */
192 #define MIN_REMOTE_CONTRAST_SETTING 10
193 #define MAX_REMOTE_CONTRAST_SETTING 35
194 #define DEFAULT_REMOTE_CONTRAST_SETTING 24 /* Match boot contrast */
196 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */