]> git.baikalelectronics.ru Git - uboot.git/commit
pinctrl: Add new function pinctrl_generic_set_state_prefix()
authorPali Rohár <pali@kernel.org>
Mon, 25 Jul 2022 11:56:08 +0000 (13:56 +0200)
committerStefan Roese <sr@denx.de>
Thu, 28 Jul 2022 06:41:44 +0000 (08:41 +0200)
commitf168d7f9ebacce56393580fde5c625842e6d5a65
treecc62d20f5009b8b53535537bbb67e001a1926212
parent37e4db0c0dd23c063a21598a4ba029736071cd95
pinctrl: Add new function pinctrl_generic_set_state_prefix()

This new function pinctrl_generic_set_state_prefix() behaves like
pinctrl_generic_set_state() but it takes third string argument which is
used as the prefix for each device tree string property.

This is needed for Marvell pinctrl drivers, becase Linux device tree files
have pinmux properties prefixed by "marvell," string.

This change allows to use generic U-Boot pinctrl functions for Armada 38x
pinctrl driver without need to copy+paste of the majority U-Boot pinctrl
code.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/pinctrl/pinctrl-generic.c
include/dm/pinctrl.h