Loading arch/arm/mach-msm/board-samarium-gpiomux.c +25 −0 Original line number Diff line number Diff line Loading @@ -227,6 +227,30 @@ static struct msm_gpiomux_config msm_touch_configs[] __initdata = { }, }; static struct gpiomux_setting sd_card_det_active_config = { .func = GPIOMUX_FUNC_GPIO, .drv = GPIOMUX_DRV_2MA, .pull = GPIOMUX_PULL_NONE, .dir = GPIOMUX_IN, }; static struct gpiomux_setting sd_card_det_suspend_config = { .func = GPIOMUX_FUNC_GPIO, .drv = GPIOMUX_DRV_2MA, .pull = GPIOMUX_PULL_UP, .dir = GPIOMUX_IN, }; static struct msm_gpiomux_config sd_card_det[] __initdata = { { .gpio = 62, .settings = { [GPIOMUX_ACTIVE] = &sd_card_det_active_config, [GPIOMUX_SUSPENDED] = &sd_card_det_suspend_config, }, }, }; void __init msmsamarium_init_gpiomux(void) { int rc; Loading @@ -243,4 +267,5 @@ void __init msmsamarium_init_gpiomux(void) msm_gpiomux_install(msm_blsp_configs, ARRAY_SIZE(msm_blsp_configs)); msm_gpiomux_install(msm_lcd_configs, ARRAY_SIZE(msm_lcd_configs)); msm_gpiomux_install(msm_touch_configs, ARRAY_SIZE(msm_touch_configs)); msm_gpiomux_install(sd_card_det, ARRAY_SIZE(sd_card_det)); } Loading
arch/arm/mach-msm/board-samarium-gpiomux.c +25 −0 Original line number Diff line number Diff line Loading @@ -227,6 +227,30 @@ static struct msm_gpiomux_config msm_touch_configs[] __initdata = { }, }; static struct gpiomux_setting sd_card_det_active_config = { .func = GPIOMUX_FUNC_GPIO, .drv = GPIOMUX_DRV_2MA, .pull = GPIOMUX_PULL_NONE, .dir = GPIOMUX_IN, }; static struct gpiomux_setting sd_card_det_suspend_config = { .func = GPIOMUX_FUNC_GPIO, .drv = GPIOMUX_DRV_2MA, .pull = GPIOMUX_PULL_UP, .dir = GPIOMUX_IN, }; static struct msm_gpiomux_config sd_card_det[] __initdata = { { .gpio = 62, .settings = { [GPIOMUX_ACTIVE] = &sd_card_det_active_config, [GPIOMUX_SUSPENDED] = &sd_card_det_suspend_config, }, }, }; void __init msmsamarium_init_gpiomux(void) { int rc; Loading @@ -243,4 +267,5 @@ void __init msmsamarium_init_gpiomux(void) msm_gpiomux_install(msm_blsp_configs, ARRAY_SIZE(msm_blsp_configs)); msm_gpiomux_install(msm_lcd_configs, ARRAY_SIZE(msm_lcd_configs)); msm_gpiomux_install(msm_touch_configs, ARRAY_SIZE(msm_touch_configs)); msm_gpiomux_install(sd_card_det, ARRAY_SIZE(sd_card_det)); }