diff options
author | Zhiyong Tao <zhiyong.tao@mediatek.com> | 2018-09-08 14:07:36 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-09-19 00:53:34 +0300 |
commit | 29686f0151dff68e623475d449f99d8124825b17 (patch) | |
tree | 976b7a491dc9ccaf1eadcd66806991f255ef9552 /drivers/pinctrl/mediatek | |
parent | 79348f6fb713a339be94ed14dfa210d5d20cf17d (diff) | |
download | linux-29686f0151dff68e623475d449f99d8124825b17.tar.xz |
pintcrl: mediatek: add pull tweaks for I2C related pins on MT8183
This patch provides the advanced pull for I2C used pins on MT8183.
Signed-off-by: Zhiyong Tao <zhiyong.tao@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/mediatek')
-rw-r--r-- | drivers/pinctrl/mediatek/pinctrl-mt8183.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8183.c b/drivers/pinctrl/mediatek/pinctrl-mt8183.c index bd3f00bcb300..9d5aa277911c 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mt8183.c +++ b/drivers/pinctrl/mediatek/pinctrl-mt8183.c @@ -397,10 +397,22 @@ static const struct mtk_pin_field_calc mt8183_pin_r0_range[] = { PIN_FIELD_BASE(40, 40, 3, 0x0C0, 0x10, 20, 1), PIN_FIELD_BASE(41, 41, 3, 0x0C0, 0x10, 24, 1), PIN_FIELD_BASE(42, 42, 3, 0x0C0, 0x10, 28, 1), + PIN_FIELD_BASE(48, 48, 3, 0x0F0, 0x10, 18, 1), + PIN_FIELD_BASE(49, 49, 3, 0x0F0, 0x10, 13, 1), + PIN_FIELD_BASE(50, 50, 4, 0x0F0, 0x10, 10, 1), + PIN_FIELD_BASE(51, 51, 4, 0x0F0, 0x10, 5, 1), + PIN_FIELD_BASE(81, 81, 5, 0x0F0, 0x10, 7, 1), + PIN_FIELD_BASE(82, 82, 5, 0x0F0, 0x10, 5, 1), + PIN_FIELD_BASE(83, 83, 5, 0x0F0, 0x10, 15, 1), + PIN_FIELD_BASE(84, 84, 5, 0x0F0, 0x10, 17, 1), PIN_FIELD_BASE(91, 91, 6, 0x0C0, 0x10, 0, 1), PIN_FIELD_BASE(92, 92, 6, 0x0C0, 0x10, 4, 1), PIN_FIELD_BASE(93, 93, 6, 0x0C0, 0x10, 8, 1), PIN_FIELD_BASE(94, 94, 6, 0x0C0, 0x10, 12, 1), + PIN_FIELD_BASE(103, 103, 6, 0x0F0, 0x10, 20, 1), + PIN_FIELD_BASE(104, 104, 6, 0x0F0, 0x10, 10, 1), + PIN_FIELD_BASE(105, 105, 6, 0x0F0, 0x10, 22, 1), + PIN_FIELD_BASE(106, 106, 6, 0x0F0, 0x10, 12, 1), PIN_FIELD_BASE(122, 122, 8, 0x0C0, 0x10, 0, 1), PIN_FIELD_BASE(123, 123, 8, 0x0C0, 0x10, 4, 1), PIN_FIELD_BASE(124, 124, 8, 0x0C0, 0x10, 8, 1), @@ -430,10 +442,22 @@ static const struct mtk_pin_field_calc mt8183_pin_r1_range[] = { PIN_FIELD_BASE(40, 40, 3, 0x0C0, 0x10, 21, 1), PIN_FIELD_BASE(41, 41, 3, 0x0C0, 0x10, 25, 1), PIN_FIELD_BASE(42, 42, 3, 0x0C0, 0x10, 29, 1), + PIN_FIELD_BASE(48, 48, 3, 0x0F0, 0x10, 19, 1), + PIN_FIELD_BASE(49, 49, 3, 0x0F0, 0x10, 14, 1), + PIN_FIELD_BASE(50, 50, 4, 0x0F0, 0x10, 11, 1), + PIN_FIELD_BASE(51, 51, 4, 0x0F0, 0x10, 6, 1), + PIN_FIELD_BASE(81, 81, 5, 0x0F0, 0x10, 8, 1), + PIN_FIELD_BASE(82, 82, 5, 0x0F0, 0x10, 6, 1), + PIN_FIELD_BASE(83, 83, 5, 0x0F0, 0x10, 16, 1), + PIN_FIELD_BASE(84, 84, 5, 0x0F0, 0x10, 18, 1), PIN_FIELD_BASE(91, 91, 6, 0x0C0, 0x10, 1, 1), PIN_FIELD_BASE(92, 92, 6, 0x0C0, 0x10, 5, 1), PIN_FIELD_BASE(93, 93, 6, 0x0C0, 0x10, 9, 1), PIN_FIELD_BASE(94, 94, 6, 0x0C0, 0x10, 13, 1), + PIN_FIELD_BASE(103, 103, 6, 0x0F0, 0x10, 21, 1), + PIN_FIELD_BASE(104, 104, 6, 0x0F0, 0x10, 11, 1), + PIN_FIELD_BASE(105, 105, 6, 0x0F0, 0x10, 23, 1), + PIN_FIELD_BASE(106, 106, 6, 0x0F0, 0x10, 13, 1), PIN_FIELD_BASE(122, 122, 8, 0x0C0, 0x10, 1, 1), PIN_FIELD_BASE(123, 123, 8, 0x0C0, 0x10, 5, 1), PIN_FIELD_BASE(124, 124, 8, 0x0C0, 0x10, 9, 1), |