From c9c03d6b0c06b9bb6a1279fa70039b62c3e4ff7a Mon Sep 17 00:00:00 2001 From: Marcin Bukat Date: Tue, 6 Sep 2011 12:39:28 +0000 Subject: rk27xx - update config files git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30455 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/config.h | 5 +++++ firmware/export/config/rk27generic.h | 25 ++++++++++++++++++------- 2 files changed, 23 insertions(+), 7 deletions(-) (limited to 'firmware') 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 @@ #define SDL_PAD 46 #define MPIO_HD300_PAD 47 #define SANSA_FUZEPLUS_PAD 48 +#define RK27XX_GENERIC_PAD 49 /* CONFIG_REMOTE_KEYPAD */ #define H100_REMOTE 1 @@ -309,6 +310,7 @@ Lyre prototype 1 */ #define USBOTG_AS3525 3525 /* AMS AS3525 */ #define USBOTG_AS3525v2 3535 /* AMS AS3525v2 FIXME : same as S3C6400X */ #define USBOTG_S3C6400X 6400 /* Samsung S3C6400X, also used in the S5L8701/S5L8702/S5L8720 */ +#define USBOTG_RK27XX 2700 /* Rockchip rk27xx */ /* Multiple cores */ #define CPU 0 @@ -769,6 +771,9 @@ Lyre prototype 1 */ #elif CONFIG_USBOTG == USBOTG_AS3525v2 #define USB_STATUS_BY_EVENT #define USB_DETECT_BY_CORE +#elif CONFIG_USBOTG == USBOTG_RK27XX +#define USB_STATUS_BY_EVENT +#define USB_DETECT_BY_CORE #endif /* CONFIG_USB == */ #endif /* HAVE_USBSTACK */ 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 @@ /* Define bitmask of input sources - recordable bitmask can be defined explicitly if different */ -#define INPUT_SRC_CAPS (SRC_CAP_LINEIN) +/* #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FM) */ /* define the bitmask of hardware sample rates */ #define HW_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11 \ @@ -61,6 +61,7 @@ #define CONFIG_STORAGE (STORAGE_SD | STORAGE_NAND) #define CONFIG_NAND NAND_RK27XX +#define HAVE_SW_TONE_CONTROLS /* commented for now */ /* #define HAVE_HOTSWAP */ @@ -90,7 +91,7 @@ /* TODO: #define HAVE_LCD_SLEEP_SETTING */ #endif -#define CONFIG_KEYPAD IPOD_4G_PAD +#define CONFIG_KEYPAD RK27XX_GENERIC_PAD /* Define this to enable morse code input */ #define HAVE_MORSE_INPUT @@ -107,18 +108,17 @@ #define CONFIG_LCD LCD_SPFD5420A /* Define the type of audio codec */ -/* #define HAVE_RK27XX_CODEC */ +#define HAVE_RK27XX_CODEC /* #define HAVE_PCM_DMA_ADDRESS */ /* Define this for LCD backlight available */ #define HAVE_BACKLIGHT #define HAVE_BACKLIGHT_BRIGHTNESS - -/* Main LCD backlight brightness range and defaults */ #define MIN_BRIGHTNESS_SETTING 0 #define MAX_BRIGHTNESS_SETTING 31 -#define DEFAULT_BRIGHTNESS_SETTING 18 +#define DEFAULT_BRIGHTNESS_SETTING 20 +#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_HW_REG /* Define this if you have a software controlled poweroff */ #define HAVE_SW_POWEROFF @@ -147,6 +147,17 @@ /* define this if the unit can be powered or charged via USB */ #define HAVE_USB_POWER +/* USB On-the-go */ +#define CONFIG_USBOTG USBOTG_RK27XX + +/* enable these for the experimental usb stack */ +#define HAVE_USBSTACK + +#define USE_ROCKBOX_USB +#define USB_VENDOR_ID 0x071b +#define USB_PRODUCT_ID 0x3202 +#define HAVE_BOOTLOADER_USB_MODE + /* Define this if your LCD can set contrast */ /* #define HAVE_LCD_CONTRAST */ @@ -160,7 +171,7 @@ #define CPU_FREQ 200000000 /* define this if the hardware can be powered off while charging */ -#define HAVE_POWEROFF_WHILE_CHARGING +/* #define HAVE_POWEROFF_WHILE_CHARGING */ /* Offset ( in the firmware file's header ) to the file CRC */ #define FIRMWARE_OFFSET_FILE_CRC 0 -- cgit v1.2.3