pinctrl: s32cc: add update and overwrite options when setting pinconf
authorAndrei Stefanescu <andrei.stefanescu@oss.nxp.com>
Tue, 23 Jul 2024 13:18:32 +0000 (16:18 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 5 Aug 2024 08:17:43 +0000 (10:17 +0200)
commit0274d8098291d87f61f1f8e5b22214abb5324669
tree5658631c85435a60293a24733bbdc883b13fa648
parent522875e09ba5ca59d39040b3536f48540c177636
pinctrl: s32cc: add update and overwrite options when setting pinconf

The previous pinconf settings(made by the bootloader) need to be
overwritten when configuring the pinctrl of a driver during the boot
process.

Configuring the bias of a GPIO at runtime (e.g. pull-up) needs to
preserve the other settings unaltered.

This patch introduces changes to differentiate between the two cases.

Signed-off-by: Radu Pirea <radu-nicolae.pirea@nxp.com>
Signed-off-by: Florin Buica <florin.buica@nxp.com>
Signed-off-by: Andrei Stefanescu <andrei.stefanescu@oss.nxp.com>
Link: https://lore.kernel.org/20240723131832.1171036-4-andrei.stefanescu@oss.nxp.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/nxp/pinctrl-s32cc.c