]> git.dujemihanovic.xyz Git - u-boot.git/commit
pinctrl: rockchip: rk3188: Fix support for IOMUX_GPIO_ONLY flag
authorJonas Karlman <jonas@kwiboo.se>
Sun, 12 May 2024 12:16:14 +0000 (12:16 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 14 Jun 2024 09:02:49 +0000 (17:02 +0800)
commit4b488940f5d10833d8bd898db4b7615587a5f86e
tree112ea17331e220c53e1660278ecf87bb17b4d53a
parent62d0c3085e4836b6f3edf1d41201b0568960df26
pinctrl: rockchip: rk3188: Fix support for IOMUX_GPIO_ONLY flag

GPIO0_A0-A7 on RK3188 is IOMUX_GPIO_ONLY, however, trying to set gpio
mux return an -ENOTSUPP error code. Fix this by validating using the mux
function type and not the iomux flag.

Based on Linux commit c4a532dee6b6 ("pinctrl: rockchip: handle first
half of rk3188-bank0 correctly").

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/pinctrl/rockchip/pinctrl-rockchip-core.c