Remove the calls to backlight_lcd_sleep_countdown from target specific code and move...
[kugel-rb.git] / firmware / export / config-iaudiom5.h
blobd186895b451408466ee88db2ae217eb294cc8c51
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 /* Display colours, for screenshots and sim (0xRRGGBB) */
56 #define LCD_DARKCOLOR 0x000000
57 #define LCD_BRIGHTCOLOR 0x648764
58 #define LCD_BL_DARKCOLOR 0x000000
59 #define LCD_BL_BRIGHTCOLOR 0xdfd8ff
61 /* remote LCD */
62 #define LCD_REMOTE_WIDTH 128
63 #define LCD_REMOTE_HEIGHT 96
64 #define LCD_REMOTE_DEPTH 2
66 #define LCD_REMOTE_PIXELFORMAT VERTICAL_INTERLEAVED
68 /* Remote display colours, for screenshots and sim (0xRRGGBB) */
69 #define LCD_REMOTE_DARKCOLOR 0x000000
70 #define LCD_REMOTE_BRIGHTCOLOR 0x5a915a
71 #define LCD_REMOTE_BL_DARKCOLOR 0x000000
72 #define LCD_REMOTE_BL_BRIGHTCOLOR 0x82b4fa
74 #define CONFIG_KEYPAD IAUDIO_X5M5_PAD
76 #define AB_REPEAT_ENABLE 1
77 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
79 /* Define this if you do software codec */
80 #define CONFIG_CODEC SWCODEC
82 /* define this if you have a real-time clock */
83 #define CONFIG_RTC RTC_PCF50606
85 /* Define this if you have an remote lcd */
86 #define HAVE_REMOTE_LCD
88 #define CONFIG_LCD LCD_S1D15E06
90 /* Define this for LCD backlight available */
91 #define HAVE_BACKLIGHT
93 /* define this if you have a disk storage, i.e. something
94 that needs spinups and can cause skips when shaked */
95 #define HAVE_DISK_STORAGE
97 /* Define this if you have a software controlled poweroff */
98 #define HAVE_SW_POWEROFF
100 /* The number of bytes reserved for loadable codecs */
101 #define CODEC_SIZE 0x100000
103 /* The number of bytes reserved for loadable plugins */
104 #define PLUGIN_BUFFER_SIZE 0x80000
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 #ifndef SIMULATOR
125 /* Define this if your LCD can set contrast */
126 #define HAVE_LCD_CONTRAST
128 /* Define this if you have a Motorola SCF5250 */
129 #define CONFIG_CPU MCF5250
131 /* Define this if you want to use coldfire's i2c interface */
132 #define CONFIG_I2C I2C_COLDFIRE
134 /* define this if the hardware can be powered off while charging */
135 #define HAVE_POWEROFF_WHILE_CHARGING
137 /* The size of the flash ROM */
138 #define FLASH_SIZE 0x400000
140 /* Define this to the CPU frequency */
141 #define CPU_FREQ 11289600
143 /* Define this if you have ATA power-off control */
144 #define HAVE_ATA_POWER_OFF
146 /* Virtual LED (icon) */
147 #define CONFIG_LED LED_VIRTUAL
149 /* Offset ( in the firmware file's header ) to the file CRC */
150 #define FIRMWARE_OFFSET_FILE_CRC 0
152 /* Offset ( in the firmware file's header ) to the real data */
153 #define FIRMWARE_OFFSET_FILE_DATA 8
155 /* Define this if you have adjustable CPU frequency */
156 #define HAVE_ADJUSTABLE_CPU_FREQ
158 #define BOOTFILE_EXT "iaudio"
159 #define BOOTFILE "rockbox." BOOTFILE_EXT
160 #define BOOTDIR "/.rockbox"
162 #define BOOTLOADER_ENTRYPOINT 0x001F0000
163 #define FLASH_ENTRYPOINT 0x00001000
164 #define FLASH_MAGIC 0xfbfbfbf1
166 #endif /* SIMULATOR */
168 /** Port-specific settings **/
170 /* Main LCD contrast range and defaults */
171 #define MIN_CONTRAST_SETTING 24
172 #define MAX_CONTRAST_SETTING 63
173 #define DEFAULT_CONTRAST_SETTING 40
175 /* Remote LCD contrast range and defaults */
176 #define MIN_REMOTE_CONTRAST_SETTING 10
177 #define MAX_REMOTE_CONTRAST_SETTING 35
178 #define DEFAULT_REMOTE_CONTRAST_SETTING 24 /* Match boot contrast */