diff options
-rw-r--r-- | firmware/export/config.h | 5 | ||||
-rw-r--r-- | firmware/export/config/rk27generic.h | 25 |
2 files changed, 23 insertions, 7 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h index e1ce15a562..8addb62e95 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -139,6 +139,7 @@ | |||
139 | #define SDL_PAD 46 | 139 | #define SDL_PAD 46 |
140 | #define MPIO_HD300_PAD 47 | 140 | #define MPIO_HD300_PAD 47 |
141 | #define SANSA_FUZEPLUS_PAD 48 | 141 | #define SANSA_FUZEPLUS_PAD 48 |
142 | #define RK27XX_GENERIC_PAD 49 | ||
142 | 143 | ||
143 | /* CONFIG_REMOTE_KEYPAD */ | 144 | /* CONFIG_REMOTE_KEYPAD */ |
144 | #define H100_REMOTE 1 | 145 | #define H100_REMOTE 1 |
@@ -309,6 +310,7 @@ Lyre prototype 1 */ | |||
309 | #define USBOTG_AS3525 3525 /* AMS AS3525 */ | 310 | #define USBOTG_AS3525 3525 /* AMS AS3525 */ |
310 | #define USBOTG_AS3525v2 3535 /* AMS AS3525v2 FIXME : same as S3C6400X */ | 311 | #define USBOTG_AS3525v2 3535 /* AMS AS3525v2 FIXME : same as S3C6400X */ |
311 | #define USBOTG_S3C6400X 6400 /* Samsung S3C6400X, also used in the S5L8701/S5L8702/S5L8720 */ | 312 | #define USBOTG_S3C6400X 6400 /* Samsung S3C6400X, also used in the S5L8701/S5L8702/S5L8720 */ |
313 | #define USBOTG_RK27XX 2700 /* Rockchip rk27xx */ | ||
312 | 314 | ||
313 | /* Multiple cores */ | 315 | /* Multiple cores */ |
314 | #define CPU 0 | 316 | #define CPU 0 |
@@ -769,6 +771,9 @@ Lyre prototype 1 */ | |||
769 | #elif CONFIG_USBOTG == USBOTG_AS3525v2 | 771 | #elif CONFIG_USBOTG == USBOTG_AS3525v2 |
770 | #define USB_STATUS_BY_EVENT | 772 | #define USB_STATUS_BY_EVENT |
771 | #define USB_DETECT_BY_CORE | 773 | #define USB_DETECT_BY_CORE |
774 | #elif CONFIG_USBOTG == USBOTG_RK27XX | ||
775 | #define USB_STATUS_BY_EVENT | ||
776 | #define USB_DETECT_BY_CORE | ||
772 | #endif /* CONFIG_USB == */ | 777 | #endif /* CONFIG_USB == */ |
773 | #endif /* HAVE_USBSTACK */ | 778 | #endif /* HAVE_USBSTACK */ |
774 | 779 | ||
diff --git a/firmware/export/config/rk27generic.h b/firmware/export/config/rk27generic.h index 6ed7353d16..b2c74bd937 100644 --- a/firmware/export/config/rk27generic.h +++ b/firmware/export/config/rk27generic.h | |||
@@ -13,7 +13,7 @@ | |||
13 | 13 | ||
14 | /* Define bitmask of input sources - recordable bitmask can be defined | 14 | /* Define bitmask of input sources - recordable bitmask can be defined |
15 | explicitly if different */ | 15 | explicitly if different */ |
16 | #define INPUT_SRC_CAPS (SRC_CAP_LINEIN) | 16 | /* #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FM) */ |
17 | 17 | ||
18 | /* define the bitmask of hardware sample rates */ | 18 | /* define the bitmask of hardware sample rates */ |
19 | #define HW_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11 \ | 19 | #define HW_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11 \ |
@@ -61,6 +61,7 @@ | |||
61 | #define CONFIG_STORAGE (STORAGE_SD | STORAGE_NAND) | 61 | #define CONFIG_STORAGE (STORAGE_SD | STORAGE_NAND) |
62 | 62 | ||
63 | #define CONFIG_NAND NAND_RK27XX | 63 | #define CONFIG_NAND NAND_RK27XX |
64 | #define HAVE_SW_TONE_CONTROLS | ||
64 | 65 | ||
65 | /* commented for now */ | 66 | /* commented for now */ |
66 | /* #define HAVE_HOTSWAP */ | 67 | /* #define HAVE_HOTSWAP */ |
@@ -90,7 +91,7 @@ | |||
90 | /* TODO: #define HAVE_LCD_SLEEP_SETTING */ | 91 | /* TODO: #define HAVE_LCD_SLEEP_SETTING */ |
91 | #endif | 92 | #endif |
92 | 93 | ||
93 | #define CONFIG_KEYPAD IPOD_4G_PAD | 94 | #define CONFIG_KEYPAD RK27XX_GENERIC_PAD |
94 | 95 | ||
95 | /* Define this to enable morse code input */ | 96 | /* Define this to enable morse code input */ |
96 | #define HAVE_MORSE_INPUT | 97 | #define HAVE_MORSE_INPUT |
@@ -107,18 +108,17 @@ | |||
107 | #define CONFIG_LCD LCD_SPFD5420A | 108 | #define CONFIG_LCD LCD_SPFD5420A |
108 | 109 | ||
109 | /* Define the type of audio codec */ | 110 | /* Define the type of audio codec */ |
110 | /* #define HAVE_RK27XX_CODEC */ | 111 | #define HAVE_RK27XX_CODEC |
111 | 112 | ||
112 | /* #define HAVE_PCM_DMA_ADDRESS */ | 113 | /* #define HAVE_PCM_DMA_ADDRESS */ |
113 | 114 | ||
114 | /* Define this for LCD backlight available */ | 115 | /* Define this for LCD backlight available */ |
115 | #define HAVE_BACKLIGHT | 116 | #define HAVE_BACKLIGHT |
116 | #define HAVE_BACKLIGHT_BRIGHTNESS | 117 | #define HAVE_BACKLIGHT_BRIGHTNESS |
117 | |||
118 | /* Main LCD backlight brightness range and defaults */ | ||
119 | #define MIN_BRIGHTNESS_SETTING 0 | 118 | #define MIN_BRIGHTNESS_SETTING 0 |
120 | #define MAX_BRIGHTNESS_SETTING 31 | 119 | #define MAX_BRIGHTNESS_SETTING 31 |
121 | #define DEFAULT_BRIGHTNESS_SETTING 18 | 120 | #define DEFAULT_BRIGHTNESS_SETTING 20 |
121 | #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_HW_REG | ||
122 | 122 | ||
123 | /* Define this if you have a software controlled poweroff */ | 123 | /* Define this if you have a software controlled poweroff */ |
124 | #define HAVE_SW_POWEROFF | 124 | #define HAVE_SW_POWEROFF |
@@ -147,6 +147,17 @@ | |||
147 | /* define this if the unit can be powered or charged via USB */ | 147 | /* define this if the unit can be powered or charged via USB */ |
148 | #define HAVE_USB_POWER | 148 | #define HAVE_USB_POWER |
149 | 149 | ||
150 | /* USB On-the-go */ | ||
151 | #define CONFIG_USBOTG USBOTG_RK27XX | ||
152 | |||
153 | /* enable these for the experimental usb stack */ | ||
154 | #define HAVE_USBSTACK | ||
155 | |||
156 | #define USE_ROCKBOX_USB | ||
157 | #define USB_VENDOR_ID 0x071b | ||
158 | #define USB_PRODUCT_ID 0x3202 | ||
159 | #define HAVE_BOOTLOADER_USB_MODE | ||
160 | |||
150 | /* Define this if your LCD can set contrast */ | 161 | /* Define this if your LCD can set contrast */ |
151 | /* #define HAVE_LCD_CONTRAST */ | 162 | /* #define HAVE_LCD_CONTRAST */ |
152 | 163 | ||
@@ -160,7 +171,7 @@ | |||
160 | #define CPU_FREQ 200000000 | 171 | #define CPU_FREQ 200000000 |
161 | 172 | ||
162 | /* define this if the hardware can be powered off while charging */ | 173 | /* define this if the hardware can be powered off while charging */ |
163 | #define HAVE_POWEROFF_WHILE_CHARGING | 174 | /* #define HAVE_POWEROFF_WHILE_CHARGING */ |
164 | 175 | ||
165 | /* Offset ( in the firmware file's header ) to the file CRC */ | 176 | /* Offset ( in the firmware file's header ) to the file CRC */ |
166 | #define FIRMWARE_OFFSET_FILE_CRC 0 | 177 | #define FIRMWARE_OFFSET_FILE_CRC 0 |