From ea852b6fbb0c1728fb032aea3b1dfdda64600823 Mon Sep 17 00:00:00 2001 From: hwg Date: Tue, 8 Jan 2013 23:05:57 +0800 Subject: [PATCH] wifi: support rk2928 mtk 5931 6622 15x15 modules bt power controle --- drivers/mtk_wcn_bt/bt_plat_smdk.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 2.34.1