it50 bt io change
authorlhh <lhh@rock-chips.com>
Thu, 9 Sep 2010 14:26:23 +0000 (22:26 +0800)
committerlhh <lhh@rock-chips.com>
Thu, 9 Sep 2010 14:26:23 +0000 (22:26 +0800)
arch/arm/mach-rk2818/board-infoit50.c
arch/arm/mach-rk2818/board-infosdk-rfkill.c

index 8f8fe1060179d6cfb3111a7319a11d18d6def213..32e84363f691dfaf791dcd49b9e085f764964f33 100755 (executable)
@@ -226,9 +226,9 @@ static int info_wifi_status(struct device *dev)
 static int info_wifi_status_register(void (*callback)(int card_present, void *dev_id), void *dev_id) 
 {
        if(wifi_status_cb)
-               return -EAGAIN;
-        wifi_status_cb = callback;
-        wifi_status_cb_devid = dev_id;
+               return -EAGAIN;
+       wifi_status_cb = callback;
+       wifi_status_cb_devid = dev_id;
        return 0;
 }
 
@@ -258,7 +258,7 @@ static int info_wifi_power(int on)
        }
 
        info_wifi_power_state = on;
-        return 0;
+       return 0;
 }
 
 static int info_wifi_reset_state;
@@ -285,12 +285,12 @@ static int info_wifi_set_carddetect(int val)
 
 static struct wifi_platform_data info_wifi_control = {
        .set_power = info_wifi_power,
-        .set_reset = info_wifi_reset,
-        .set_carddetect = info_wifi_set_carddetect,
+       .set_reset = info_wifi_reset,
+       .set_carddetect = info_wifi_set_carddetect,
 };
 static struct platform_device info_wifi_device = {
        .name = "bcm4329_wlan",
-        .id = 1,
+       .id = 1,
        .dev = {
                .platform_data = &info_wifi_control,
          },
@@ -363,51 +363,11 @@ struct rk2818_gpio_expander_info  extgpio_tca6424_settinginfo[] = {
                .pin_type                       = GPIO_OUT,
                .pin_value                      = GPIO_LOW,
        },
-       {
-               .gpio_num               = TCA6424_P02,// charge check
-               .pin_type           = GPIO_IN,
-       },
        {
                .gpio_num               = TCA6424_P03, ///sensor power
                .pin_type           = GPIO_OUT,
                .pin_value                      = GPIO_LOW,
        },
-       {
-               .gpio_num               = TCA6424_P04,// tp3
-               .pin_type           = GPIO_OUT,
-               .pin_value                      = GPIO_LOW,
-       },
-       {
-               .gpio_num               = TCA6424_P05,
-               .pin_type           = GPIO_OUT,
-               .pin_value                      = GPIO_LOW,
-       }, 
-       {
-               .gpio_num               = TCA6424_P11,
-               .pin_type           = GPIO_OUT,
-               .pin_value                      = GPIO_HIGH,
-       }, 
-       {
-               .gpio_num               = TCA6424_P12,
-               .pin_type           = GPIO_IN,
-               //.pin_value                    =GPIO_HIGH,
-       },
-
-       {
-               .gpio_num               = TCA6424_P13,// tp3
-               .pin_type           = GPIO_IN,
-               //.pin_value                    =GPIO_HIGH,
-       },
-       {
-               .gpio_num               = TCA6424_P14,
-               .pin_type           = GPIO_IN,
-               //.pin_value                    =GPIO_HIGH,
-       },
-       {
-               .gpio_num               = TCA6424_P15,// tp3
-               .pin_type           = GPIO_IN,
-               //.pin_value                    =GPIO_HIGH,
-       },
        {
                .gpio_num               = TCA6424_P12,// 3G PowerOn
                .pin_type           = GPIO_OUT,
index 3806bd48f0467afa0c4dc633c1e40c64e0092ff6..0f7476580c1429e71633490d7edc544dfba5112d 100755 (executable)
 #include <asm/uaccess.h>
 #include <mach/gpio.h>
 
-#if 1
+#if 0
 #define DBG(x...)   printk(KERN_INFO x)
 #else
 #define DBG(x...)
 #endif
 
+#ifdef CONFIG_MACH_RK2818INFO_IT50
+#define INFO_BT_GPIO_POWER_N   TCA6424_P02
+#define INFO_BT_GPIO_RESET_N   TCA6424_P14
+#else
 #define INFO_BT_GPIO_POWER_N   TCA6424_P25
 #define INFO_BT_GPIO_RESET_N   TCA6424_P22
-
+#endif
 static struct rfkill *bt_rfk;
 static const char bt_name[] = "bcm4329";
 extern int info_bt_power_state;