Manual updates
[kugel-rb.git] / firmware / export / config-iaudiom5.h
blob03add43dbfeb774f65df4276fbdce30141e0aef0
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 this to enable morse code input */
87 #define HAVE_MORSE_INPUT
89 #define AB_REPEAT_ENABLE 1
90 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
92 /* Define this if you do software codec */
93 #define CONFIG_CODEC SWCODEC
95 /* define this if you have a real-time clock */
96 #define CONFIG_RTC RTC_PCF50606
98 /* Define this if you have an remote lcd */
99 #define HAVE_REMOTE_LCD
101 #define CONFIG_LCD LCD_S1D15E06
103 /* Define this for LCD backlight available */
104 #define HAVE_BACKLIGHT
106 /* define this if you have a disk storage, i.e. something
107 that needs spinups and can cause skips when shaked */
108 #define HAVE_DISK_STORAGE
110 /* Define this if you have a software controlled poweroff */
111 #define HAVE_SW_POWEROFF
113 /* The number of bytes reserved for loadable codecs */
114 #define CODEC_SIZE 0x100000
116 /* The number of bytes reserved for loadable plugins */
117 #define PLUGIN_BUFFER_SIZE 0x80000
119 #ifdef HAVE_FMRADIO_IN /* FM modded M5 */
120 /* FM Tuner */
121 #define CONFIG_TUNER TEA5767
122 #define CONFIG_TUNER_XTAL 32768
123 #endif
125 #define HAVE_TLV320
127 /* TLV320 has no tone controls, so we use the software ones */
128 #define HAVE_SW_TONE_CONTROLS
130 #define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */
131 #define BATTERY_CAPACITY_MIN 950 /* min. capacity selectable */
132 #define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */
133 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
134 #define BATTERY_TYPES_COUNT 1 /* only one type */
136 /* Hardware controlled charging? FIXME */
137 #define CONFIG_CHARGING CHARGING_SIMPLE
139 /* define current usage levels */
140 #define CURRENT_REMOTE 8 /* additional current when remote connected */
142 /* Define this if your LCD can set contrast */
143 #define HAVE_LCD_CONTRAST
145 /* Define this if you have a Motorola SCF5250 */
146 #define CONFIG_CPU MCF5250
148 /* Define this if you want to use coldfire's i2c interface */
149 #define CONFIG_I2C I2C_COLDFIRE
151 /* define this if the hardware can be powered off while charging */
152 #define HAVE_POWEROFF_WHILE_CHARGING
154 /* The size of the flash ROM */
155 #define FLASH_SIZE 0x400000
157 /* Define this to the CPU frequency */
158 #define CPU_FREQ 11289600
160 /* Define this if you have ATA power-off control */
161 #define HAVE_ATA_POWER_OFF
163 /* Offset ( in the firmware file's header ) to the file CRC */
164 #define FIRMWARE_OFFSET_FILE_CRC 0
166 /* Offset ( in the firmware file's header ) to the real data */
167 #define FIRMWARE_OFFSET_FILE_DATA 8
169 /* Define this if you have adjustable CPU frequency */
170 #define HAVE_ADJUSTABLE_CPU_FREQ
172 #define BOOTFILE_EXT "iaudio"
173 #define BOOTFILE "rockbox." BOOTFILE_EXT
174 #define BOOTDIR "/.rockbox"
176 #define BOOTLOADER_ENTRYPOINT 0x001F0000
177 #define FLASH_ENTRYPOINT 0x00001000
178 #define FLASH_MAGIC 0xfbfbfbf1
180 /** Port-specific settings **/
182 /* Main LCD contrast range and defaults */
183 #define MIN_CONTRAST_SETTING 24
184 #define MAX_CONTRAST_SETTING 63
185 #define DEFAULT_CONTRAST_SETTING 40
187 /* Remote LCD contrast range and defaults */
188 #define MIN_REMOTE_CONTRAST_SETTING 10
189 #define MAX_REMOTE_CONTRAST_SETTING 35
190 #define DEFAULT_REMOTE_CONTRAST_SETTING 24 /* Match boot contrast */
192 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */