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

Commit 3885371b authored by Ajay Singh Parmar's avatar Ajay Singh Parmar
Browse files

msm: apq8084: Add HDMI GPIO mux



Configure GPIO 27, 83 and 85 for HDMI Mux
enable for APQ8084 Liquid HDMI mainboard or
dock selection.

Change-Id: I054070ffbf43cddff7a355782fff464125dcdc61
Signed-off-by: default avatarAjay Singh Parmar <aparmar@codeaurora.org>
parent 491ad79b
Loading
Loading
Loading
Loading
+42 −0
Original line number Diff line number Diff line
@@ -192,6 +192,27 @@ static struct gpiomux_setting hdmi_active_2_cfg = {
	.pull = GPIOMUX_PULL_DOWN,
};

static struct gpiomux_setting hdmi_active_mux_lpm_cfg = {
	.func = GPIOMUX_FUNC_1,
	.drv = GPIOMUX_DRV_8MA,
	.pull = GPIOMUX_PULL_UP,
	.dir = GPIOMUX_OUT_HIGH,
};

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

static struct gpiomux_setting hdmi_active_mux_sel_cfg = {
	.func = GPIOMUX_FUNC_GPIO,
	.drv = GPIOMUX_DRV_2MA,
	.pull = GPIOMUX_PULL_DOWN,
	.dir = GPIOMUX_OUT_LOW,
};

static struct msm_gpiomux_config msm_hdmi_configs[] __initdata = {
	{
		.gpio = 31,
@@ -221,6 +242,27 @@ static struct msm_gpiomux_config msm_hdmi_configs[] __initdata = {
			[GPIOMUX_SUSPENDED] = &hdmi_suspend_cfg,
		},
	},
	{
		.gpio = 27,
		.settings = {
			[GPIOMUX_ACTIVE]    = &hdmi_active_mux_lpm_cfg,
			[GPIOMUX_SUSPENDED] = &hdmi_suspend_cfg,
		},
	},
	{
		.gpio = 83,
		.settings = {
			[GPIOMUX_ACTIVE]    = &hdmi_active_mux_en_cfg,
			[GPIOMUX_SUSPENDED] = &hdmi_suspend_cfg,
		},
	},
	{
		.gpio = 85,
		.settings = {
			[GPIOMUX_ACTIVE]    = &hdmi_active_mux_sel_cfg,
			[GPIOMUX_SUSPENDED] = &hdmi_suspend_cfg,
		},
	},
};

static struct msm_gpiomux_config apq8084_hsic_configs[] = {