summaryrefslogtreecommitdiff
path: root/firmware/export/config/xduoox3.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/config/xduoox3.h')
-rw-r--r--firmware/export/config/xduoox3.h195
1 files changed, 195 insertions, 0 deletions
diff --git a/firmware/export/config/xduoox3.h b/firmware/export/config/xduoox3.h
new file mode 100644
index 0000000000..3262917d2c
--- /dev/null
+++ b/firmware/export/config/xduoox3.h
@@ -0,0 +1,195 @@
1/*
2 * This config file is for xDuoo X3
3 */
4
5#define MODEL_NAME "xDuoo X3"
6#define MODEL_NUMBER 106
7
8/* Offset ( in the firmware file's header ) to the file CRC */
9#define FIRMWARE_OFFSET_FILE_CRC 0
10
11/* Offset ( in the firmware file's header ) to the real data */
12#define FIRMWARE_OFFSET_FILE_DATA 8
13
14/* Support FAT16 for SD cards <= 2GB */
15#define HAVE_FAT16SUPPORT
16
17/* ChinaChip NAND FTL */
18#define CONFIG_NAND NAND_CC
19
20/* define this if you have a bitmap LCD display */
21#define HAVE_LCD_BITMAP
22
23/* define this if you have access to the quickscreen */
24#define HAVE_QUICKSCREEN
25
26/* define this if you would like tagcache to build on this target */
27#define HAVE_TAGCACHE
28
29/* define this if the target has volume keys which can be used in the lists */
30#define HAVE_VOLUME_IN_LIST
31
32/* LCD dimensions */
33#define LCD_WIDTH 128
34#define LCD_HEIGHT 64
35/* sqrt(128^2 + 64^2) / 1.0 = 143.1 */
36#define LCD_DPI 143
37#define LCD_DEPTH 1
38
39#define LCD_PIXELFORMAT VERTICAL_PACKING
40#define HAVE_NEGATIVE_LCD /* bright on dark */
41
42/* Display colours, for screenshots and sim (0xRRGGBB) */
43#define LCD_DARKCOLOR 0x000000
44#define LCD_BRIGHTCOLOR 0x000000
45#define LCD_BL_DARKCOLOR 0x000000
46#define LCD_BL_BRIGHTCOLOR 0x0de2e5
47
48/* define this if you have LCD enable function */
49#define HAVE_LCD_ENABLE
50
51#ifndef BOOTLOADER
52/* Define this if your LCD can be put to sleep.
53 * HAVE_LCD_ENABLE should be defined as well. */
54#define HAVE_LCD_SLEEP
55#define HAVE_LCD_SLEEP_SETTING
56#endif
57
58/* define this if you can flip your LCD */
59#define HAVE_LCD_FLIP
60
61/* define this if you can invert the pixels */
62#define HAVE_LCD_INVERT
63
64/* Define this for LCD backlight available */
65#define HAVE_BACKLIGHT
66#define HAVE_BACKLIGHT_BRIGHTNESS
67
68/* Which backlight fading type? */
69#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
70
71#define IRAM_LCDFRAMEBUFFER IDATA_ATTR /* put the lcd frame buffer in IRAM */
72
73/* Define this if you can detect headphones */
74#define HAVE_HEADPHONE_DETECTION
75
76#define CONFIG_KEYPAD XDUOO_X3_PAD
77
78/* Define this if a programmable hotkey is mapped */
79#define HAVE_HOTKEY
80
81/* Define this if you do software codec */
82#define CONFIG_CODEC SWCODEC
83
84/* Define this for LCD backlight available */
85#define HAVE_BACKLIGHT
86
87#ifndef BOOTLOADER
88/* define this if you have a real-time clock */
89#define CONFIG_RTC RTC_JZ4760
90#endif
91
92/* Define this if you have a software controlled poweroff */
93#define HAVE_SW_POWEROFF
94
95/* The number of bytes reserved for loadable codecs */
96#define CODEC_SIZE 0x100000
97
98/* The number of bytes reserved for loadable plugins */
99#define PLUGIN_BUFFER_SIZE 0x100000
100
101#define HAVE_CS4398
102#define CODEC_SLAVE
103
104/* has no tone controls, so we use the software ones */
105#define HAVE_SW_TONE_CONTROLS
106
107/* define the bitmask of hardware sample rates */
108#define HW_SAMPR_CAPS SAMPR_CAP_ALL
109
110#define AB_REPEAT_ENABLE
111
112#define BATTERY_CAPACITY_DEFAULT 2000 /* default battery capacity */
113#define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
114#define BATTERY_CAPACITY_MAX 2000 /* max. capacity selectable */
115#define BATTERY_CAPACITY_INC 100 /* capacity increment */
116#define BATTERY_TYPES_COUNT 1 /* only one type */
117
118#define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
119
120/* Hardware controlled charging with monitoring */
121#define CONFIG_CHARGING CHARGING_MONITOR
122
123/* There is only USB charging */
124#define HAVE_USB_POWER
125
126#define CFG_EXTAL 12000000 /* EXT clock: 12 Mhz */
127
128/* define this if the flash memory uses the SecureDigital Memory Card protocol */
129#define CONFIG_STORAGE (STORAGE_SD /* | STORAGE_NAND */)
130
131#define HAVE_MULTIDRIVE
132#define NUM_DRIVES 2
133
134/* Define this if media can be exchanged on the fly */
135#ifndef BOOTLOADER
136#define HAVE_HOTSWAP
137#define HAVE_HOTSWAP_STORAGE_AS_MAIN
138#endif
139
140/* define this if you have a flash memory storage */
141#define HAVE_FLASH_STORAGE
142
143/** Non-simulator section **/
144#ifndef SIMULATOR
145
146/* Define this if you have a Ingenic JZ4760B */
147#define CONFIG_CPU JZ4760B
148
149/* Define this to the CPU frequency */
150#define CPU_FREQ 492000000 /* CPU clock: 492 MHz */
151
152/* Define this if you want to use the JZ47XX i2c interface */
153#define CONFIG_I2C I2C_JZ47XX
154
155#define NEED_ADC_CLOSE 1
156
157/* define this if the hardware can be powered off while charging */
158/* #define HAVE_POWEROFF_WHILE_CHARGING */
159
160/* Type of LCD */
161#define CONFIG_LCD LCD_XDUOOX3
162
163/* USB On-the-go */
164#define CONFIG_USBOTG USBOTG_JZ4760
165
166/* enable these for the experimental usb stack */
167#define HAVE_USBSTACK
168
169/* Connect by events, not by tick polling */
170#define USB_STATUS_BY_EVENT
171
172#define USB_VENDOR_ID 0x0525
173#define USB_PRODUCT_ID 0xA4A5
174
175#define USB_NUM_ENDPOINTS 3
176#define USB_DEVBSS_ATTR IBSS_ATTR
177
178#define BOOTFILE_EXT "x3"
179#define BOOTFILE "rockbox." BOOTFILE_EXT
180#define BOOTDIR "/.rockbox"
181
182#define INCLUDE_TIMEOUT_API
183
184#define ICODE_ATTR_TREMOR_NOT_MDCT
185
186#endif /* SIMULATOR */
187
188/** Port-specific settings **/
189
190#define CONFIG_SDRAM_START 0x80004000
191
192/* Main LCD backlight brightness range and defaults */
193#define MIN_BRIGHTNESS_SETTING 1
194#define MAX_BRIGHTNESS_SETTING 16
195#define DEFAULT_BRIGHTNESS_SETTING 16 /* "full brightness" */