Minor quickscreen and pitchscreen fixes
[kugel-rb.git] / firmware / export / config-iaudiom5.h
blob26cc9c5da65f29580f62590642882db4357e36b1
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 if you can flip your LCD */
34 #define HAVE_LCD_FLIP
36 /* define this if you can invert the colours on your LCD */
37 #define HAVE_LCD_INVERT
39 /* define this if you have access to the quickscreen */
40 #define HAVE_QUICKSCREEN
42 /* define this if you have access to the pitchscreen */
43 #define HAVE_PITCHSCREEN
45 /* define this if you would like tagcache to build on this target */
46 #define HAVE_TAGCACHE
48 /* LCD dimensions */
49 #define LCD_WIDTH 160
50 #define LCD_HEIGHT 128
51 #define LCD_DEPTH 2
53 #define LCD_PIXELFORMAT VERTICAL_PACKING
55 /* remote LCD */
56 #define LCD_REMOTE_WIDTH 128
57 #define LCD_REMOTE_HEIGHT 96
58 #define LCD_REMOTE_DEPTH 2
60 #define LCD_REMOTE_PIXELFORMAT VERTICAL_INTERLEAVED
62 #define CONFIG_KEYPAD IAUDIO_X5M5_PAD
64 #define AB_REPEAT_ENABLE 1
65 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
67 /* Define this if you do software codec */
68 #define CONFIG_CODEC SWCODEC
70 /* define this if you have a real-time clock */
71 #define CONFIG_RTC RTC_PCF50606
73 /* Define this if you have an remote lcd */
74 #define HAVE_REMOTE_LCD
76 #define CONFIG_LCD LCD_S1D15E06
78 /* Define this for LCD backlight available */
79 #define HAVE_BACKLIGHT
81 /* define this if you have a disk storage, i.e. something
82 that needs spinups and can cause skips when shaked */
83 #define HAVE_DISK_STORAGE
85 /* Define this if you have a software controlled poweroff */
86 #define HAVE_SW_POWEROFF
88 /* The number of bytes reserved for loadable codecs */
89 #define CODEC_SIZE 0x100000
91 /* The number of bytes reserved for loadable plugins */
92 #define PLUGIN_BUFFER_SIZE 0x80000
94 #define HAVE_TLV320
96 /* TLV320 has no tone controls, so we use the software ones */
97 #define HAVE_SW_TONE_CONTROLS
99 #define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */
100 #define BATTERY_CAPACITY_MIN 950 /* min. capacity selectable */
101 #define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */
102 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
103 #define BATTERY_TYPES_COUNT 1 /* only one type */
105 /* Hardware controlled charging? FIXME */
106 #define CONFIG_CHARGING CHARGING_SIMPLE
108 /* define current usage levels */
109 #define CURRENT_REMOTE 8 /* additional current when remote connected */
111 #ifndef SIMULATOR
113 /* Define this if your LCD can set contrast */
114 #define HAVE_LCD_CONTRAST
116 /* Define this if you have a Motorola SCF5250 */
117 #define CONFIG_CPU MCF5250
119 /* Define this if you want to use coldfire's i2c interface */
120 #define CONFIG_I2C I2C_COLDFIRE
122 /* define this if the hardware can be powered off while charging */
123 #define HAVE_POWEROFF_WHILE_CHARGING
125 /* The size of the flash ROM */
126 #define FLASH_SIZE 0x400000
128 /* Define this to the CPU frequency */
129 #define CPU_FREQ 11289600
131 /* Define this if you have ATA power-off control */
132 #define HAVE_ATA_POWER_OFF
134 /* Virtual LED (icon) */
135 #define CONFIG_LED LED_VIRTUAL
137 /* Offset ( in the firmware file's header ) to the file CRC */
138 #define FIRMWARE_OFFSET_FILE_CRC 0
140 /* Offset ( in the firmware file's header ) to the real data */
141 #define FIRMWARE_OFFSET_FILE_DATA 8
143 /* Define this if you have adjustable CPU frequency */
144 #define HAVE_ADJUSTABLE_CPU_FREQ
146 #define BOOTFILE_EXT "iaudio"
147 #define BOOTFILE "rockbox." BOOTFILE_EXT
148 #define BOOTDIR "/.rockbox"
150 #define BOOTLOADER_ENTRYPOINT 0x001F0000
151 #define FLASH_ENTRYPOINT 0x00001000
152 #define FLASH_MAGIC 0xfbfbfbf1
154 #endif /* SIMULATOR */
156 /** Port-specific settings **/
158 /* Main LCD contrast range and defaults */
159 #define MIN_CONTRAST_SETTING 24
160 #define MAX_CONTRAST_SETTING 63
161 #define DEFAULT_CONTRAST_SETTING 40
163 /* Remote LCD contrast range and defaults */
164 #define MIN_REMOTE_CONTRAST_SETTING 10
165 #define MAX_REMOTE_CONTRAST_SETTING 35
166 #define DEFAULT_REMOTE_CONTRAST_SETTING 24 /* Match boot contrast */