summaryrefslogtreecommitdiff
path: root/firmware/export/config
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2018-11-05 13:01:55 +0100
committerSolomon Peachy <pizza@shaftnet.org>2020-04-06 18:15:41 +0200
commit180cef835bf40d0081895773aaa637ac926bb0ac (patch)
tree48c380d76c0ea40931cb5e863b40fc5dfa1ecba4 /firmware/export/config
parentced3a20aacf26642ccc3ffd136f64247c67e5769 (diff)
downloadrockbox-180cef835bf40d0081895773aaa637ac926bb0ac.tar.gz
rockbox-180cef835bf40d0081895773aaa637ac926bb0ac.zip
xDuoo X3II and X20 port
Provided by Roman Stolyarov Integration, Refactoring, and Upstreaming by Solomon Peachy X3II confirmed working by forum tester, X20 is nearly identical. This includes bootloader, main firmware, and the flash image patcher. Eventual Todo: * Further refactor AGPTek Rocker & xduoo hiby bootloaders * Further refactor AGPTek Rocker & xduoo hosted platform code Change-Id: I34a674051d368efcc75d1d18c725971fe46c3eee
Diffstat (limited to 'firmware/export/config')
-rw-r--r--firmware/export/config/agptekrocker.h2
-rw-r--r--firmware/export/config/xduoox20.h126
-rw-r--r--firmware/export/config/xduoox3ii.h126
3 files changed, 253 insertions, 1 deletions
diff --git a/firmware/export/config/agptekrocker.h b/firmware/export/config/agptekrocker.h
index 172e079721..372287f4b5 100644
--- a/firmware/export/config/agptekrocker.h
+++ b/firmware/export/config/agptekrocker.h
@@ -3,7 +3,7 @@
3 */ 3 */
4 4
5/* For Rolo and boot loader */ 5/* For Rolo and boot loader */
6#define MODEL_NUMBER 103//??? 6#define MODEL_NUMBER 105
7 7
8#define MODEL_NAME "Agptek Rocker" 8#define MODEL_NAME "Agptek Rocker"
9 9
diff --git a/firmware/export/config/xduoox20.h b/firmware/export/config/xduoox20.h
new file mode 100644
index 0000000000..d451ba31f4
--- /dev/null
+++ b/firmware/export/config/xduoox20.h
@@ -0,0 +1,126 @@
1/*
2 * This config file is for the xDuoo X20
3 */
4
5/* For Rolo and boot loader */
6#define MODEL_NUMBER 111
7
8#define MODEL_NAME "xDuoo X20"
9
10/* LCD dimensions */
11#define LCD_WIDTH 240
12#define LCD_HEIGHT 320
13/* sqrt(240^2 + 320^2) / 2.4 = 166 */
14#define LCD_DPI 166
15
16#ifndef SIMULATOR
17#define CONFIG_PLATFORM (PLATFORM_HOSTED)
18#endif
19
20/* define this if you have a bitmap LCD display */
21#define HAVE_LCD_BITMAP
22
23/* define this if you have a colour LCD */
24#define HAVE_LCD_COLOR
25
26#define HAVE_LCD_ENABLE
27
28/* Define this if the LCD can shut down */
29#define HAVE_LCD_SHUTDOWN
30
31/* define this if you want album art for this target */
32#define HAVE_ALBUMART
33
34/* define this to enable bitmap scaling */
35#define HAVE_BMP_SCALING
36
37/* define this to enable JPEG decoding */
38#define HAVE_JPEG
39
40/* define this if you have access to the quickscreen */
41#define HAVE_QUICKSCREEN
42
43/* define this if you would like tagcache to build on this target */
44#define HAVE_TAGCACHE
45
46#define LCD_DEPTH 32
47/* Check that but should not matter */
48#define LCD_PIXELFORMAT XRGB8888
49
50#define HAVE_BACKLIGHT
51#define HAVE_BACKLIGHT_BRIGHTNESS
52
53/* Main LCD backlight brightness range and defaults: the backlight driver
54 * has levels from 0 to 2555. But 0 is off so start at 1.
55 */
56#define MIN_BRIGHTNESS_SETTING 1
57#define MAX_BRIGHTNESS_SETTING 255
58#define DEFAULT_BRIGHTNESS_SETTING 70
59
60/* Which backlight fading type? */
61#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
62
63/* define this if you have a real-time clock */
64#define CONFIG_RTC APPLICATION
65
66/* The number of bytes reserved for loadable codecs */
67#define CODEC_SIZE 0x80000
68
69/* The number of bytes reserved for loadable plugins */
70#define PLUGIN_BUFFER_SIZE 0x100000
71
72/* Define this if you do software codec */
73#define CONFIG_CODEC SWCODEC
74
75#define HAVE_HEADPHONE_DETECTION
76
77/* KeyPad configuration for plugins */
78#define CONFIG_KEYPAD XDUOO_X20_PAD
79
80/* Define this if a programmable hotkey is mapped */
81#define HAVE_HOTKEY
82
83/* define this if the target has volume keys which can be used in the lists */
84#define HAVE_VOLUME_IN_LIST
85
86#ifndef SIMULATOR
87/* We have usb power and can detect usb but it is handled by Linux */
88#define HAVE_USB_POWER
89
90#endif
91
92#define CONFIG_BATTERY_MEASURE PERCENTAGE_MEASURE
93
94/* Linux controlls charging, we can monitor */
95#define CONFIG_CHARGING CHARGING_MONITOR
96
97/* define this if the hardware can be powered off while charging */
98#define HAVE_POWEROFF_WHILE_CHARGING
99
100/* same dimensions as gigabeats */
101#define CONFIG_LCD LCD_INGENIC_LINUX
102
103/* Define this if you have a software controlled poweroff */
104#define HAVE_SW_POWEROFF
105
106/* Define this to the CPU frequency */
107#define CPU_FREQ 504000000
108
109/* No special storage */
110#define CONFIG_STORAGE STORAGE_HOSTFS
111#define HAVE_STORAGE_FLUSH
112
113/* Battery */
114#define BATTERY_TYPES_COUNT 1
115
116/* Audio codec */
117#define HAVE_XDUOO_LINUX_CODEC
118
119/* We don't have hardware controls */
120#define HAVE_SW_TONE_CONTROLS
121
122/* Battery */
123#define BATTERY_CAPACITY_DEFAULT 2400 /* default battery capacity */
124#define BATTERY_CAPACITY_MIN 2400 /* min. capacity selectable */
125#define BATTERY_CAPACITY_MAX 2400 /* max. capacity selectable */
126#define BATTERY_CAPACITY_INC 0 /* capacity increment */
diff --git a/firmware/export/config/xduoox3ii.h b/firmware/export/config/xduoox3ii.h
new file mode 100644
index 0000000000..af63c4f97b
--- /dev/null
+++ b/firmware/export/config/xduoox3ii.h
@@ -0,0 +1,126 @@
1/*
2 * This config file is for the xDuoo X3ii
3 */
4
5/* For Rolo and boot loader */
6#define MODEL_NUMBER 110
7
8#define MODEL_NAME "xDuoo X3ii"
9
10/* LCD dimensions */
11#define LCD_WIDTH 240
12#define LCD_HEIGHT 320
13/* sqrt(240^2 + 320^2) / 2.4 = 166 */
14#define LCD_DPI 166
15
16#ifndef SIMULATOR
17#define CONFIG_PLATFORM (PLATFORM_HOSTED)
18#endif
19
20/* define this if you have a bitmap LCD display */
21#define HAVE_LCD_BITMAP
22
23/* define this if you have a colour LCD */
24#define HAVE_LCD_COLOR
25
26#define HAVE_LCD_ENABLE
27
28/* Define this if the LCD can shut down */
29#define HAVE_LCD_SHUTDOWN
30
31/* define this if you want album art for this target */
32#define HAVE_ALBUMART
33
34/* define this to enable bitmap scaling */
35#define HAVE_BMP_SCALING
36
37/* define this to enable JPEG decoding */
38#define HAVE_JPEG
39
40/* define this if you have access to the quickscreen */
41#define HAVE_QUICKSCREEN
42
43/* define this if you would like tagcache to build on this target */
44#define HAVE_TAGCACHE
45
46#define LCD_DEPTH 32
47/* Check that but should not matter */
48#define LCD_PIXELFORMAT XRGB8888
49
50#define HAVE_BACKLIGHT
51#define HAVE_BACKLIGHT_BRIGHTNESS
52
53/* Main LCD backlight brightness range and defaults: the backlight driver
54 * has levels from 0 to 2555. But 0 is off so start at 1.
55 */
56#define MIN_BRIGHTNESS_SETTING 1
57#define MAX_BRIGHTNESS_SETTING 255
58#define DEFAULT_BRIGHTNESS_SETTING 70
59
60/* Which backlight fading type? */
61#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
62
63/* define this if you have a real-time clock */
64#define CONFIG_RTC APPLICATION
65
66/* The number of bytes reserved for loadable codecs */
67#define CODEC_SIZE 0x80000
68
69/* The number of bytes reserved for loadable plugins */
70#define PLUGIN_BUFFER_SIZE 0x100000
71
72/* Define this if you do software codec */
73#define CONFIG_CODEC SWCODEC
74
75#define HAVE_HEADPHONE_DETECTION
76
77/* KeyPad configuration for plugins */
78#define CONFIG_KEYPAD XDUOO_X3II_PAD
79
80/* Define this if a programmable hotkey is mapped */
81#define HAVE_HOTKEY
82
83/* define this if the target has volume keys which can be used in the lists */
84#define HAVE_VOLUME_IN_LIST
85
86#ifndef SIMULATOR
87/* We have usb power and can detect usb but it is handled by Linux */
88#define HAVE_USB_POWER
89
90#endif
91
92#define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
93
94/* Linux controlls charging, we can monitor */
95#define CONFIG_CHARGING CHARGING_MONITOR
96
97/* define this if the hardware can be powered off while charging */
98#define HAVE_POWEROFF_WHILE_CHARGING
99
100/* same dimensions as gigabeats */
101#define CONFIG_LCD LCD_INGENIC_LINUX
102
103/* Define this if you have a software controlled poweroff */
104#define HAVE_SW_POWEROFF
105
106/* Define this to the CPU frequency */
107#define CPU_FREQ 504000000
108
109/* No special storage */
110#define CONFIG_STORAGE STORAGE_HOSTFS
111#define HAVE_STORAGE_FLUSH
112
113/* Battery */
114#define BATTERY_TYPES_COUNT 1
115
116/* Audio codec */
117#define HAVE_XDUOO_LINUX_CODEC
118
119/* We don't have hardware controls */
120#define HAVE_SW_TONE_CONTROLS
121
122/* Battery */
123#define BATTERY_CAPACITY_DEFAULT 2000 /* default battery capacity */
124#define BATTERY_CAPACITY_MIN 2000 /* min. capacity selectable */
125#define BATTERY_CAPACITY_MAX 2000 /* max. capacity selectable */
126#define BATTERY_CAPACITY_INC 0 /* capacity increment */