as3514: mute headphones at the lowest volume
[kugel-rb.git] / firmware / export / config / iaudiom3.h
blob08d8c3947541f8b04563f0eeba750a62dc3fc574
1 /*
2 * This config file is for iAudio M3
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 25
9 #define MODEL_NAME "iAudio M3"
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 want album art for this target */
34 #define HAVE_ALBUMART
36 /* define this to enable bitmap scaling */
37 #define HAVE_BMP_SCALING
39 /* define this to enable JPEG decoding */
40 #define HAVE_JPEG
42 /* define this if you can flip your LCD */
43 #define HAVE_LCD_FLIP
45 /* define this if you can invert the colours on your LCD */
46 #define HAVE_LCD_INVERT
48 /* define this if you have access to the quickscreen */
49 #define HAVE_QUICKSCREEN
51 /* define this if you have access to the pitchscreen */
52 #define HAVE_PITCHSCREEN
54 /* define this if you would like tagcache to build on this target */
55 #define HAVE_TAGCACHE
57 /* LCD dimensions */
58 #define LCD_WIDTH 128
59 #define LCD_HEIGHT 96
60 #define LCD_DEPTH 2
62 #define LCD_PIXELFORMAT VERTICAL_INTERLEAVED
64 /* Display colours, for screenshots and sim (0xRRGGBB) */
65 #define LCD_DARKCOLOR 0x000000
66 #define LCD_BRIGHTCOLOR 0x5a915a
67 #define LCD_BL_DARKCOLOR 0x000000
68 #define LCD_BL_BRIGHTCOLOR 0x82b4fa
70 /* define this if only the remote has an LCD */
71 #define HAVE_REMOTE_LCD_AS_MAIN
73 #define CONFIG_KEYPAD IAUDIO_M3_PAD
75 #define AB_REPEAT_ENABLE 1
76 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
78 /* Define this if you do software codec */
79 #define CONFIG_CODEC SWCODEC
81 /* define this if you have a real-time clock */
82 /* #define CONFIG_RTC FIXME: most probably none */
84 #define CONFIG_LCD LCD_TL0350A
86 /* Define this for LCD backlight available */
87 #define HAVE_BACKLIGHT
89 /* define this if you have a disk storage, i.e. something
90 that needs spinups and can cause skips when shaked */
91 #define HAVE_DISK_STORAGE
93 /* Define this if you have a software controlled poweroff */
94 #define HAVE_SW_POWEROFF
96 /* The number of bytes reserved for loadable codecs */
97 #define CODEC_SIZE 0x100000
99 /* The number of bytes reserved for loadable plugins */
100 #define PLUGIN_BUFFER_SIZE 0x80000
102 /* FM Tuner */
103 #define CONFIG_TUNER TEA5767
104 #define CONFIG_TUNER_XTAL 32768
106 #define HAVE_TLV320
108 /* TLV320 has no tone controls, so we use the software ones */
109 #define HAVE_SW_TONE_CONTROLS
111 #define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */
112 #define BATTERY_CAPACITY_MIN 950 /* min. capacity selectable */
113 #define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */
114 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
115 #define BATTERY_TYPES_COUNT 1 /* only one type */
117 /* Hardware controlled charging? FIXME */
118 #define CONFIG_CHARGING CHARGING_SIMPLE
120 /* define current usage levels */
121 #define CURRENT_REMOTE 8 /* additional current when remote connected */
123 /* Define this if your LCD can set contrast */
124 #define HAVE_LCD_CONTRAST
126 /* Define this if you have a Motorola SCF5249 */
127 #define CONFIG_CPU MCF5249
129 /* Define this if you want to use coldfire's i2c interface */
130 #define CONFIG_I2C I2C_COLDFIRE
132 /* define this if the hardware can be powered off while charging */
133 #define HAVE_POWEROFF_WHILE_CHARGING
135 /* The size of the flash ROM */
136 #define FLASH_SIZE 0x400000
138 /* Define this to the CPU frequency */
139 #define CPU_FREQ 11289600
141 /* Define this if you have ATA power-off control */
142 #define HAVE_ATA_POWER_OFF
144 /* FIXME: implement hardware LED handling */
145 /* #define CONFIG_LED LED_REAL */
147 /* Offset ( in the firmware file's header ) to the file CRC */
148 #define FIRMWARE_OFFSET_FILE_CRC 0
150 /* Offset ( in the firmware file's header ) to the real data */
151 #define FIRMWARE_OFFSET_FILE_DATA 8
153 /* Define this if you have adjustable CPU frequency */
154 #define HAVE_ADJUSTABLE_CPU_FREQ
156 #define BOOTFILE_EXT "iaudio"
157 #define BOOTFILE "rockbox." BOOTFILE_EXT
158 #define BOOTDIR "/.rockbox"
160 #define BOOTLOADER_ENTRYPOINT 0x001F0000
161 #define FLASH_ENTRYPOINT 0x00001000
162 #define FLASH_MAGIC 0xfbfbfbf1
164 /* Define this for FM radio input available */
165 #define HAVE_FMRADIO_IN
167 /** Port-specific settings **/
169 /* Main LCD contrast range and defaults */
170 #define MIN_CONTRAST_SETTING 10
171 #define MAX_CONTRAST_SETTING 35
172 #define DEFAULT_CONTRAST_SETTING 24
174 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
176 /* Define this if a programmable hotkey is mapped */
177 #define HAVE_HOTKEY