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

Commit f004a753 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "board: samarium: add SD card detect gpiomux configuration"

parents 0f4f46ff 833213d0
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
@@ -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;
@@ -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));
}