RK3168: add gpio for MT5931_MT6622
authorxbw <xbw@rock-chips.com>
Thu, 10 Jan 2013 02:34:09 +0000 (10:34 +0800)
committerxbw <xbw@rock-chips.com>
Thu, 10 Jan 2013 02:34:09 +0000 (10:34 +0800)
arch/arm/mach-rk30/board-rk30-sdk-sdmmc.c

index 50df5814b925914454e43fff4aab840522a12c5c..a278ae54c1ad099d0e193510b527bb4bac61aec0 100755 (executable)
         #define RK30SDK_WIFI_GPIO_RESET_IOMUX_FGPIO     GPIO2A_GPIO2A7
     
     #elif defined(CONFIG_MT5931_MT6622) || defined(CONFIG_MT5931)
-           #define RK30SDK_WIFI_GPIO_POWER_N               RK30_PIN0_PA5 
-           #define RK30SDK_WIFI_GPIO_POWER_ENABLE_VALUE    GPIO_HIGH
-        //#define RK30SDK_WIFI_GPIO_POWER_PIN_NAME        GPIO3D0_SDMMC1PWREN_MIIMD_NAME
-        //#define RK30SDK_WIFI_GPIO_POWER_IOMUX_FGPIO     GPIO3D_GPIO3D0
+
+               #ifdef  CONFIG_MACH_RK3168_LR097 
+               #define RK30SDK_WIFI_GPIO_POWER_N               RK30_PIN3_PD0 
+               #define RK30SDK_WIFI_GPIO_POWER_ENABLE_VALUE    GPIO_HIGH
+               #define RK30SDK_WIFI_GPIO_POWER_PIN_NAME        GPIO3D0_SDMMC1PWREN_MIIMD_NAME
+               #define RK30SDK_WIFI_GPIO_POWER_IOMUX_FGPIO     GPIO3D_GPIO3D0
  
-        #define RK30SDK_WIFI_GPIO_RESET_N                  RK30_PIN3_PD1
-        #define RK30SDK_WIFI_GPIO_RESET_ENABLE_VALUE    GPIO_HIGH
-        #define RK30SDK_WIFI_GPIO_RESET_PIN_NAME        GPIO3D1_SDMMC1BACKENDPWR_MIIMDCLK_NAME
-        #define RK30SDK_WIFI_GPIO_RESET_IOMUX_FGPIO     GPIO3D_GPIO3D1
+               //#define RK30SDK_WIFI_GPIO_RESET_N                 RK30_PIN3_PD1
+               //#define RK30SDK_WIFI_GPIO_RESET_ENABLE_VALUE    GPIO_HIGH
+               //#define RK30SDK_WIFI_GPIO_RESET_PIN_NAME        GPIO3D1_SDMMC1BACKENDPWR_MIIMDCLK_NAME
+               //#define RK30SDK_WIFI_GPIO_RESET_IOMUX_FGPIO     GPIO3D_GPIO3D1
+
+               #else
+               #define RK30SDK_WIFI_GPIO_POWER_N               RK30_PIN0_PA5
+               #define RK30SDK_WIFI_GPIO_POWER_ENABLE_VALUE    GPIO_HIGH
+               //#define RK30SDK_WIFI_GPIO_POWER_PIN_NAME        GPIO3D0_SDMMC1PWREN_MIIMD_NAME
+               //#define RK30SDK_WIFI_GPIO_POWER_IOMUX_FGPIO     GPIO3D_GPIO3D0
+               #define RK30SDK_WIFI_GPIO_RESET_N               RK30_PIN3_PD1
+               #define RK30SDK_WIFI_GPIO_RESET_ENABLE_VALUE    GPIO_HIGH
+               #define RK30SDK_WIFI_GPIO_RESET_PIN_NAME        GPIO3D1_SDMMC1BACKENDPWR_MIIMDCLK_NAME
+               #define RK30SDK_WIFI_GPIO_RESET_IOMUX_FGPIO     GPIO3D_GPIO3D1  
+               #endif
+
     #endif   
 #elif defined(CONFIG_ARCH_RK2928) //refer to file ./arch/arm/mach-rk2928/include/mach/iomux.h
     #define WIFI_HOST_WAKE RK2928_PIN3_PC0