Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59a583a6 authored by Meng Wang's avatar Meng Wang
Browse files

ASoC: codec: enable power supply for wcd9326 on apq8009



On apq8009 som board, power supply to wcd9326 is controlled by
GPIO. Add PMIC GPIO pinctrl enablement for it.

Change-Id: I93986516d5c41dccec3172a138be5b6bfe4098e2
Signed-off-by: default avatarMeng Wang <mengw@codeaurora.org>
parent f11bdb23
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
/* Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2011-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1069,6 +1069,9 @@ static int wcd9xxx_i2c_probe(struct i2c_client *client,
		if (client->dev.of_node)
			wcd9xxx->mclk_rate = pdata->mclk_rate;

		if (pdata->has_buck_vsel_gpio)
			msm_cdc_pinctrl_select_active_state(pdata->buck_vsel_ctl_np);

		wcd9xxx->num_of_supplies = pdata->num_supplies;
		ret = msm_cdc_init_supplies(wcd9xxx->dev, &wcd9xxx->supplies,
					    pdata->regulator,