From: lw Date: Mon, 13 Aug 2012 05:03:43 +0000 (+0800) Subject: phonepad:modify sdmmc gpio definition for phonepad X-Git-Tag: firefly_0821_release~8922^2~16 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cee1ab84481e00540d00988a8877e344deb40ae4;p=firefly-linux-kernel-4.4.55.git phonepad:modify sdmmc gpio definition for phonepad --- diff --git a/arch/arm/mach-rk30/board-rk30-sdk-sdmmc.c b/arch/arm/mach-rk30/board-rk30-sdk-sdmmc.c index d57ef3c84572..0c91aeeaf266 100755 --- a/arch/arm/mach-rk30/board-rk30-sdk-sdmmc.c +++ b/arch/arm/mach-rk30/board-rk30-sdk-sdmmc.c @@ -445,6 +445,26 @@ static struct resource resources[] = { /////////////////////////////////////////////////////////////////////////////////// #elif defined(CONFIG_WIFI_COMBO_MODULE_CONTROL_FUNC) +#if defined(CONFIG_MACH_RK30_PHONE_PAD) + #if defined(CONFIG_USE_SDMMC0_FOR_WIFI_DEVELOP_BOARD) + #define USE_SDMMC_CONTROLLER_FOR_WIFI 0 + #define RK29SDK_WIFI_COMBO_GPIO_POWER_N RK30_PIN4_PD2 + #define RK29SDK_WIFI_COMBO_GPIO_RESET_N RK30_PIN4_PD1 + #define RK29SDK_WIFI_COMBO_GPIO_VDDIO RK30_PIN1_PA6 + #define RK29SDK_WIFI_COMBO_GPIO_BGF_INT_B RK30_PIN1_PA7 + #define RK29SDK_WIFI_COMBO_GPS_SYNC RK30_PIN3_PC7 + + #else + #define USE_SDMMC_CONTROLLER_FOR_WIFI 1 + #define RK29SDK_WIFI_COMBO_GPIO_POWER_N RK30_PIN3_PC7 + #define RK29SDK_WIFI_COMBO_GPIO_RESET_N RK30_PIN3_PD1 + #define RK29SDK_WIFI_COMBO_GPIO_WIFI_INT_B RK30_PIN3_PD2 + + //#define RK29SDK_WIFI_COMBO_GPIO_VDDIO RK30_PIN6_PB4 + #define RK29SDK_WIFI_COMBO_GPIO_BGF_INT_B RK30_PIN6_PA7 + #define RK29SDK_WIFI_COMBO_GPS_SYNC RK30_PIN3_PD0 + #endif +#else #if defined(CONFIG_USE_SDMMC0_FOR_WIFI_DEVELOP_BOARD) #define USE_SDMMC_CONTROLLER_FOR_WIFI 0 @@ -464,7 +484,7 @@ static struct resource resources[] = { #define RK29SDK_WIFI_COMBO_GPIO_BGF_INT_B RK30_PIN3_PC6 #define RK29SDK_WIFI_COMBO_GPS_SYNC RK30_PIN3_PC7 #endif - +#endif #define debug_combo_system 0