From 23a94796e9f39666d635d2e9c1a5b837e72c3b15 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Fri, 21 Jun 2013 18:00:47 +0800 Subject: [PATCH] rk3188m: add SOC_RK3188M config --- arch/arm/mach-rk3188/Kconfig | 14 +++++++++++--- arch/arm/plat-rk/include/plat/cpu.h | 6 ++++++ drivers/usb/dwc_otg/usbdev_rk30.c | 2 +- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-rk3188/Kconfig b/arch/arm/mach-rk3188/Kconfig index e91a5adab370..c2cbe0ae805c 100755 --- a/arch/arm/mach-rk3188/Kconfig +++ b/arch/arm/mach-rk3188/Kconfig @@ -5,6 +5,9 @@ choice config SOC_RK3188 bool "RK3188" +config SOC_RK3188M + bool "RK3188M" + endchoice choice @@ -36,11 +39,16 @@ config MACH_RK3188_JETTAB config MACH_RK3188_RK618 bool "RK3188 RK618 sdk" +config MACH_RK3188_FT + bool "RK3188 FT Board" + +endchoice + +choice + prompt "RK3188M Board Type" + depends on SOC_RK3188M config MACH_RK3188M_TB bool "RK3188m Top Board" -config MACH_RK3188_FT - bool "RK3188 FT Board" - endchoice diff --git a/arch/arm/plat-rk/include/plat/cpu.h b/arch/arm/plat-rk/include/plat/cpu.h index 11cf548a0c7a..23ee47716bba 100644 --- a/arch/arm/plat-rk/include/plat/cpu.h +++ b/arch/arm/plat-rk/include/plat/cpu.h @@ -101,6 +101,12 @@ static inline bool cpu_is_rk3188(void) return soc_is_rk3188plus() || soc_is_rk3188(); } +#ifdef CONFIG_SOC_RK3188M +static inline bool soc_is_rk3188m(void) { return true; } +#else +static inline bool soc_is_rk3188m(void) { return false; } +#endif + static inline bool soc_is_rk3028(void) { return soc_is_rk3168m(); } static inline bool soc_is_rk3168(void) { return soc_is_rk3108(); } diff --git a/drivers/usb/dwc_otg/usbdev_rk30.c b/drivers/usb/dwc_otg/usbdev_rk30.c index a601d6e5c462..f651f658afca 100755 --- a/drivers/usb/dwc_otg/usbdev_rk30.c +++ b/drivers/usb/dwc_otg/usbdev_rk30.c @@ -27,7 +27,7 @@ #if defined(CONFIG_SOC_RK3066B) || defined(CONFIG_SOC_RK3108) #define RK3066B_HOST_DRV_VBUS RK30_PIN0_PD7 #define RK3066B_OTG_DRV_VBUS RK30_PIN0_PD6 -#elif defined(CONFIG_SOC_RK3168) || defined(CONFIG_SOC_RK3188) || defined(CONFIG_SOC_RK3168M) +#elif defined(CONFIG_SOC_RK3168) || defined(CONFIG_SOC_RK3188) || defined(CONFIG_SOC_RK3168M) || defined(CONFIG_SOC_RK3188M) #define RK3066B_HOST_DRV_VBUS RK30_PIN0_PC0 #define RK3066B_OTG_DRV_VBUS RK30_PIN3_PD5 #elif defined(CONFIG_SOC_RK3028) -- 2.34.1