]> git.dujemihanovic.xyz Git - u-boot.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)
commit92c4a95ec7986a31f37dbf540dd8fda5927ac659
treecc62d20f5009b8b53535537bbb67e001a1926212
parent87069c79e830b2ab909537946a1e1db0e5fe7d8c
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