summaryrefslogtreecommitdiff
path: root/firmware/export/config/iaudiom3.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/config/iaudiom3.h')
-rw-r--r--firmware/export/config/iaudiom3.h171
1 files changed, 171 insertions, 0 deletions
diff --git a/firmware/export/config/iaudiom3.h b/firmware/export/config/iaudiom3.h
new file mode 100644
index 0000000000..99c4605be0
--- /dev/null
+++ b/firmware/export/config/iaudiom3.h
@@ -0,0 +1,171 @@
1/*
2 * This config file is for iAudio M3
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 25
8
9#define MODEL_NAME "iAudio M3"
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#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
20
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)
23
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)
26
27/* define this if you have a bitmap LCD display */
28#define HAVE_LCD_BITMAP
29
30/* define this if you want album art for this target */
31#define HAVE_ALBUMART
32
33/* define this to enable bitmap scaling */
34#define HAVE_BMP_SCALING
35
36/* define this to enable JPEG decoding */
37#define HAVE_JPEG
38
39/* define this if you can flip your LCD */
40#define HAVE_LCD_FLIP
41
42/* define this if you can invert the colours on your LCD */
43#define HAVE_LCD_INVERT
44
45/* define this if you have access to the quickscreen */
46#define HAVE_QUICKSCREEN
47
48/* define this if you have access to the pitchscreen */
49#define HAVE_PITCHSCREEN
50
51/* define this if you would like tagcache to build on this target */
52#define HAVE_TAGCACHE
53
54/* LCD dimensions */
55#define LCD_WIDTH 128
56#define LCD_HEIGHT 96
57#define LCD_DEPTH 2
58
59#define LCD_PIXELFORMAT VERTICAL_INTERLEAVED
60
61/* Display colours, for screenshots and sim (0xRRGGBB) */
62#define LCD_DARKCOLOR 0x000000
63#define LCD_BRIGHTCOLOR 0x5a915a
64#define LCD_BL_DARKCOLOR 0x000000
65#define LCD_BL_BRIGHTCOLOR 0x82b4fa
66
67/* define this if only the remote has an LCD */
68#define HAVE_REMOTE_LCD_AS_MAIN
69
70#define CONFIG_KEYPAD IAUDIO_M3_PAD
71
72#define AB_REPEAT_ENABLE 1
73#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
74
75/* Define this if you do software codec */
76#define CONFIG_CODEC SWCODEC
77
78/* define this if you have a real-time clock */
79/* #define CONFIG_RTC FIXME: most probably none */
80
81#define CONFIG_LCD LCD_TL0350A
82
83/* Define this for LCD backlight available */
84#define HAVE_BACKLIGHT
85
86/* define this if you have a disk storage, i.e. something
87 that needs spinups and can cause skips when shaked */
88#define HAVE_DISK_STORAGE
89
90/* Define this if you have a software controlled poweroff */
91#define HAVE_SW_POWEROFF
92
93/* The number of bytes reserved for loadable codecs */
94#define CODEC_SIZE 0x100000
95
96/* The number of bytes reserved for loadable plugins */
97#define PLUGIN_BUFFER_SIZE 0x80000
98
99/* FM Tuner */
100#define CONFIG_TUNER TEA5767
101#define CONFIG_TUNER_XTAL 32768
102
103#define HAVE_TLV320
104
105/* TLV320 has no tone controls, so we use the software ones */
106#define HAVE_SW_TONE_CONTROLS
107
108#define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */
109#define BATTERY_CAPACITY_MIN 950 /* min. capacity selectable */
110#define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */
111#define BATTERY_CAPACITY_INC 50 /* capacity increment */
112#define BATTERY_TYPES_COUNT 1 /* only one type */
113
114/* Hardware controlled charging? FIXME */
115#define CONFIG_CHARGING CHARGING_SIMPLE
116
117/* define current usage levels */
118#define CURRENT_REMOTE 8 /* additional current when remote connected */
119
120/* Define this if your LCD can set contrast */
121#define HAVE_LCD_CONTRAST
122
123/* Define this if you have a Motorola SCF5249 */
124#define CONFIG_CPU MCF5249
125
126/* Define this if you want to use coldfire's i2c interface */
127#define CONFIG_I2C I2C_COLDFIRE
128
129/* define this if the hardware can be powered off while charging */
130#define HAVE_POWEROFF_WHILE_CHARGING
131
132/* The size of the flash ROM */
133#define FLASH_SIZE 0x400000
134
135/* Define this to the CPU frequency */
136#define CPU_FREQ 11289600
137
138/* Define this if you have ATA power-off control */
139#define HAVE_ATA_POWER_OFF
140
141/* FIXME: implement hardware LED handling */
142/* #define CONFIG_LED LED_REAL */
143
144/* Offset ( in the firmware file's header ) to the file CRC */
145#define FIRMWARE_OFFSET_FILE_CRC 0
146
147/* Offset ( in the firmware file's header ) to the real data */
148#define FIRMWARE_OFFSET_FILE_DATA 8
149
150/* Define this if you have adjustable CPU frequency */
151#define HAVE_ADJUSTABLE_CPU_FREQ
152
153#define BOOTFILE_EXT "iaudio"
154#define BOOTFILE "rockbox." BOOTFILE_EXT
155#define BOOTDIR "/.rockbox"
156
157#define BOOTLOADER_ENTRYPOINT 0x001F0000
158#define FLASH_ENTRYPOINT 0x00001000
159#define FLASH_MAGIC 0xfbfbfbf1
160
161/* Define this for FM radio input available */
162#define HAVE_FMRADIO_IN
163
164/** Port-specific settings **/
165
166/* Main LCD contrast range and defaults */
167#define MIN_CONTRAST_SETTING 10
168#define MAX_CONTRAST_SETTING 35
169#define DEFAULT_CONTRAST_SETTING 24
170
171#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */