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

Commit 66147f44 authored by Manoj Rao's avatar Manoj Rao
Browse files

msmsamarium: gpio: Install display specific gpios



Add new display specific gpios in the list of gpiomux
configure entries. These gpios are needed for different
functionalities of display such as panel enable,
back-light power.

Change-Id: I472b8381ae9483b13caf55191c15532d9661a02d
Signed-off-by: default avatarManoj Rao <manojraj@codeaurora.org>
parent a4623bef
Loading
Loading
Loading
Loading
+32 −0
Original line number Diff line number Diff line
@@ -124,6 +124,37 @@ static struct msm_gpiomux_config msm_blsp_configs[] __initdata = {
	},
};


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

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

static struct msm_gpiomux_config msm_lcd_configs[] __initdata = {
	{
		.gpio = 102,			/* BKLT ENABLE */
		.settings = {
			[GPIOMUX_ACTIVE]    = &lcd_en_act_cfg,
			[GPIOMUX_SUSPENDED] = &lcd_en_sus_cfg,
		},
	},
	{
		.gpio = 82,			/* DISPLAY ENABLE */
		.settings = {
			[GPIOMUX_ACTIVE]    = &lcd_en_act_cfg,
			[GPIOMUX_SUSPENDED] = &lcd_en_sus_cfg,
		},
	},
};

void __init msmsamarium_init_gpiomux(void)
{
	int rc;
@@ -138,4 +169,5 @@ void __init msmsamarium_init_gpiomux(void)
	msm_gpiomux_install(msm_eth_configs, ARRAY_SIZE(msm_eth_configs));
#endif
	msm_gpiomux_install(msm_blsp_configs, ARRAY_SIZE(msm_blsp_configs));
	msm_gpiomux_install(msm_lcd_configs, ARRAY_SIZE(msm_lcd_configs));
}