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

Commit dc1526e4 authored by Ganesh Babu Kumaravel's avatar Ganesh Babu Kumaravel
Browse files

msm: enable wlan for 8084



GPIO 82 needs to be pulled up in order to enable WL_EN on
8084 platform so that qca6714 will be enabled.

Change-Id: I386429725286198174ab3fa248617fb0f570165f
CRs-fixed: 547529
Signed-off-by: default avatarGanesh Babu Kumaravel <kganesh@codeaurora.org>
parent 4f55d4d7
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -321,6 +321,23 @@ static struct msm_gpiomux_config apq8084_pri_ter_auxpcm_configs[] __initdata = {
	},
};

static struct gpiomux_setting wlan_en_cfg = {
	.func = GPIOMUX_FUNC_GPIO,
	.drv = GPIOMUX_DRV_16MA,
	.pull = GPIOMUX_PULL_UP,
	.dir = GPIOMUX_OUT_HIGH,
};

static struct msm_gpiomux_config msm_wlan_configs[] __initdata = {
	{
		.gpio = 82,			/* WLAN ENABLE */
		.settings = {
			[GPIOMUX_ACTIVE]    = &wlan_en_cfg,
			[GPIOMUX_SUSPENDED] = &wlan_en_cfg,
		},
	},
};

void __init apq8084_init_gpiomux(void)
{
	int rc;
@@ -339,4 +356,5 @@ void __init apq8084_init_gpiomux(void)
	msm_gpiomux_install(apq8084_pri_ter_auxpcm_configs,
			ARRAY_SIZE(apq8084_pri_ter_auxpcm_configs));
	msm_gpiomux_install(msm_hdmi_configs, ARRAY_SIZE(msm_hdmi_configs));
	msm_gpiomux_install(msm_wlan_configs, ARRAY_SIZE(msm_wlan_configs));
}