Use different read and write buffer sizes. Due to interaction between common transfer...
[kugel-rb.git] / firmware / export / config-iaudiom5.h
blob0df8414fe9e38760ecf626a03c8e972ac7aca709
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 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN)
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 want album art for this target */
31 #define HAVE_ALBUMART
33 /* define this to enable bitmap scaling */
34 #define HAVE_BMP_SCALING
36 /* define this to enable JPEG decoding */
37 #define HAVE_JPEG
39 /* define this if you can flip your LCD */
40 #define HAVE_LCD_FLIP
42 /* define this if you can invert the colours on your LCD */
43 #define HAVE_LCD_INVERT
45 /* define this if you have access to the quickscreen */
46 #define HAVE_QUICKSCREEN
48 /* define this if you have access to the pitchscreen */
49 #define HAVE_PITCHSCREEN
51 /* define this if you would like tagcache to build on this target */
52 #define HAVE_TAGCACHE
54 /* LCD dimensions */
55 #define LCD_WIDTH 160
56 #define LCD_HEIGHT 128
57 #define LCD_DEPTH 2
59 #define LCD_PIXELFORMAT VERTICAL_PACKING
61 /* Display colours, for screenshots and sim (0xRRGGBB) */
62 #define LCD_DARKCOLOR 0x000000
63 #define LCD_BRIGHTCOLOR 0x648764
64 #define LCD_BL_DARKCOLOR 0x000000
65 #define LCD_BL_BRIGHTCOLOR 0xdfd8ff
67 /* remote LCD */
68 #define LCD_REMOTE_WIDTH 128
69 #define LCD_REMOTE_HEIGHT 96
70 #define LCD_REMOTE_DEPTH 2
72 #define LCD_REMOTE_PIXELFORMAT VERTICAL_INTERLEAVED
74 /* Remote display colours, for screenshots and sim (0xRRGGBB) */
75 #define LCD_REMOTE_DARKCOLOR 0x000000
76 #define LCD_REMOTE_BRIGHTCOLOR 0x5a915a
77 #define LCD_REMOTE_BL_DARKCOLOR 0x000000
78 #define LCD_REMOTE_BL_BRIGHTCOLOR 0x82b4fa
80 #define CONFIG_KEYPAD IAUDIO_X5M5_PAD
82 #define AB_REPEAT_ENABLE 1
83 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
85 /* Define this if you do software codec */
86 #define CONFIG_CODEC SWCODEC
88 /* define this if you have a real-time clock */
89 #define CONFIG_RTC RTC_PCF50606
91 /* Define this if you have an remote lcd */
92 #define HAVE_REMOTE_LCD
94 #define CONFIG_LCD LCD_S1D15E06
96 /* Define this for LCD backlight available */
97 #define HAVE_BACKLIGHT
99 /* define this if you have a disk storage, i.e. something
100 that needs spinups and can cause skips when shaked */
101 #define HAVE_DISK_STORAGE
103 /* Define this if you have a software controlled poweroff */
104 #define HAVE_SW_POWEROFF
106 /* The number of bytes reserved for loadable codecs */
107 #define CODEC_SIZE 0x100000
109 /* The number of bytes reserved for loadable plugins */
110 #define PLUGIN_BUFFER_SIZE 0x80000
112 #define HAVE_TLV320
114 /* TLV320 has no tone controls, so we use the software ones */
115 #define HAVE_SW_TONE_CONTROLS
117 #define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */
118 #define BATTERY_CAPACITY_MIN 950 /* min. capacity selectable */
119 #define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */
120 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
121 #define BATTERY_TYPES_COUNT 1 /* only one type */
123 /* Hardware controlled charging? FIXME */
124 #define CONFIG_CHARGING CHARGING_SIMPLE
126 /* define current usage levels */
127 #define CURRENT_REMOTE 8 /* additional current when remote connected */
129 #ifndef SIMULATOR
131 /* Define this if your LCD can set contrast */
132 #define HAVE_LCD_CONTRAST
134 /* Define this if you have a Motorola SCF5250 */
135 #define CONFIG_CPU MCF5250
137 /* Define this if you want to use coldfire's i2c interface */
138 #define CONFIG_I2C I2C_COLDFIRE
140 /* define this if the hardware can be powered off while charging */
141 #define HAVE_POWEROFF_WHILE_CHARGING
143 /* The size of the flash ROM */
144 #define FLASH_SIZE 0x400000
146 /* Define this to the CPU frequency */
147 #define CPU_FREQ 11289600
149 /* Define this if you have ATA power-off control */
150 #define HAVE_ATA_POWER_OFF
152 /* Virtual LED (icon) */
153 #define CONFIG_LED LED_VIRTUAL
155 /* Offset ( in the firmware file's header ) to the file CRC */
156 #define FIRMWARE_OFFSET_FILE_CRC 0
158 /* Offset ( in the firmware file's header ) to the real data */
159 #define FIRMWARE_OFFSET_FILE_DATA 8
161 /* Define this if you have adjustable CPU frequency */
162 #define HAVE_ADJUSTABLE_CPU_FREQ
164 #define BOOTFILE_EXT "iaudio"
165 #define BOOTFILE "rockbox." BOOTFILE_EXT
166 #define BOOTDIR "/.rockbox"
168 #define BOOTLOADER_ENTRYPOINT 0x001F0000
169 #define FLASH_ENTRYPOINT 0x00001000
170 #define FLASH_MAGIC 0xfbfbfbf1
172 #endif /* SIMULATOR */
174 /** Port-specific settings **/
176 /* Main LCD contrast range and defaults */
177 #define MIN_CONTRAST_SETTING 24
178 #define MAX_CONTRAST_SETTING 63
179 #define DEFAULT_CONTRAST_SETTING 40
181 /* Remote LCD contrast range and defaults */
182 #define MIN_REMOTE_CONTRAST_SETTING 10
183 #define MAX_REMOTE_CONTRAST_SETTING 35
184 #define DEFAULT_REMOTE_CONTRAST_SETTING 24 /* Match boot contrast */