linux/drivers/pinctrl/meson
Xingyu Chen e66dd48e8b pinctrl: meson: fix G12A ao pull registers base address
Since Meson G12A SoC, Introduce new ao registers AO_RTI_PULL_UP_EN_REG
and AO_GPIO_O.

These bits of controlling output level are remapped to the new register
AO_GPIO_O, and the AO_GPIO_O_EN_N support only controlling output enable.

These bits of controlling pull enable are remapped to the new register
AO_RTI_PULL_UP_EN_REG, and the AO_RTI_PULL_UP_REG support only controlling
pull type(up/down).

The new layout of ao gpio/pull registers is as follows:
- AO_GPIO_O_EN_N        [offset: 0x9 << 2]
- AO_GPIO_I             [offset: 0xa << 2]
- AO_RTI_PULL_UP_REG    [offset: 0xb << 2]
- AO_RTI_PULL_UP_EN_REG [offset: 0xc << 2]
- AO_GPIO_O             [offset: 0xd << 2]

From above, we can see ao GPIO registers region has been separated by the
ao pull registers. In order to ensure the continuity of the region on
software, the ao GPIO and ao pull registers use the same base address, but
can be identified by the offset.

Fixes: 29ae0952e8 ("pinctrl: meson-g12a: add pinctrl driver support")
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2019-01-21 14:49:57 +01:00
..
Kconfig pinctrl: meson-g12a: add pinctrl driver support 2018-08-29 10:34:53 +02:00
Makefile pinctrl: meson-g12a: add pinctrl driver support 2018-08-29 10:34:53 +02:00
pinctrl-meson8-pmx.c pinctrl: meson: rework pinmux ops 2017-10-16 23:14:10 +02:00
pinctrl-meson8-pmx.h pinctrl: meson: rework pinmux ops 2017-10-16 23:14:10 +02:00
pinctrl-meson8.c Pin control bulk changes for the v4.21 kernel cycle: 2019-01-01 13:19:16 -08:00
pinctrl-meson8b.c Pin control bulk changes for the v4.21 kernel cycle: 2019-01-01 13:19:16 -08:00
pinctrl-meson-axg-pmx.c pinctrl: meson-axg: Introduce a pinctrl pinmux ops for Meson-AXG SoC 2017-11-30 14:28:16 +01:00
pinctrl-meson-axg-pmx.h pinctrl: meson-axg: Introduce a pinctrl pinmux ops for Meson-AXG SoC 2017-11-30 14:28:16 +01:00
pinctrl-meson-axg.c pinctrl: meson: add gen_clk pins 2018-07-16 14:46:11 +02:00
pinctrl-meson-g12a.c pinctrl: meson-g12a: add pinctrl driver support 2018-08-29 10:34:53 +02:00
pinctrl-meson-gxbb.c pinctrl: meson: fix gxbb ao pull register bits 2018-11-05 09:33:22 +01:00
pinctrl-meson-gxl.c Pin control bulk changes for the v4.21 kernel cycle: 2019-01-01 13:19:16 -08:00
pinctrl-meson.c pinctrl: meson: fix G12A ao pull registers base address 2019-01-21 14:49:57 +01:00
pinctrl-meson.h pinctrl: Include <linux/gpio/driver.h> nothing else 2018-09-14 15:10:57 +02:00