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.h139
1 files changed, 139 insertions, 0 deletions
diff --git a/firmware/export/config-iaudiom3.h b/firmware/export/config-iaudiom3.h
new file mode 100644
index 0000000000..3556e09d38
--- /dev/null
+++ b/firmware/export/config-iaudiom3.h
@@ -0,0 +1,139 @@
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 this if you have recording possibility */
10#define HAVE_RECORDING
11
12/* Define bitmask of input sources - recordable bitmask can be defined
13 explicitly if different */
14#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN)
15
16/* define the bitmask of hardware sample rates */
17#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
18
19/* define the bitmask of recording sample rates */
20#define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
21
22/* define this if you have a bitmap LCD display */
23#define HAVE_LCD_BITMAP
24
25/* define this if you want album art for this target */
26#define HAVE_ALBUMART
27
28/* define this if you can flip your LCD */
29#define HAVE_LCD_FLIP
30
31/* define this if you can invert the colours on your LCD */
32#define HAVE_LCD_INVERT
33
34/* define this if you have access to the quickscreen */
35#define HAVE_QUICKSCREEN
36
37/* define this if you have access to the pitchscreen */
38#define HAVE_PITCHSCREEN
39
40/* define this if you would like tagcache to build on this target */
41#define HAVE_TAGCACHE
42
43/* LCD dimensions */
44#define LCD_WIDTH 128
45#define LCD_HEIGHT 96
46#define LCD_DEPTH 2
47
48#define LCD_PIXELFORMAT VERTICAL_INTRLEAVED
49
50#define CONFIG_KEYPAD IAUDIO_M3_PAD
51
52#define AB_REPEAT_ENABLE 1
53#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
54
55/* Define this if you do software codec */
56#define CONFIG_CODEC SWCODEC
57
58/* define this if you have a real-time clock */
59/* #define CONFIG_RTC FIXME: most probably none */
60
61#define CONFIG_LCD LCD_TL0350A
62
63/* Define this for LCD backlight available */
64#define HAVE_BACKLIGHT
65
66/* Define this if you have a software controlled poweroff */
67#define HAVE_SW_POWEROFF
68
69/* The number of bytes reserved for loadable codecs */
70#define CODEC_SIZE 0x80000
71
72/* The number of bytes reserved for loadable plugins */
73#define PLUGIN_BUFFER_SIZE 0x80000
74
75#define HAVE_TLV320
76
77/* TLV320 has no tone controls, so we use the software ones */
78#define HAVE_SW_TONE_CONTROLS
79
80#define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */
81#define BATTERY_CAPACITY_MIN 950 /* min. capacity selectable */
82#define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */
83#define BATTERY_CAPACITY_INC 50 /* capacity increment */
84#define BATTERY_TYPES_COUNT 1 /* only one type */
85
86/* Hardware controlled charging? FIXME */
87#define CONFIG_CHARGING CHARGING_SIMPLE
88
89#ifndef SIMULATOR
90
91/* Define this if your LCD can set contrast */
92#define HAVE_LCD_CONTRAST
93
94/* Define this if you have a Motorola SCF5249 */
95#define CONFIG_CPU MCF5249
96
97/* Define this if you want to use coldfire's i2c interface */
98#define CONFIG_I2C I2C_COLDFIRE
99
100/* define this if the hardware can be powered off while charging */
101#define HAVE_POWEROFF_WHILE_CHARGING
102
103/* The size of the flash ROM */
104#define FLASH_SIZE 0x400000
105
106/* Define this to the CPU frequency */
107#define CPU_FREQ 11289600
108
109/* Define this if you have ATA power-off control */
110#define HAVE_ATA_POWER_OFF
111
112/* Virtual LED (icon) */
113#define CONFIG_LED LED_VIRTUAL /* FIXME: implement hardware LED handling */
114
115/* Offset ( in the firmware file's header ) to the file CRC */
116#define FIRMWARE_OFFSET_FILE_CRC 0
117
118/* Offset ( in the firmware file's header ) to the real data */
119#define FIRMWARE_OFFSET_FILE_DATA 8
120
121/* Define this if you have adjustable CPU frequency */
122#define HAVE_ADJUSTABLE_CPU_FREQ
123
124#define BOOTFILE_EXT "iaudio"
125#define BOOTFILE "rockbox." BOOTFILE_EXT
126#define BOOTDIR "/.rockbox"
127
128#define BOOTLOADER_ENTRYPOINT 0x001F0000
129#define FLASH_ENTRYPOINT 0x00001000
130#define FLASH_MAGIC 0xfbfbfbf1
131
132#endif /* SIMULATOR */
133
134/** Port-specific settings **/
135
136/* Main LCD contrast range and defaults */
137#define MIN_CONTRAST_SETTING 10
138#define MAX_CONTRAST_SETTING 35
139#define DEFAULT_CONTRAST_SETTING 24