aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/mediatek
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2019-06-20 20:30:37 +0200
committerLinus Walleij <linus.walleij@linaro.org>2019-06-25 15:42:31 +0200
commit4b36082e2e09c2769710756390d54cfca563ed96 (patch)
tree22bdf79cd7ffdbc51ad283e704929c4dab384265 /drivers/pinctrl/mediatek
parentpinctrl: ocelot: fix gpio direction for pins after 31 (diff)
downloadlinux-dev-4b36082e2e09c2769710756390d54cfca563ed96.tar.xz
linux-dev-4b36082e2e09c2769710756390d54cfca563ed96.zip
pinctrl: ocelot: fix pinmuxing for pins after 31
The actual layout for OCELOT_GPIO_ALT[01] when there are more than 32 pins is interleaved, i.e. OCELOT_GPIO_ALT0[0], OCELOT_GPIO_ALT1[0], OCELOT_GPIO_ALT0[1], OCELOT_GPIO_ALT1[1]. Introduce a new REG_ALT macro to facilitate the register offset calculation and use it where necessary. Fixes: da801ab56ad8 pinctrl: ocelot: add MSCC Jaguar2 support Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/mediatek')
0 files changed, 0 insertions, 0 deletions