From: Niklas Cassel Date: Tue, 1 Mar 2022 10:35:45 +0000 (+0000) Subject: pinctrl: k210: Fix bias-pull-up X-Git-Tag: v2025.01-rc5-pxa1908~1500^2 X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=aa34e13346cf727197981c599f688b406005049a;p=u-boot.git pinctrl: k210: Fix bias-pull-up Using bias-pull-up would actually cause the pin to have its pull-down enabled. Fix this. Original Linux patch by Sean Anderson: https://lore.kernel.org/linux-gpio/20220209182822.640905-1-seanga2@gmail.com/ Fixes: 7224d5ccf8e1 ("pinctrl: Add support for Kendryte K210 FPIOA") Signed-off-by: Niklas Cassel Reviewed-by: Sean Anderson --- diff --git a/drivers/pinctrl/pinctrl-k210.c b/drivers/pinctrl/pinctrl-k210.c index f809149102..13f0a34268 100644 --- a/drivers/pinctrl/pinctrl-k210.c +++ b/drivers/pinctrl/pinctrl-k210.c @@ -536,7 +536,7 @@ static int k210_pc_pinconf_set(struct udevice *dev, unsigned pin_selector, break; case PIN_CONFIG_BIAS_PULL_UP: if (argument) - val |= K210_PC_PD; + val |= K210_PC_PU; else return -EINVAL; break;