summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/qcom/pinctrl-msm.h
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@linaro.org>2018-09-25 01:17:46 +0300
committerLinus Walleij <linus.walleij@linaro.org>2018-09-26 10:30:43 +0300
commita46d5e98190d055044418a734cb3b2fa04146a80 (patch)
treeb33c2a2d434e487b0a621018ec510ac453a4dbe6 /drivers/pinctrl/qcom/pinctrl-msm.h
parent6c73698904aa258fce657eb7332593e156ab0c86 (diff)
downloadlinux-a46d5e98190d055044418a734cb3b2fa04146a80.tar.xz
pinctrl: qcom: Support dispersed tiles
On some new platforms the tiles have been placed too far apart to be covered in a single ioremap. Turn "regs" into an array of base addresses and make the pingroup carry the information about which tile the pin resides in. For existing platforms we map the first entry regs and the existing pingroups will all use tile 0, meaning that there's no functional change. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/qcom/pinctrl-msm.h')
-rw-r--r--drivers/pinctrl/qcom/pinctrl-msm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/pinctrl/qcom/pinctrl-msm.h b/drivers/pinctrl/qcom/pinctrl-msm.h
index 9b9feea540ff..0ad4bc55e2e1 100644
--- a/drivers/pinctrl/qcom/pinctrl-msm.h
+++ b/drivers/pinctrl/qcom/pinctrl-msm.h
@@ -76,6 +76,8 @@ struct msm_pingroup {
u32 intr_status_reg;
u32 intr_target_reg;
+ unsigned int tile:2;
+
unsigned mux_bit:5;
unsigned pull_bit:5;
@@ -117,6 +119,8 @@ struct msm_pinctrl_soc_data {
unsigned ngroups;
unsigned ngpios;
bool pull_no_keeper;
+ const char **tiles;
+ unsigned int ntiles;
};
int msm_pinctrl_probe(struct platform_device *pdev,