blob: 14f9369567c6b0c47f3eb3d37e612f2b50a7c4d5 [file] [log] [blame]
Solomon Peachy06627932018-06-28 06:24:26 -04001/*
2 * This config file is for xDuoo X3
3 */
4
5#define MODEL_NAME "xDuoo X3"
Solomon Peachybad461a2019-07-29 16:45:35 -04006#define MODEL_NUMBER 96
Solomon Peachy06627932018-06-28 06:24:26 -04007
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
Solomon Peachyd24edc62019-01-03 20:46:54 -050076/* Define this if you can detect lineout */
77#define HAVE_LINEOUT_DETECTION
78
Solomon Peachy06627932018-06-28 06:24:26 -040079#define CONFIG_KEYPAD XDUOO_X3_PAD
80
81/* Define this if a programmable hotkey is mapped */
82#define HAVE_HOTKEY
83
84/* Define this if you do software codec */
85#define CONFIG_CODEC SWCODEC
86
Solomon Peachy06627932018-06-28 06:24:26 -040087#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
Solomon Peachy3671f922018-08-29 10:12:32 -0400132#define CONFIG_STORAGE_MULTI
Solomon Peachy06627932018-06-28 06:24:26 -0400133#define NUM_DRIVES 2
134
135/* Define this if media can be exchanged on the fly */
136#ifndef BOOTLOADER
137#define HAVE_HOTSWAP
138#define HAVE_HOTSWAP_STORAGE_AS_MAIN
139#endif
140
141/* define this if you have a flash memory storage */
142#define HAVE_FLASH_STORAGE
143
144/** Non-simulator section **/
145#ifndef SIMULATOR
146
147/* Define this if you have a Ingenic JZ4760B */
148#define CONFIG_CPU JZ4760B
149
150/* Define this to the CPU frequency */
151#define CPU_FREQ 492000000 /* CPU clock: 492 MHz */
152
153/* Define this if you want to use the JZ47XX i2c interface */
154#define CONFIG_I2C I2C_JZ47XX
155
156#define NEED_ADC_CLOSE 1
157
158/* define this if the hardware can be powered off while charging */
159/* #define HAVE_POWEROFF_WHILE_CHARGING */
160
161/* Type of LCD */
162#define CONFIG_LCD LCD_XDUOOX3
163
164/* USB On-the-go */
165#define CONFIG_USBOTG USBOTG_JZ4760
166
167/* enable these for the experimental usb stack */
168#define HAVE_USBSTACK
Solomon Peachy7e7ca0c2018-12-29 10:37:47 -0500169#define HAVE_BOOTLOADER_USB_MODE
Solomon Peachy06627932018-06-28 06:24:26 -0400170
171/* Connect by events, not by tick polling */
172#define USB_STATUS_BY_EVENT
173
174#define USB_VENDOR_ID 0x0525
175#define USB_PRODUCT_ID 0xA4A5
176
177#define USB_NUM_ENDPOINTS 3
178#define USB_DEVBSS_ATTR IBSS_ATTR
179
180#define BOOTFILE_EXT "x3"
181#define BOOTFILE "rockbox." BOOTFILE_EXT
182#define BOOTDIR "/.rockbox"
183
184#define INCLUDE_TIMEOUT_API
185
186#define ICODE_ATTR_TREMOR_NOT_MDCT
187
188#endif /* SIMULATOR */
189
190/** Port-specific settings **/
191
192#define CONFIG_SDRAM_START 0x80004000
193
194/* Main LCD backlight brightness range and defaults */
195#define MIN_BRIGHTNESS_SETTING 1
196#define MAX_BRIGHTNESS_SETTING 16
197#define DEFAULT_BRIGHTNESS_SETTING 16 /* "full brightness" */