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

Commit 6b17a38f authored by Ajay Singh Parmar's avatar Ajay Singh Parmar
Browse files

msm: apq8084: Add HDMI GPIO mux



Adds the HDMI GPIO mux settings for APQ8084 to configure
MSM GPIO related to HDMI modules like CEC (Consumer
Electronics Control), DDC (Display Data Channel) CLK,
DDC Data and HPD (Hot Plug Detect).

Change-Id: I3e189c80d088d43b7a9df62767761a07ef592337
Signed-off-by: default avatarAjay Singh Parmar <aparmar@codeaurora.org>
parent 11c77eba
Loading
Loading
Loading
Loading
+50 −0
Original line number Diff line number Diff line
@@ -174,6 +174,55 @@ static struct gpiomux_setting hsic_sus_cfg = {
	.dir = GPIOMUX_OUT_LOW,
};

static struct gpiomux_setting hdmi_suspend_cfg = {
	.func = GPIOMUX_FUNC_GPIO,
	.drv = GPIOMUX_DRV_2MA,
	.pull = GPIOMUX_PULL_DOWN,
};

static struct gpiomux_setting hdmi_active_1_cfg = {
	.func = GPIOMUX_FUNC_1,
	.drv = GPIOMUX_DRV_2MA,
	.pull = GPIOMUX_PULL_UP,
};

static struct gpiomux_setting hdmi_active_2_cfg = {
	.func = GPIOMUX_FUNC_1,
	.drv = GPIOMUX_DRV_16MA,
	.pull = GPIOMUX_PULL_DOWN,
};

static struct msm_gpiomux_config msm_hdmi_configs[] __initdata = {
	{
		.gpio = 31,
		.settings = {
			[GPIOMUX_ACTIVE]    = &hdmi_active_1_cfg,
			[GPIOMUX_SUSPENDED] = &hdmi_suspend_cfg,
		},
	},
	{
		.gpio = 32,
		.settings = {
			[GPIOMUX_ACTIVE]    = &hdmi_active_1_cfg,
			[GPIOMUX_SUSPENDED] = &hdmi_suspend_cfg,
		},
	},
	{
		.gpio = 33,
		.settings = {
			[GPIOMUX_ACTIVE]    = &hdmi_active_1_cfg,
			[GPIOMUX_SUSPENDED] = &hdmi_suspend_cfg,
		},
	},
	{
		.gpio = 34,
		.settings = {
			[GPIOMUX_ACTIVE]    = &hdmi_active_2_cfg,
			[GPIOMUX_SUSPENDED] = &hdmi_suspend_cfg,
		},
	},
};

static struct msm_gpiomux_config apq8084_hsic_configs[] = {
	{
		.gpio = 134,               /*HSIC_STROBE */
@@ -289,4 +338,5 @@ void __init apq8084_init_gpiomux(void)
	msm_gpiomux_install(mdm_configs, ARRAY_SIZE(mdm_configs));
	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));
}