forked from rubenslte/android_kernel_samsung_msm8226
bluetooth: set optimum current requirement for vdd la
Add change in bluetooth power module to specify load current requirement for regulator vdd la during Bluetooth turn on. Change-Id: Iddd602b2ea45be62cb3786cc482e3ce12ae6302b Signed-off-by: Pradeep Panigrahi <pradeepp@codeaurora.org>
This commit is contained in:
committed by
Bryan Huntsman
parent
1c61bd675b
commit
3f00c06a39
@@ -30,7 +30,7 @@
|
||||
#define BT_PWR_DBG(fmt, arg...) pr_debug("%s: " fmt "\n" , __func__ , ## arg)
|
||||
#define BT_PWR_INFO(fmt, arg...) pr_info("%s: " fmt "\n" , __func__ , ## arg)
|
||||
#define BT_PWR_ERR(fmt, arg...) pr_err("%s: " fmt "\n" , __func__ , ## arg)
|
||||
|
||||
#define BT_VDD_PA_CURRENT 60000
|
||||
|
||||
static struct of_device_id bt_power_match_table[] = {
|
||||
{ .compatible = "qca,ar3002" },
|
||||
@@ -213,6 +213,9 @@ static int bluetooth_power(int on)
|
||||
BT_PWR_ERR("bt_power vddpa config failed");
|
||||
goto vdd_pa_fail;
|
||||
}
|
||||
regulator_set_optimum_mode(
|
||||
bt_power_pdata->bt_vdd_pa->reg,
|
||||
BT_VDD_PA_CURRENT);
|
||||
}
|
||||
if (bt_power_pdata->bt_chip_pwd) {
|
||||
rc = bt_configure_vreg(bt_power_pdata->bt_chip_pwd);
|
||||
|
||||
Reference in New Issue
Block a user