linux/drivers/pinctrl/sunxi
Krzysztof Adamski be2d107f44 pinctrl: sunxi: Use pin number when calling sunxi_pmx_set
sunxi_pmx_set accepts pin number and then calculates offset by
subtracting pin_base from it. sunxi_pinctrl_gpio_get, on the other hand,
gets offset so we have to convert it to pin number so we won't get
negative value in sunxi_pmx_set.

This was only used on A10 so far, where there is only one GPIO chip with
pin_base set to 0 so it didn't matter. However H3 also requires this
workaround but have two pinmux sections, triggering problem for PL port.

Signed-off-by: Krzysztof Adamski <k@japko.eu>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2016-02-11 14:30:29 +01:00
..
Kconfig pinctrl: sunxi: Add H3 R_PIO controller support 2016-02-11 14:29:24 +01:00
Makefile pinctrl: sunxi: Add H3 R_PIO controller support 2016-02-11 14:29:24 +01:00
pinctrl-sun4i-a10.c pinctrl: sun4i: add spdif to pin description. 2015-08-13 16:03:21 +02:00
pinctrl-sun5i-a10s.c pinctrl: sun5i: Fix a10s pwm1 pinctrl mapping 2015-10-02 04:06:01 -07:00
pinctrl-sun5i-a13.c pinctrl: constify of_device_id array 2015-03-27 09:58:35 +01:00
pinctrl-sun6i-a31-r.c pinctrl: sunxi: Add irq pinmuxing to sun6i "r" pincontroller 2015-10-23 10:13:30 +02:00
pinctrl-sun6i-a31.c pinctrl: constify of_device_id array 2015-03-27 09:58:35 +01:00
pinctrl-sun6i-a31s.c pinctrl: Remove .owner field 2015-06-04 10:12:42 +02:00
pinctrl-sun7i-a20.c pinctrl: constify of_device_id array 2015-03-27 09:58:35 +01:00
pinctrl-sun8i-a23-r.c pinctrl: constify of_device_id array 2015-03-27 09:58:35 +01:00
pinctrl-sun8i-a23.c pinctrl: constify of_device_id array 2015-03-27 09:58:35 +01:00
pinctrl-sun8i-a33.c pinctrl: sunxi: Add allwinner A33 PIO controller support 2015-06-04 10:32:11 +02:00
pinctrl-sun8i-a83t.c pinctrl: sunxi: add allwinner A83T PIO controller support 2015-10-02 04:09:44 -07:00
pinctrl-sun8i-h3-r.c pinctrl: sunxi: Add H3 R_PIO controller support 2016-02-11 14:29:24 +01:00
pinctrl-sun8i-h3.c pinctrl: sunxi: Add H3 PIO controller support 2015-12-11 10:15:33 +01:00
pinctrl-sun9i-a80-r.c pinctrl: sunxi: Add A80 special pin controller 2015-12-22 10:28:11 +01:00
pinctrl-sun9i-a80.c pinctrl: constify of_device_id array 2015-03-27 09:58:35 +01:00
pinctrl-sunxi.c pinctrl: sunxi: Use pin number when calling sunxi_pmx_set 2016-02-11 14:30:29 +01:00
pinctrl-sunxi.h pinctrl: sun4i: GPIOs configured as irq must be set to input before reading 2015-03-18 10:56:46 +01:00