summaryrefslogtreecommitdiff
path: root/firmware/export/config-iaudiom5.h
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2009-12-07 09:17:48 +0000
committerBjörn Stenberg <bjorn@haxx.se>2009-12-07 09:17:48 +0000
commit36a81eb9b98ac7b1dff0d6658dba0255dd579f5f (patch)
tree81b81008c4cb69c276329ecd50200887c4da4838 /firmware/export/config-iaudiom5.h
parent66fa5b578904f7df61293d6ce5c08966b5db13db (diff)
downloadrockbox-36a81eb9b98ac7b1dff0d6658dba0255dd579f5f.tar.gz
rockbox-36a81eb9b98ac7b1dff0d6658dba0255dd579f5f.zip
Reverted r23881 mistakenly committed to branch.v3.4
git-svn-id: svn://svn.rockbox.org/rockbox/branches/v3_4@23882 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/config-iaudiom5.h')
-rw-r--r--firmware/export/config-iaudiom5.h193
1 files changed, 193 insertions, 0 deletions
diff --git a/firmware/export/config-iaudiom5.h b/firmware/export/config-iaudiom5.h
new file mode 100644
index 0000000000..b10ac9ad09
--- /dev/null
+++ b/firmware/export/config-iaudiom5.h
@@ -0,0 +1,193 @@
1/*
2 * This config file is for iAudio M5
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 17
8
9#define MODEL_NAME "iAudio M5"
10
11/* define this if you use an ATA controller */
12#define CONFIG_STORAGE STORAGE_ATA
13
14/* define this if you have recording possibility */
15#define HAVE_RECORDING
16
17/* Define bitmask of input sources - recordable bitmask can be defined
18 explicitly if different */
19#ifdef HAVE_FMRADIO_IN /* FM modded M5 */
20#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
21#else /* stock M5 */
22#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN)
23#endif
24
25/* define the bitmask of hardware sample rates */
26#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
27
28/* define the bitmask of recording sample rates */
29#define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
30
31/* define this if you have a bitmap LCD display */
32#define HAVE_LCD_BITMAP
33
34/* define this if you want album art for this target */
35#define HAVE_ALBUMART
36
37/* define this to enable bitmap scaling */
38#define HAVE_BMP_SCALING
39
40/* define this to enable JPEG decoding */
41#define HAVE_JPEG
42
43/* define this if you can flip your LCD */
44#define HAVE_LCD_FLIP
45
46/* define this if you can invert the colours on your LCD */
47#define HAVE_LCD_INVERT
48
49/* define this if you have access to the quickscreen */
50#define HAVE_QUICKSCREEN
51
52/* define this if you have access to the pitchscreen */
53#define HAVE_PITCHSCREEN
54
55/* define this if you would like tagcache to build on this target */
56#define HAVE_TAGCACHE
57
58/* LCD dimensions */
59#define LCD_WIDTH 160
60#define LCD_HEIGHT 128
61#define LCD_DEPTH 2
62
63#define LCD_PIXELFORMAT VERTICAL_PACKING
64
65/* Display colours, for screenshots and sim (0xRRGGBB) */
66#define LCD_DARKCOLOR 0x000000
67#define LCD_BRIGHTCOLOR 0x648764
68#define LCD_BL_DARKCOLOR 0x000000
69#define LCD_BL_BRIGHTCOLOR 0xdfd8ff
70
71/* remote LCD */
72#define LCD_REMOTE_WIDTH 128
73#define LCD_REMOTE_HEIGHT 96
74#define LCD_REMOTE_DEPTH 2
75
76#define LCD_REMOTE_PIXELFORMAT VERTICAL_INTERLEAVED
77
78/* Remote display colours, for screenshots and sim (0xRRGGBB) */
79#define LCD_REMOTE_DARKCOLOR 0x000000
80#define LCD_REMOTE_BRIGHTCOLOR 0x5a915a
81#define LCD_REMOTE_BL_DARKCOLOR 0x000000
82#define LCD_REMOTE_BL_BRIGHTCOLOR 0x82b4fa
83
84#define CONFIG_KEYPAD IAUDIO_X5M5_PAD
85
86#define AB_REPEAT_ENABLE 1
87#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
88
89/* Define this if you do software codec */
90#define CONFIG_CODEC SWCODEC
91
92/* define this if you have a real-time clock */
93#define CONFIG_RTC RTC_PCF50606
94
95/* Define this if you have an remote lcd */
96#define HAVE_REMOTE_LCD
97
98#define CONFIG_LCD LCD_S1D15E06
99
100/* Define this for LCD backlight available */
101#define HAVE_BACKLIGHT
102
103/* define this if you have a disk storage, i.e. something
104 that needs spinups and can cause skips when shaked */
105#define HAVE_DISK_STORAGE
106
107/* Define this if you have a software controlled poweroff */
108#define HAVE_SW_POWEROFF
109
110/* The number of bytes reserved for loadable codecs */
111#define CODEC_SIZE 0x100000
112
113/* The number of bytes reserved for loadable plugins */
114#define PLUGIN_BUFFER_SIZE 0x80000
115
116#ifdef HAVE_FMRADIO_IN /* FM modded M5 */
117/* FM Tuner */
118#define CONFIG_TUNER TEA5767
119#define CONFIG_TUNER_XTAL 32768
120#endif
121
122#define HAVE_TLV320
123
124/* TLV320 has no tone controls, so we use the software ones */
125#define HAVE_SW_TONE_CONTROLS
126
127#define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */
128#define BATTERY_CAPACITY_MIN 950 /* min. capacity selectable */
129#define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */
130#define BATTERY_CAPACITY_INC 50 /* capacity increment */
131#define BATTERY_TYPES_COUNT 1 /* only one type */
132
133/* Hardware controlled charging? FIXME */
134#define CONFIG_CHARGING CHARGING_SIMPLE
135
136/* define current usage levels */
137#define CURRENT_REMOTE 8 /* additional current when remote connected */
138
139#ifndef SIMULATOR
140
141/* Define this if your LCD can set contrast */
142#define HAVE_LCD_CONTRAST
143
144/* Define this if you have a Motorola SCF5250 */
145#define CONFIG_CPU MCF5250
146
147/* Define this if you want to use coldfire's i2c interface */
148#define CONFIG_I2C I2C_COLDFIRE
149
150/* define this if the hardware can be powered off while charging */
151#define HAVE_POWEROFF_WHILE_CHARGING
152
153/* The size of the flash ROM */
154#define FLASH_SIZE 0x400000
155
156/* Define this to the CPU frequency */
157#define CPU_FREQ 11289600
158
159/* Define this if you have ATA power-off control */
160#define HAVE_ATA_POWER_OFF
161
162/* Offset ( in the firmware file's header ) to the file CRC */
163#define FIRMWARE_OFFSET_FILE_CRC 0
164
165/* Offset ( in the firmware file's header ) to the real data */
166#define FIRMWARE_OFFSET_FILE_DATA 8
167
168/* Define this if you have adjustable CPU frequency */
169#define HAVE_ADJUSTABLE_CPU_FREQ
170
171#define BOOTFILE_EXT "iaudio"
172#define BOOTFILE "rockbox." BOOTFILE_EXT
173#define BOOTDIR "/.rockbox"
174
175#define BOOTLOADER_ENTRYPOINT 0x001F0000
176#define FLASH_ENTRYPOINT 0x00001000
177#define FLASH_MAGIC 0xfbfbfbf1
178
179#endif /* SIMULATOR */
180
181/** Port-specific settings **/
182
183/* Main LCD contrast range and defaults */
184#define MIN_CONTRAST_SETTING 24
185#define MAX_CONTRAST_SETTING 63
186#define DEFAULT_CONTRAST_SETTING 40
187
188/* Remote LCD contrast range and defaults */
189#define MIN_REMOTE_CONTRAST_SETTING 10
190#define MAX_REMOTE_CONTRAST_SETTING 35
191#define DEFAULT_REMOTE_CONTRAST_SETTING 24 /* Match boot contrast */
192
193#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */