wifi: support rk2928 mtk 5931 6622 15x15 modules bt power controle
authorhwg <hwg@rock-chips.com>
Tue, 8 Jan 2013 15:05:57 +0000 (23:05 +0800)
committerhwg <hwg@rock-chips.com>
Tue, 8 Jan 2013 15:05:57 +0000 (23:05 +0800)
drivers/mtk_wcn_bt/bt_plat_smdk.c

index 3af0cd10ec3b6c3a29e73b2d8dbb246c17e9f7df..4948493ba6e7636157f561637922fd21edf845e0 100755 (executable)
@@ -62,7 +62,7 @@ static int mt_bt_request_irq(void)
     struct mt6622_platform_data *pdata = (struct mt6622_platform_data *)mt_bt_get_platform_data();\r
                \r
     if(pdata->irq_gpio.enable == GPIO_LOW)\r
-       trigger = IRQF_TRIGGER_RISING;\r
+       trigger = IRQF_TRIGGER_LOW;\r
     \r
     iRet = request_irq(irq_num, mt_bt_eirq_handler, \r
         trigger, "BT_INT_B", NULL);\r
@@ -125,6 +125,10 @@ int mt_bt_power_init(void)
                gpio_direction_output(pdata->reset_gpio.io, 0);\r
            msleep(200);\r
            \r
+           /* PWR_EN pull up */\r
+           //if(pdata->power_gpio.io != INVALID_GPIO)\r
+           //  gpio_direction_output(pdata->power_gpio.io, 0);\r
+           //msleep(200);\r
            /* RESET pull up */\r
            if(pdata->reset_gpio.io != INVALID_GPIO)\r
                gpio_direction_output(pdata->reset_gpio.io, 1);\r