diff options
author | Marcoen Hirschberg <marcoen@gmail.com> | 2008-09-17 23:22:11 +0000 |
---|---|---|
committer | Marcoen Hirschberg <marcoen@gmail.com> | 2008-09-17 23:22:11 +0000 |
commit | 48e45f57516d24d8cf24f632ecf73fec95e3a785 (patch) | |
tree | 1f3df5f1557070f30dc1195f58524870c0411bf2 /firmware/export/config-meizu-m3.h | |
parent | 9407ae838e7696cd5f55c7a22b7cabb8d403fc17 (diff) | |
download | rockbox-48e45f57516d24d8cf24f632ecf73fec95e3a785.tar.gz rockbox-48e45f57516d24d8cf24f632ecf73fec95e3a785.zip |
add Meizu M6SP and M3 ports
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18544 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/config-meizu-m3.h')
-rw-r--r-- | firmware/export/config-meizu-m3.h | 175 |
1 files changed, 175 insertions, 0 deletions
diff --git a/firmware/export/config-meizu-m3.h b/firmware/export/config-meizu-m3.h new file mode 100644 index 0000000000..7a07339bcb --- /dev/null +++ b/firmware/export/config-meizu-m3.h | |||
@@ -0,0 +1,175 @@ | |||
1 | /* | ||
2 | * This config file is for Meizu 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 1 | ||
8 | |||
9 | #define MODEL_NAME "Meizu M3" | ||
10 | |||
11 | /* define this if you have recording possibility */ | ||
12 | //#define HAVE_RECORDING | ||
13 | |||
14 | /* Define bitmask of input sources - recordable bitmask can be defined | ||
15 | explicitly if different */ | ||
16 | #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO) | ||
17 | |||
18 | /* define the bitmask of hardware sample rates */ | ||
19 | #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11) | ||
20 | |||
21 | /* define the bitmask of recording sample rates */ | ||
22 | #define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11) | ||
23 | |||
24 | /* define this if you have a bitmap LCD display */ | ||
25 | #define HAVE_LCD_BITMAP | ||
26 | |||
27 | /* define this if you can flip your LCD */ | ||
28 | //#define HAVE_LCD_FLIP | ||
29 | |||
30 | /* define this if you have a colour LCD */ | ||
31 | #define HAVE_LCD_COLOR | ||
32 | |||
33 | /* define this if you want album art for this target */ | ||
34 | #define HAVE_ALBUMART | ||
35 | |||
36 | /* define this if you can invert the colours on your LCD */ | ||
37 | //#define HAVE_LCD_INVERT | ||
38 | |||
39 | /* define this if you have access to the quickscreen */ | ||
40 | #define HAVE_QUICKSCREEN | ||
41 | |||
42 | /* define this if you have access to the pitchscreen */ | ||
43 | #define HAVE_PITCHSCREEN | ||
44 | |||
45 | /* define this if you would like tagcache to build on this target */ | ||
46 | #define HAVE_TAGCACHE | ||
47 | |||
48 | /* define this if you have a flash memory storage */ | ||
49 | #define HAVE_FLASH_STORAGE | ||
50 | |||
51 | /* LCD dimensions */ | ||
52 | #define LCD_WIDTH 176 | ||
53 | #define LCD_HEIGHT 132 | ||
54 | #define LCD_DEPTH 16 /* pseudo 262.144 colors */ | ||
55 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ | ||
56 | |||
57 | /* Define this if your LCD can be enabled/disabled */ | ||
58 | //#define HAVE_LCD_ENABLE | ||
59 | |||
60 | /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE | ||
61 | should be defined as well. */ | ||
62 | //#define HAVE_LCD_SLEEP | ||
63 | |||
64 | #define CONFIG_KEYPAD MEIZU_M3_PAD | ||
65 | |||
66 | //#define AB_REPEAT_ENABLE 1 | ||
67 | //#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE | ||
68 | |||
69 | /* Define this if you do software codec */ | ||
70 | #define CONFIG_CODEC SWCODEC | ||
71 | |||
72 | /* define this if you have a real-time clock */ | ||
73 | #define CONFIG_RTC RTC_S5L8700 | ||
74 | //#define CONFIG_RTC RTC_S35390A | ||
75 | |||
76 | #define CONFIG_LCD LCD_MEIZUM6 | ||
77 | |||
78 | /* Define this if you have the WM8975 audio codec */ | ||
79 | #define HAVE_WM8751 //FIXME | ||
80 | |||
81 | /* Define this for LCD backlight available */ | ||
82 | #define HAVE_BACKLIGHT | ||
83 | #define HAVE_BACKLIGHT_BRIGHTNESS | ||
84 | |||
85 | /* Define this if you have a software controlled poweroff */ | ||
86 | #define HAVE_SW_POWEROFF | ||
87 | |||
88 | /* The number of bytes reserved for loadable codecs */ | ||
89 | #define CODEC_SIZE 0x80000 | ||
90 | |||
91 | /* The number of bytes reserved for loadable plugins */ | ||
92 | #define PLUGIN_BUFFER_SIZE 0x80000 | ||
93 | |||
94 | /* FM Tuner */ | ||
95 | #define CONFIG_TUNER TEA5760 | ||
96 | #define CONFIG_TUNER_XTAL 32768 | ||
97 | |||
98 | //#define HAVE_TLV320 | ||
99 | |||
100 | /* TLV320 has no tone controls, so we use the software ones */ | ||
101 | #define HAVE_SW_TONE_CONTROLS | ||
102 | |||
103 | #define BATTERY_CAPACITY_DEFAULT 700 /* default battery capacity */ | ||
104 | #define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */ | ||
105 | #define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */ | ||
106 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
107 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
108 | |||
109 | /* Hardware controlled charging? FIXME */ | ||
110 | #define CONFIG_CHARGING CHARGING_SIMPLE | ||
111 | |||
112 | #ifndef SIMULATOR | ||
113 | |||
114 | /* Define this if your LCD can set contrast */ | ||
115 | //#define HAVE_LCD_CONTRAST | ||
116 | |||
117 | /* Define this if you have a Motorola SCF5250 */ | ||
118 | #define CONFIG_CPU S5L8700 | ||
119 | |||
120 | /* Define this if you want to use coldfire's i2c interface */ | ||
121 | #define CONFIG_I2C I2C_S5L8700 | ||
122 | |||
123 | /* define this if the hardware can be powered off while charging */ | ||
124 | #define HAVE_POWEROFF_WHILE_CHARGING | ||
125 | |||
126 | /* The size of the flash ROM */ | ||
127 | #define FLASH_SIZE 0x400000 | ||
128 | |||
129 | /* Define this to the CPU frequency */ | ||
130 | #define CPU_FREQ 11289600 | ||
131 | |||
132 | /* Define this if you have ATA power-off control */ | ||
133 | //#define HAVE_ATA_POWER_OFF | ||
134 | |||
135 | /* Virtual LED (icon) */ | ||
136 | #define CONFIG_LED LED_VIRTUAL | ||
137 | |||
138 | /* Offset ( in the firmware file's header ) to the file CRC */ | ||
139 | #define FIRMWARE_OFFSET_FILE_CRC 0 | ||
140 | |||
141 | /* Offset ( in the firmware file's header ) to the real data */ | ||
142 | #define FIRMWARE_OFFSET_FILE_DATA 8 | ||
143 | |||
144 | /* USB On-the-go */ | ||
145 | //#define CONFIG_USBOTG USBOTG_M5636 | ||
146 | |||
147 | /* Define this if you have adjustable CPU frequency */ | ||
148 | #define HAVE_ADJUSTABLE_CPU_FREQ | ||
149 | |||
150 | #define BOOTFILE_EXT "meizu" | ||
151 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
152 | #define BOOTDIR "/.rockbox" | ||
153 | |||
154 | #define BOOTLOADER_ENTRYPOINT 0x001F0000 | ||
155 | #define FLASH_ENTRYPOINT 0x00001000 | ||
156 | #define FLASH_MAGIC 0xfbfbfbf1 | ||
157 | |||
158 | #endif /* SIMULATOR */ | ||
159 | |||
160 | /* Define this for FM radio input available */ | ||
161 | #define HAVE_FMRADIO_IN | ||
162 | |||
163 | /** Port-specific settings **/ | ||
164 | |||
165 | /* Main LCD contrast range and defaults */ | ||
166 | #define MIN_CONTRAST_SETTING 1 | ||
167 | #define MAX_CONTRAST_SETTING 30 | ||
168 | #define DEFAULT_CONTRAST_SETTING 19 /* Match boot contrast */ | ||
169 | |||
170 | /* Main LCD backlight brightness range and defaults */ | ||
171 | /* PCF50506 can output 0%-100% duty cycle but D305A expects %15-100%. */ | ||
172 | #define MIN_BRIGHTNESS_SETTING 1 /* 15/16 (93.75%) */ | ||
173 | #define MAX_BRIGHTNESS_SETTING 13 /* 3/16 (18.75%) */ | ||
174 | #define DEFAULT_BRIGHTNESS_SETTING 8 /* 8/16 (50.00%) = x5 boot default */ | ||
175 | |||