as3514: mute headphones at the lowest volume
[kugel-rb.git] / firmware / export / config / iaudiom5.h
blobf3ccbc06223e580d5f273f53400e91451bfb569c
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 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 #ifdef HAVE_FMRADIO_IN /* FM modded M5 */
23 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
24 #else /* stock M5 */
25 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN)
26 #endif
28 /* define the bitmask of hardware sample rates */
29 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
31 /* define the bitmask of recording sample rates */
32 #define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
34 /* define this if you have a bitmap LCD display */
35 #define HAVE_LCD_BITMAP
37 /* define this if you want album art for this target */
38 #define HAVE_ALBUMART
40 /* define this to enable bitmap scaling */
41 #define HAVE_BMP_SCALING
43 /* define this to enable JPEG decoding */
44 #define HAVE_JPEG
46 /* define this if you can flip your LCD */
47 #define HAVE_LCD_FLIP
49 /* define this if you can invert the colours on your LCD */
50 #define HAVE_LCD_INVERT
52 /* define this if you have access to the quickscreen */
53 #define HAVE_QUICKSCREEN
55 /* define this if you have access to the pitchscreen */
56 #define HAVE_PITCHSCREEN
58 /* define this if you would like tagcache to build on this target */
59 #define HAVE_TAGCACHE
61 /* LCD dimensions */
62 #define LCD_WIDTH 160
63 #define LCD_HEIGHT 128
64 #define LCD_DEPTH 2
66 #define LCD_PIXELFORMAT VERTICAL_PACKING
68 /* Display colours, for screenshots and sim (0xRRGGBB) */
69 #define LCD_DARKCOLOR 0x000000
70 #define LCD_BRIGHTCOLOR 0x648764
71 #define LCD_BL_DARKCOLOR 0x000000
72 #define LCD_BL_BRIGHTCOLOR 0xdfd8ff
74 /* remote LCD */
75 #define LCD_REMOTE_WIDTH 128
76 #define LCD_REMOTE_HEIGHT 96
77 #define LCD_REMOTE_DEPTH 2
79 #define LCD_REMOTE_PIXELFORMAT VERTICAL_INTERLEAVED
81 /* Remote display colours, for screenshots and sim (0xRRGGBB) */
82 #define LCD_REMOTE_DARKCOLOR 0x000000
83 #define LCD_REMOTE_BRIGHTCOLOR 0x5a915a
84 #define LCD_REMOTE_BL_DARKCOLOR 0x000000
85 #define LCD_REMOTE_BL_BRIGHTCOLOR 0x82b4fa
87 #define CONFIG_KEYPAD IAUDIO_X5M5_PAD
89 /* Define this to enable morse code input */
90 #define HAVE_MORSE_INPUT
92 #define AB_REPEAT_ENABLE 1
93 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
95 /* Define this if you do software codec */
96 #define CONFIG_CODEC SWCODEC
98 /* define this if you have a real-time clock */
99 #define CONFIG_RTC RTC_PCF50606
101 /* Define this if you have an remote lcd */
102 #define HAVE_REMOTE_LCD
104 #define CONFIG_LCD LCD_S1D15E06
106 /* Define this for LCD backlight available */
107 #define HAVE_BACKLIGHT
109 /* define this if you have a disk storage, i.e. something
110 that needs spinups and can cause skips when shaked */
111 #define HAVE_DISK_STORAGE
113 /* Define this if you have a software controlled poweroff */
114 #define HAVE_SW_POWEROFF
116 /* The number of bytes reserved for loadable codecs */
117 #define CODEC_SIZE 0x100000
119 /* The number of bytes reserved for loadable plugins */
120 #define PLUGIN_BUFFER_SIZE 0x80000
122 #ifdef HAVE_FMRADIO_IN /* FM modded M5 */
123 /* FM Tuner */
124 #define CONFIG_TUNER TEA5767
125 #define CONFIG_TUNER_XTAL 32768
126 #endif
128 #define HAVE_TLV320
130 /* TLV320 has no tone controls, so we use the software ones */
131 #define HAVE_SW_TONE_CONTROLS
133 #define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */
134 #define BATTERY_CAPACITY_MIN 950 /* min. capacity selectable */
135 #define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */
136 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
137 #define BATTERY_TYPES_COUNT 1 /* only one type */
139 /* Hardware controlled charging? FIXME */
140 #define CONFIG_CHARGING CHARGING_SIMPLE
142 /* define current usage levels */
143 #define CURRENT_REMOTE 8 /* additional current when remote connected */
145 /* Define this if your LCD can set contrast */
146 #define HAVE_LCD_CONTRAST
148 /* Define this if you have a Motorola SCF5250 */
149 #define CONFIG_CPU MCF5250
151 /* Define this if you want to use coldfire's i2c interface */
152 #define CONFIG_I2C I2C_COLDFIRE
154 /* define this if the hardware can be powered off while charging */
155 #define HAVE_POWEROFF_WHILE_CHARGING
157 /* The size of the flash ROM */
158 #define FLASH_SIZE 0x400000
160 /* Define this to the CPU frequency */
161 #define CPU_FREQ 11289600
163 /* Define this if you have ATA power-off control */
164 #define HAVE_ATA_POWER_OFF
166 /* Offset ( in the firmware file's header ) to the file CRC */
167 #define FIRMWARE_OFFSET_FILE_CRC 0
169 /* Offset ( in the firmware file's header ) to the real data */
170 #define FIRMWARE_OFFSET_FILE_DATA 8
172 /* Define this if you have adjustable CPU frequency */
173 #define HAVE_ADJUSTABLE_CPU_FREQ
175 #define BOOTFILE_EXT "iaudio"
176 #define BOOTFILE "rockbox." BOOTFILE_EXT
177 #define BOOTDIR "/.rockbox"
179 #define BOOTLOADER_ENTRYPOINT 0x001F0000
180 #define FLASH_ENTRYPOINT 0x00001000
181 #define FLASH_MAGIC 0xfbfbfbf1
183 /** Port-specific settings **/
185 /* Main LCD contrast range and defaults */
186 #define MIN_CONTRAST_SETTING 24
187 #define MAX_CONTRAST_SETTING 63
188 #define DEFAULT_CONTRAST_SETTING 40
190 /* Remote LCD contrast range and defaults */
191 #define MIN_REMOTE_CONTRAST_SETTING 10
192 #define MAX_REMOTE_CONTRAST_SETTING 35
193 #define DEFAULT_REMOTE_CONTRAST_SETTING 24 /* Match boot contrast */
195 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
197 /* Define this if a programmable hotkey is mapped */
198 //#define HAVE_HOTKEY