Put the display colours for monochrome and greyscale targets into the target config...
[maemo-rb.git] / firmware / export / config-iaudiom3.h
blobe72813c853ee942e0a0776e4a7c7ecdcf2a6f9e6
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 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 | SRC_CAP_FMRADIO)
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 128
50 #define LCD_HEIGHT 96
51 #define LCD_DEPTH 2
53 #define LCD_PIXELFORMAT VERTICAL_INTERLEAVED
55 /* Display colours, for screenshots and sim (0xRRGGBB) */
56 #define LCD_DARKCOLOR 0x000000
57 #define LCD_BRIGHTCOLOR 0x7e917e
58 #define LCD_BL_DARKCOLOR 0x000000
59 #define LCD_BL_BRIGHTCOLOR 0x82b4fa
61 /* define this if only the remote has an LCD */
62 #define HAVE_REMOTE_LCD_AS_MAIN
64 #define CONFIG_KEYPAD IAUDIO_M3_PAD
66 #define AB_REPEAT_ENABLE 1
67 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
69 /* Define this if you do software codec */
70 #define CONFIG_CODEC SWCODEC
72 /* define this if you have a real-time clock */
73 /* #define CONFIG_RTC FIXME: most probably none */
75 #define CONFIG_LCD LCD_TL0350A
77 /* Define this for LCD backlight available */
78 #define HAVE_BACKLIGHT
80 /* define this if you have a disk storage, i.e. something
81 that needs spinups and can cause skips when shaked */
82 #define HAVE_DISK_STORAGE
84 /* Define this if you have a software controlled poweroff */
85 #define HAVE_SW_POWEROFF
87 /* The number of bytes reserved for loadable codecs */
88 #define CODEC_SIZE 0x100000
90 /* The number of bytes reserved for loadable plugins */
91 #define PLUGIN_BUFFER_SIZE 0x80000
93 /* FM Tuner */
94 #define CONFIG_TUNER TEA5767
95 #define CONFIG_TUNER_XTAL 32768
97 #define HAVE_TLV320
99 /* TLV320 has no tone controls, so we use the software ones */
100 #define HAVE_SW_TONE_CONTROLS
102 #define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */
103 #define BATTERY_CAPACITY_MIN 950 /* min. capacity selectable */
104 #define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */
105 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
106 #define BATTERY_TYPES_COUNT 1 /* only one type */
108 /* Hardware controlled charging? FIXME */
109 #define CONFIG_CHARGING CHARGING_SIMPLE
111 /* define current usage levels */
112 #define CURRENT_REMOTE 8 /* additional current when remote connected */
114 #ifndef SIMULATOR
116 /* Define this if your LCD can set contrast */
117 #define HAVE_LCD_CONTRAST
119 /* Define this if you have a Motorola SCF5249 */
120 #define CONFIG_CPU MCF5249
122 /* Define this if you want to use coldfire's i2c interface */
123 #define CONFIG_I2C I2C_COLDFIRE
125 /* define this if the hardware can be powered off while charging */
126 #define HAVE_POWEROFF_WHILE_CHARGING
128 /* The size of the flash ROM */
129 #define FLASH_SIZE 0x400000
131 /* Define this to the CPU frequency */
132 #define CPU_FREQ 11289600
134 /* Define this if you have ATA power-off control */
135 #define HAVE_ATA_POWER_OFF
137 /* Virtual LED (icon) */
138 #define CONFIG_LED LED_VIRTUAL /* FIXME: implement hardware LED handling */
140 /* Offset ( in the firmware file's header ) to the file CRC */
141 #define FIRMWARE_OFFSET_FILE_CRC 0
143 /* Offset ( in the firmware file's header ) to the real data */
144 #define FIRMWARE_OFFSET_FILE_DATA 8
146 /* Define this if you have adjustable CPU frequency */
147 #define HAVE_ADJUSTABLE_CPU_FREQ
149 #define BOOTFILE_EXT "iaudio"
150 #define BOOTFILE "rockbox." BOOTFILE_EXT
151 #define BOOTDIR "/.rockbox"
153 #define BOOTLOADER_ENTRYPOINT 0x001F0000
154 #define FLASH_ENTRYPOINT 0x00001000
155 #define FLASH_MAGIC 0xfbfbfbf1
157 #endif /* SIMULATOR */
159 /* Define this for FM radio input available */
160 #define HAVE_FMRADIO_IN
162 /** Port-specific settings **/
164 /* Main LCD contrast range and defaults */
165 #define MIN_CONTRAST_SETTING 10
166 #define MAX_CONTRAST_SETTING 35
167 #define DEFAULT_CONTRAST_SETTING 24