aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-exynos.h
diff options
context:
space:
mode:
authorTomasz Figa <t.figa@samsung.com>2012-10-11 04:11:15 -0400
committerLinus Walleij <linus.walleij@linaro.org>2012-10-15 03:10:12 -0400
commit1b6056d6db2426cd612f03dabacf655ecb6a27ae (patch)
treecc7146778c548af33a845e2523ad273ec7410774 /drivers/pinctrl/pinctrl-exynos.h
parent6defe9a0ddc59aa2302473aa3c8b3fdb543fdc1b (diff)
pinctrl: samsung: Include bank-specific eint offset in bank struct
Some SoCs, like Exynos4x12, have non-sequential layout of EINT control registers and so current way of calculating register addresses does not work correctly for them. This patch adds eint_offset field to samsung_pin_bank struct and modifies the driver to use it instead of calculating the offsets from bank index. Signed-off-by: Tomasz Figa <t.figa@samsung.com> Reviewed-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Thomas Abraham <thomas.abraham@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-exynos.h')
-rw-r--r--drivers/pinctrl/pinctrl-exynos.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-exynos.h b/drivers/pinctrl/pinctrl-exynos.h
index 2de4a2936e9c..5d8e380fbadf 100644
--- a/drivers/pinctrl/pinctrl-exynos.h
+++ b/drivers/pinctrl/pinctrl-exynos.h
@@ -59,7 +59,7 @@
59 .name = id \ 59 .name = id \
60 } 60 }
61 61
62#define EXYNOS_PIN_BANK_EINTG(pins, reg, id) \ 62#define EXYNOS_PIN_BANK_EINTG(pins, reg, id, offs) \
63 { \ 63 { \
64 .pctl_offset = reg, \ 64 .pctl_offset = reg, \
65 .nr_pins = pins, \ 65 .nr_pins = pins, \
@@ -69,6 +69,7 @@
69 .conpdn_width = 2, \ 69 .conpdn_width = 2, \
70 .pudpdn_width = 2, \ 70 .pudpdn_width = 2, \
71 .eint_type = EINT_TYPE_GPIO, \ 71 .eint_type = EINT_TYPE_GPIO, \
72 .eint_offset = offs, \
72 .name = id \ 73 .name = id \
73 } 74 }
74 75