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

Commit c2991be7 authored by Maulik Shah's avatar Maulik Shah Committed by Gerrit - the friendly Code Review server
Browse files

pinctrl: qcom: Update sdm670 direct connect interrupts



Update direct connect interrupt information for sdm670.

Change-Id: I93a9a5a0f1e4470fbbd575875f6b2bfc1f379c79
Signed-off-by: default avatarMaulik Shah <mkshah@codeaurora.org>
parent d94e9af7
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -54,6 +54,8 @@
		.intr_cfg_reg = base + 0x8 + REG_SIZE * id,	\
		.intr_status_reg = base + 0xc + REG_SIZE * id,	\
		.intr_target_reg = base + 0x8 + REG_SIZE * id,	\
		.dir_conn_reg = (base == NORTH) ? base + 0xa3000 : \
			((base == SOUTH) ? base + 0xa6000 : base + 0xa4000), \
		.mux_bit = 2,			\
		.pull_bit = 0,			\
		.drv_bit = 6,			\
@@ -68,6 +70,7 @@
		.intr_polarity_bit = 1,		\
		.intr_detection_bit = 2,	\
		.intr_detection_width = 2,	\
		.dir_conn_en_bit = 8,	        \
	}

#define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv)	\
@@ -1651,6 +1654,14 @@ static const struct msm_dir_conn sdm670_dir_conn[] = {
	{132, 621},
	{133, 622},
	{145, 623},
	{0, 216},
	{0, 215},
	{0, 214},
	{0, 213},
	{0, 212},
	{0, 211},
	{0, 210},
	{0, 209},
};

static const struct msm_pinctrl_soc_data sdm670_pinctrl = {
@@ -1663,6 +1674,7 @@ static const struct msm_pinctrl_soc_data sdm670_pinctrl = {
	.ngpios = 150,
	.dir_conn = sdm670_dir_conn,
	.n_dir_conns = ARRAY_SIZE(sdm670_dir_conn),
	.dir_conn_irq_base = 216,
};

static int sdm670_pinctrl_probe(struct platform_device *pdev)