Loading arch/arm/mach-msm/board-samarium-gpiomux.c +32 −0 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -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)); } Loading
arch/arm/mach-msm/board-samarium-gpiomux.c +32 −0 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -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)); }