diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2018-06-28 06:24:26 -0400 |
---|---|---|
committer | Michael Giacomelli <giac2000@hotmail.com> | 2018-07-28 10:56:31 -0400 |
commit | 0662793ca0050e823cd1207cc4689a1cba5068bd (patch) | |
tree | 08cd2ec59c9044c96b697b5bf8d0640841d044e0 /firmware/export/config | |
parent | b3e2bd619b1b7ea94ef29d32db48e80b347a1990 (diff) | |
download | rockbox-0662793ca0050e823cd1207cc4689a1cba5068bd.tar.gz rockbox-0662793ca0050e823cd1207cc4689a1cba5068bd.zip |
Add cleaned-up xDuoo X3 support
Cleaned up, rebased, and forward-ported from the xvortex fork.
(original credit to vsoftster@gmail.com)
Change-Id: Ibcc023a0271ea81e901450a88317708c2683236d
Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Diffstat (limited to 'firmware/export/config')
-rw-r--r-- | firmware/export/config/ondavx747.h | 2 | ||||
-rw-r--r-- | firmware/export/config/ondavx767.h | 2 | ||||
-rw-r--r-- | firmware/export/config/ondavx777.h | 2 | ||||
-rw-r--r-- | firmware/export/config/xduoox3.h | 195 |
4 files changed, 198 insertions, 3 deletions
diff --git a/firmware/export/config/ondavx747.h b/firmware/export/config/ondavx747.h index d02845808f..bf2c47e05c 100644 --- a/firmware/export/config/ondavx747.h +++ b/firmware/export/config/ondavx747.h | |||
@@ -91,7 +91,7 @@ | |||
91 | #define CONFIG_CODEC SWCODEC | 91 | #define CONFIG_CODEC SWCODEC |
92 | 92 | ||
93 | /* define this if you have a real-time clock */ | 93 | /* define this if you have a real-time clock */ |
94 | #define CONFIG_RTC RTC_JZ47XX | 94 | #define CONFIG_RTC RTC_JZ4740 |
95 | 95 | ||
96 | /* Tuner config */ | 96 | /* Tuner config */ |
97 | #define CONFIG_TUNER TEA5767 | 97 | #define CONFIG_TUNER TEA5767 |
diff --git a/firmware/export/config/ondavx767.h b/firmware/export/config/ondavx767.h index 77fce1d1a4..3718d202a2 100644 --- a/firmware/export/config/ondavx767.h +++ b/firmware/export/config/ondavx767.h | |||
@@ -80,7 +80,7 @@ | |||
80 | #define CONFIG_CODEC SWCODEC | 80 | #define CONFIG_CODEC SWCODEC |
81 | 81 | ||
82 | /* define this if you have a real-time clock */ | 82 | /* define this if you have a real-time clock */ |
83 | #define CONFIG_RTC RTC_JZ47XX | 83 | #define CONFIG_RTC RTC_JZ4740 |
84 | 84 | ||
85 | /* Define this for LCD backlight available */ | 85 | /* Define this for LCD backlight available */ |
86 | #define HAVE_BACKLIGHT | 86 | #define HAVE_BACKLIGHT |
diff --git a/firmware/export/config/ondavx777.h b/firmware/export/config/ondavx777.h index 404d193d4a..17e3eda165 100644 --- a/firmware/export/config/ondavx777.h +++ b/firmware/export/config/ondavx777.h | |||
@@ -85,7 +85,7 @@ | |||
85 | #define CONFIG_CODEC SWCODEC | 85 | #define CONFIG_CODEC SWCODEC |
86 | 86 | ||
87 | /* define this if you have a real-time clock */ | 87 | /* define this if you have a real-time clock */ |
88 | #define CONFIG_RTC RTC_JZ47XX | 88 | #define CONFIG_RTC RTC_JZ4740 |
89 | 89 | ||
90 | /* Tuner config */ | 90 | /* Tuner config */ |
91 | #define CONFIG_TUNER TEA5767 | 91 | #define CONFIG_TUNER TEA5767 |
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" */ | ||