diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/audiohw.h | 2 | ||||
-rw-r--r-- | firmware/export/config.h | 5 | ||||
-rw-r--r-- | firmware/export/config/agptekrocker.h | 119 | ||||
-rw-r--r-- | firmware/export/rbpaths.h | 5 | ||||
-rw-r--r-- | firmware/export/rocker_codec.h | 6 |
5 files changed, 136 insertions, 1 deletions
diff --git a/firmware/export/audiohw.h b/firmware/export/audiohw.h index 6026a3b4bd..26a1a69f95 100644 --- a/firmware/export/audiohw.h +++ b/firmware/export/audiohw.h | |||
@@ -216,6 +216,8 @@ struct sound_settings_info | |||
216 | #include "codec-dx50.h" | 216 | #include "codec-dx50.h" |
217 | #elif defined(DX90) | 217 | #elif defined(DX90) |
218 | #include "codec-dx90.h" | 218 | #include "codec-dx90.h" |
219 | #elif defined(HAVE_ROCKER_CODEC) | ||
220 | #include "rocker_codec.h" | ||
219 | #endif | 221 | #endif |
220 | 222 | ||
221 | /* convert caps into defines */ | 223 | /* convert caps into defines */ |
diff --git a/firmware/export/config.h b/firmware/export/config.h index 0d15ab6a33..14664257bf 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -166,6 +166,7 @@ | |||
166 | #define SAMSUNG_YH92X_PAD 62 | 166 | #define SAMSUNG_YH92X_PAD 62 |
167 | #define DX50_PAD 63 | 167 | #define DX50_PAD 63 |
168 | #define SONY_NWZA860_PAD 64 /* The NWZ-A860 is too different (touchscreen) */ | 168 | #define SONY_NWZA860_PAD 64 /* The NWZ-A860 is too different (touchscreen) */ |
169 | #define AGPTEK_ROCKER_PAD 65 | ||
169 | 170 | ||
170 | /* CONFIG_REMOTE_KEYPAD */ | 171 | /* CONFIG_REMOTE_KEYPAD */ |
171 | #define H100_REMOTE 1 | 172 | #define H100_REMOTE 1 |
@@ -279,6 +280,7 @@ | |||
279 | #define LCD_CREATIVEZENXFISTYLE 61 /* as used by Creative Zen X-Fi Style */ | 280 | #define LCD_CREATIVEZENXFISTYLE 61 /* as used by Creative Zen X-Fi Style */ |
280 | #define LCD_SAMSUNGYPR1 62 /* as used by Samsung YP-R1 */ | 281 | #define LCD_SAMSUNGYPR1 62 /* as used by Samsung YP-R1 */ |
281 | #define LCD_NWZ_LINUX 63 /* as used in the Linux-based NWZ series */ | 282 | #define LCD_NWZ_LINUX 63 /* as used in the Linux-based NWZ series */ |
283 | #define LCD_INGENIC_LINUX 64 | ||
282 | 284 | ||
283 | /* LCD_PIXELFORMAT */ | 285 | /* LCD_PIXELFORMAT */ |
284 | #define HORIZONTAL_PACKING 1 | 286 | #define HORIZONTAL_PACKING 1 |
@@ -288,6 +290,7 @@ | |||
288 | #define RGB565 565 | 290 | #define RGB565 565 |
289 | #define RGB565SWAPPED 3553 | 291 | #define RGB565SWAPPED 3553 |
290 | #define RGB888 888 | 292 | #define RGB888 888 |
293 | #define XRGB8888 8888 | ||
291 | 294 | ||
292 | /* LCD_STRIDEFORMAT */ | 295 | /* LCD_STRIDEFORMAT */ |
293 | #define VERTICAL_STRIDE 1 | 296 | #define VERTICAL_STRIDE 1 |
@@ -601,6 +604,8 @@ Lyre prototype 1 */ | |||
601 | #include "config/sonynwzs750.h" | 604 | #include "config/sonynwzs750.h" |
602 | #elif defined(SONY_NWZE350) | 605 | #elif defined(SONY_NWZE350) |
603 | #include "config/sonynwze350.h" | 606 | #include "config/sonynwze350.h" |
607 | #elif defined(AGPTEK_ROCKER) | ||
608 | #include "config/agptekrocker.h" | ||
604 | #else | 609 | #else |
605 | /* no known platform */ | 610 | /* no known platform */ |
606 | #endif | 611 | #endif |
diff --git a/firmware/export/config/agptekrocker.h b/firmware/export/config/agptekrocker.h new file mode 100644 index 0000000000..517448b86d --- /dev/null +++ b/firmware/export/config/agptekrocker.h | |||
@@ -0,0 +1,119 @@ | |||
1 | /* | ||
2 | * This config file is for the Agptek Rocket | ||
3 | */ | ||
4 | |||
5 | /* For Rolo and boot loader */ | ||
6 | #define MODEL_NUMBER 103//??? | ||
7 | |||
8 | #define MODEL_NAME "Agptek Rocker" | ||
9 | |||
10 | /* LCD dimensions */ | ||
11 | #define LCD_WIDTH 128 | ||
12 | #define LCD_HEIGHT 160 | ||
13 | /* sqrt(128^2 + 160^2) / 2 = 102. */ | ||
14 | #define LCD_DPI 102 | ||
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 this if the LCD can shut down */ | ||
27 | //#define HAVE_LCD_SHUTDOWN | ||
28 | |||
29 | /* define this if you want album art for this target */ | ||
30 | #define HAVE_ALBUMART | ||
31 | |||
32 | /* define this to enable bitmap scaling */ | ||
33 | #define HAVE_BMP_SCALING | ||
34 | |||
35 | /* define this to enable JPEG decoding */ | ||
36 | #define HAVE_JPEG | ||
37 | |||
38 | /* define this if you have access to the quickscreen */ | ||
39 | #define HAVE_QUICKSCREEN | ||
40 | |||
41 | /* define this if you would like tagcache to build on this target */ | ||
42 | #define HAVE_TAGCACHE | ||
43 | |||
44 | #define LCD_DEPTH 32 | ||
45 | /* Check that but should not matter */ | ||
46 | #define LCD_PIXELFORMAT XRGB8888 | ||
47 | |||
48 | #define HAVE_BACKLIGHT | ||
49 | #define HAVE_BACKLIGHT_BRIGHTNESS | ||
50 | |||
51 | /* Main LCD backlight brightness range and defaults: the backlight driver | ||
52 | * has levels from 0 to 2555. But 0 is off so start at 1. | ||
53 | */ | ||
54 | #define MIN_BRIGHTNESS_SETTING 1 | ||
55 | #define MAX_BRIGHTNESS_SETTING 255 | ||
56 | #define DEFAULT_BRIGHTNESS_SETTING 70 | ||
57 | |||
58 | /* Which backlight fading type? */ | ||
59 | #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING | ||
60 | |||
61 | /* define this if you have a real-time clock */ | ||
62 | #define CONFIG_RTC 0 | ||
63 | |||
64 | /* The number of bytes reserved for loadable codecs */ | ||
65 | #define CODEC_SIZE 0x80000 | ||
66 | |||
67 | /* The number of bytes reserved for loadable plugins */ | ||
68 | #define PLUGIN_BUFFER_SIZE 0x100000 | ||
69 | |||
70 | /* Define this if you do software codec */ | ||
71 | #define CONFIG_CODEC SWCODEC | ||
72 | #define HAVE_ROCKER_CODEC | ||
73 | |||
74 | #define HAVE_HEADPHONE_DETECTION | ||
75 | |||
76 | /* KeyPad configuration for plugins */ | ||
77 | #define CONFIG_KEYPAD AGPTEK_ROCKER_PAD | ||
78 | |||
79 | #ifndef SIMULATOR | ||
80 | /* We have usb power and can detect usb but it is handled by Linux */ | ||
81 | #define HAVE_USB_POWER | ||
82 | #define USB_NONE | ||
83 | #endif | ||
84 | |||
85 | #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE | ||
86 | |||
87 | /* Linux controlls charging, we can monitor */ | ||
88 | #define CONFIG_CHARGING CHARGING_MONITOR | ||
89 | |||
90 | /* define this if the hardware can be powered off while charging */ | ||
91 | #define HAVE_POWEROFF_WHILE_CHARGING | ||
92 | |||
93 | /* same dimensions as gigabeats */ | ||
94 | #define CONFIG_LCD LCD_INGENIC_LINUX | ||
95 | |||
96 | /* Define this if you have a software controlled poweroff */ | ||
97 | #define HAVE_SW_POWEROFF | ||
98 | |||
99 | /* Define this to the CPU frequency */ | ||
100 | #define CPU_FREQ 532000000 | ||
101 | |||
102 | /* No special storage */ | ||
103 | #define CONFIG_STORAGE (STORAGE_HOSTFS)//|STORAGE_SD) | ||
104 | //#define MULTIDRIVE_DIR "/mnt/sd_0" | ||
105 | //#define NUM_DRIVES 1 | ||
106 | //#define HAVE_HOTSWAP | ||
107 | #define HAVE_STORAGE_FLUSH | ||
108 | |||
109 | /* Battery */ | ||
110 | #define BATTERY_TYPES_COUNT 1 | ||
111 | |||
112 | /* Audio codec */ | ||
113 | #define HAVE_ROCKER_CODEC | ||
114 | |||
115 | /* Battery */ | ||
116 | #define BATTERY_CAPACITY_DEFAULT 600 /* default battery capacity */ | ||
117 | #define BATTERY_CAPACITY_MIN 600 /* min. capacity selectable */ | ||
118 | #define BATTERY_CAPACITY_MAX 600 /* max. capacity selectable */ | ||
119 | #define BATTERY_CAPACITY_INC 0 /* capacity increment */ | ||
diff --git a/firmware/export/rbpaths.h b/firmware/export/rbpaths.h index 8dc9b3a7f9..6623461639 100644 --- a/firmware/export/rbpaths.h +++ b/firmware/export/rbpaths.h | |||
@@ -41,7 +41,8 @@ | |||
41 | #endif /* def __PCTOOL__ */ | 41 | #endif /* def __PCTOOL__ */ |
42 | 42 | ||
43 | #if !defined(APPLICATION) || defined(SAMSUNG_YPR0) || defined(SAMSUNG_YPR1) || \ | 43 | #if !defined(APPLICATION) || defined(SAMSUNG_YPR0) || defined(SAMSUNG_YPR1) || \ |
44 | defined(DX50) || defined(DX90) || defined(SONY_NWZ_LINUX) | 44 | defined(DX50) || defined(DX90) || defined(SONY_NWZ_LINUX) || \ |
45 | defined(AGPTEK_ROCKER) | ||
45 | 46 | ||
46 | #if defined(SAMSUNG_YPR0) || defined(SAMSUNG_YPR1) | 47 | #if defined(SAMSUNG_YPR0) || defined(SAMSUNG_YPR1) |
47 | #define HOME_DIR "/mnt/media0" | 48 | #define HOME_DIR "/mnt/media0" |
@@ -50,6 +51,8 @@ | |||
50 | #elif defined(DX50) || defined(DX90) | 51 | #elif defined(DX50) || defined(DX90) |
51 | /* Where to put save files like recordings, playlists, screen dumps ...*/ | 52 | /* Where to put save files like recordings, playlists, screen dumps ...*/ |
52 | #define HOME_DIR "/mnt/sdcard" | 53 | #define HOME_DIR "/mnt/sdcard" |
54 | #elif defined(AGPTEK_ROCKER) | ||
55 | #define HOME_DIR "/mnt/sd_0" | ||
53 | #else | 56 | #else |
54 | #define HOME_DIR "/" | 57 | #define HOME_DIR "/" |
55 | #endif | 58 | #endif |
diff --git a/firmware/export/rocker_codec.h b/firmware/export/rocker_codec.h new file mode 100644 index 0000000000..366900d717 --- /dev/null +++ b/firmware/export/rocker_codec.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef __ROCKER_CODEC__ | ||
2 | #define __ROCKER_CODEC__ | ||
3 | |||
4 | #define AUDIOHW_CAPS 0 | ||
5 | AUDIOHW_SETTING(VOLUME, "dB", 1, 5, -1020, 0, -300, ) | ||
6 | #endif | ||