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

Commit b9c6dc4c authored by Bansidhar Gopalachari's avatar Bansidhar Gopalachari
Browse files

msm: 8610: gpiomux: Configure nfc gpio clock source



Add gpio clock source and remove ethernet interrupt which is used
by NFC as clock

Change-Id: I50e9e4b5c1602019667a69b04244e03fb3bbf7a2
Acked-by: default avatarUmesh Jagga <ujagga@qti.qualcomm.com>
Signed-off-by: default avatarBansidhar Gopalachari <bansid@codeaurora.org>
parent 55914710
Loading
Loading
Loading
Loading
+18 −7
Original line number Diff line number Diff line
@@ -36,6 +36,17 @@ static struct gpiomux_setting gpio_cam_i2c_config = {
	.pull = GPIOMUX_PULL_NONE,
};

static struct gpiomux_setting gpio_nfc_config = {
	.func = GPIOMUX_FUNC_2,
	.drv  = GPIOMUX_DRV_2MA,
	.pull = GPIOMUX_PULL_NONE,
};
static struct gpiomux_setting gpio_nfc_sus_config = {
	.func = GPIOMUX_FUNC_2,
	.drv  = GPIOMUX_DRV_2MA,
	.pull = GPIOMUX_PULL_DOWN,
};

static struct gpiomux_setting atmel_int_act_cfg = {
	.func = GPIOMUX_FUNC_GPIO,
	.drv = GPIOMUX_DRV_8MA,
@@ -227,6 +238,13 @@ static struct msm_gpiomux_config msm_blsp_configs[] __initdata = {
			[GPIOMUX_SUSPENDED] = &gpio_cam_i2c_config,
		},
	},
	{
		.gpio      = 78,	/* NFC CLK */
		.settings = {
			[GPIOMUX_ACTIVE] = &gpio_nfc_config,
			[GPIOMUX_SUSPENDED] = &gpio_nfc_sus_config,
		},
	},
};

static struct msm_gpiomux_config msm_atmel_configs[] __initdata = {
@@ -543,13 +561,6 @@ static struct msm_gpiomux_config msm_interrupt_configs[] __initdata = {
			[GPIOMUX_SUSPENDED] = &interrupt_gpio_suspend_pullup,
		},
	},
	{
		.gpio = 78,	/*ETH_INT */
		.settings = {
			[GPIOMUX_ACTIVE]    = &interrupt_gpio_active,
			[GPIOMUX_SUSPENDED] = &interrupt_gpio_suspend_pullup,
		},
	},
	{
		.gpio = 80,	/*ALSP_INT */
		.settings = {