pinctrl: sunxi: Add I/O bias setting for H6 R-PIO
authorSamuel Holland <samuel@sholland.org>
Wed, 13 Jul 2022 02:52:29 +0000 (21:52 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 18 Jul 2022 09:39:33 +0000 (11:39 +0200)
commitfc153c8f283bf5925615195fc9d4056414d7b168
tree58008e5d1342172d2c19b842b61ec060de7fde2a
parent329d32a9879a955c380bd70a0906a5140785b233
pinctrl: sunxi: Add I/O bias setting for H6 R-PIO

H6 requires I/O bias configuration on both of its PIO devices.
Previously it was only done for the main PIO.

The setting for Port L is at bit 0, so the bank calculation needs to
account for the pin base. Otherwise the wrong bit is used.

Fixes: cc62383fcebe ("pinctrl: sunxi: Support I/O bias voltage setting on H6")
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20220713025233.27248-3-samuel@sholland.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sunxi/pinctrl-sun50i-h6-r.c
drivers/pinctrl/sunxi/pinctrl-sunxi.c