summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-03-10 00:56:50 +0000
committerJens Arnold <amiconn@rockbox.org>2008-03-10 00:56:50 +0000
commit0035c91d54727074f3621a1b3b03bf3eff76b1c1 (patch)
tree275a12aee5bc70414c47f1b63cfbd8ba25175005
parentcdec67c9aec9b8a1f49c3ee569e3d13b579018fb (diff)
downloadrockbox-0035c91d54727074f3621a1b3b03bf3eff76b1c1.tar.gz
rockbox-0035c91d54727074f3621a1b3b03bf3eff76b1c1.zip
Add M3 config file.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16601 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/export/config-iaudiom3.h139
-rw-r--r--firmware/export/config.h4
2 files changed, 143 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
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 208dd36d57..12a6b1cacd 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -78,6 +78,7 @@
78#define LOGIK_DAX_PAD 20 78#define LOGIK_DAX_PAD 20
79#define IAUDIO67_PAD 21 79#define IAUDIO67_PAD 21
80#define COWOND2_PAD 22 80#define COWOND2_PAD 22
81#define IAUDIO_M3_PAD 23
81 82
82/* CONFIG_REMOTE_KEYPAD */ 83/* CONFIG_REMOTE_KEYPAD */
83#define H100_REMOTE 1 84#define H100_REMOTE 1
@@ -115,6 +116,7 @@
115#define LCD_IAUDIO67 21 /* as used by iAudio 6/7 - unknown */ 116#define LCD_IAUDIO67 21 /* as used by iAudio 6/7 - unknown */
116#define LCD_COWOND2 21 /* as used by Cowon D2 - LTV250QV, TCC7801 driver */ 117#define LCD_COWOND2 21 /* as used by Cowon D2 - LTV250QV, TCC7801 driver */
117#define LCD_CREATIVEZVM 22 /* as used by Creative Zen Vision:M */ 118#define LCD_CREATIVEZVM 22 /* as used by Creative Zen Vision:M */
119#define LCD_TL0350A 23 /* as used by the iAudio M3 remote, treated as main LCD */
118 120
119/* LCD_PIXELFORMAT */ 121/* LCD_PIXELFORMAT */
120#define HORIZONTAL_PACKING 1 122#define HORIZONTAL_PACKING 1
@@ -198,6 +200,8 @@
198#include "config-iaudiox5.h" 200#include "config-iaudiox5.h"
199#elif defined(IAUDIO_M5) 201#elif defined(IAUDIO_M5)
200#include "config-iaudiom5.h" 202#include "config-iaudiom5.h"
203#elif defined(IAUDIO_M3)
204#include "config-iaudiom3.h"
201#elif defined(IPOD_COLOR) 205#elif defined(IPOD_COLOR)
202#include "config-ipodcolor.h" 206#include "config-ipodcolor.h"
203#elif defined(IPOD_NANO) 207#elif defined(IPOD_NANO)