From: hwg Date: Tue, 8 Jan 2013 15:05:57 +0000 (+0800) Subject: wifi: support rk2928 mtk 5931 6622 15x15 modules bt power controle X-Git-Tag: firefly_0821_release~7984 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ea852b6fbb0c1728fb032aea3b1dfdda64600823;p=firefly-linux-kernel-4.4.55.git wifi: support rk2928 mtk 5931 6622 15x15 modules bt power controle --- diff --git a/drivers/mtk_wcn_bt/bt_plat_smdk.c b/drivers/mtk_wcn_bt/bt_plat_smdk.c index 3af0cd10ec3b..4948493ba6e7 100755 --- a/drivers/mtk_wcn_bt/bt_plat_smdk.c +++ b/drivers/mtk_wcn_bt/bt_plat_smdk.c @@ -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(); if(pdata->irq_gpio.enable == GPIO_LOW) - trigger = IRQF_TRIGGER_RISING; + trigger = IRQF_TRIGGER_LOW; iRet = request_irq(irq_num, mt_bt_eirq_handler, trigger, "BT_INT_B", NULL); @@ -125,6 +125,10 @@ int mt_bt_power_init(void) gpio_direction_output(pdata->reset_gpio.io, 0); msleep(200); + /* PWR_EN pull up */ + //if(pdata->power_gpio.io != INVALID_GPIO) + // gpio_direction_output(pdata->power_gpio.io, 0); + //msleep(200); /* RESET pull up */ if(pdata->reset_gpio.io != INVALID_GPIO) gpio_direction_output(pdata->reset_gpio.io, 1);