summaryrefslogtreecommitdiff
path: root/firmware/export/config/iaudiom5.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/config/iaudiom5.h')
-rw-r--r--firmware/export/config/iaudiom5.h192
1 files changed, 192 insertions, 0 deletions
diff --git a/firmware/export/config/iaudiom5.h b/firmware/export/config/iaudiom5.h
new file mode 100644
index 0000000000..03add43dbf
--- /dev/null
+++ b/firmware/export/config/iaudiom5.h
@@ -0,0 +1,192 @@
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 this to enable morse code input */
87#define HAVE_MORSE_INPUT
88
89#define AB_REPEAT_ENABLE 1
90#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
91
92/* Define this if you do software codec */
93#define CONFIG_CODEC SWCODEC
94
95/* define this if you have a real-time clock */
96#define CONFIG_RTC RTC_PCF50606
97
98/* Define this if you have an remote lcd */
99#define HAVE_REMOTE_LCD
100
101#define CONFIG_LCD LCD_S1D15E06
102
103/* Define this for LCD backlight available */
104#define HAVE_BACKLIGHT
105
106/* define this if you have a disk storage, i.e. something
107 that needs spinups and can cause skips when shaked */
108#define HAVE_DISK_STORAGE
109
110/* Define this if you have a software controlled poweroff */
111#define HAVE_SW_POWEROFF
112
113/* The number of bytes reserved for loadable codecs */
114#define CODEC_SIZE 0x100000
115
116/* The number of bytes reserved for loadable plugins */
117#define PLUGIN_BUFFER_SIZE 0x80000
118
119#ifdef HAVE_FMRADIO_IN /* FM modded M5 */
120/* FM Tuner */
121#define CONFIG_TUNER TEA5767
122#define CONFIG_TUNER_XTAL 32768
123#endif
124
125#define HAVE_TLV320
126
127/* TLV320 has no tone controls, so we use the software ones */
128#define HAVE_SW_TONE_CONTROLS
129
130#define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */
131#define BATTERY_CAPACITY_MIN 950 /* min. capacity selectable */
132#define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */
133#define BATTERY_CAPACITY_INC 50 /* capacity increment */
134#define BATTERY_TYPES_COUNT 1 /* only one type */
135
136/* Hardware controlled charging? FIXME */
137#define CONFIG_CHARGING CHARGING_SIMPLE
138
139/* define current usage levels */
140#define CURRENT_REMOTE 8 /* additional current when remote connected */
141
142/* Define this if your LCD can set contrast */
143#define HAVE_LCD_CONTRAST
144
145/* Define this if you have a Motorola SCF5250 */
146#define CONFIG_CPU MCF5250
147
148/* Define this if you want to use coldfire's i2c interface */
149#define CONFIG_I2C I2C_COLDFIRE
150
151/* define this if the hardware can be powered off while charging */
152#define HAVE_POWEROFF_WHILE_CHARGING
153
154/* The size of the flash ROM */
155#define FLASH_SIZE 0x400000
156
157/* Define this to the CPU frequency */
158#define CPU_FREQ 11289600
159
160/* Define this if you have ATA power-off control */
161#define HAVE_ATA_POWER_OFF
162
163/* Offset ( in the firmware file's header ) to the file CRC */
164#define FIRMWARE_OFFSET_FILE_CRC 0
165
166/* Offset ( in the firmware file's header ) to the real data */
167#define FIRMWARE_OFFSET_FILE_DATA 8
168
169/* Define this if you have adjustable CPU frequency */
170#define HAVE_ADJUSTABLE_CPU_FREQ
171
172#define BOOTFILE_EXT "iaudio"
173#define BOOTFILE "rockbox." BOOTFILE_EXT
174#define BOOTDIR "/.rockbox"
175
176#define BOOTLOADER_ENTRYPOINT 0x001F0000
177#define FLASH_ENTRYPOINT 0x00001000
178#define FLASH_MAGIC 0xfbfbfbf1
179
180/** Port-specific settings **/
181
182/* Main LCD contrast range and defaults */
183#define MIN_CONTRAST_SETTING 24
184#define MAX_CONTRAST_SETTING 63
185#define DEFAULT_CONTRAST_SETTING 40
186
187/* Remote LCD contrast range and defaults */
188#define MIN_REMOTE_CONTRAST_SETTING 10
189#define MAX_REMOTE_CONTRAST_SETTING 35
190#define DEFAULT_REMOTE_CONTRAST_SETTING 24 /* Match boot contrast */
191
192#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */