diff options
author | Pali Rohár <pali@kernel.org> | 2022-07-25 13:56:08 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2022-07-28 08:41:44 +0200 |
commit | 92c4a95ec7986a31f37dbf540dd8fda5927ac659 (patch) | |
tree | cc62d20f5009b8b53535537bbb67e001a1926212 /include/dm | |
parent | 87069c79e830b2ab909537946a1e1db0e5fe7d8c (diff) | |
download | u-boot-92c4a95ec7986a31f37dbf540dd8fda5927ac659.tar.gz |
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>
Diffstat (limited to 'include/dm')
-rw-r--r-- | include/dm/pinctrl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/dm/pinctrl.h b/include/dm/pinctrl.h index a09b242fd9..5436dc4a9a 100644 --- a/include/dm/pinctrl.h +++ b/include/dm/pinctrl.h @@ -491,6 +491,8 @@ enum pin_config_param { * Return: 0 on success, or negative error code on failure */ int pinctrl_generic_set_state(struct udevice *pctldev, struct udevice *config); +int pinctrl_generic_set_state_prefix(struct udevice *pctldev, struct udevice *config, + const char *prefix); #else static inline int pinctrl_generic_set_state(struct udevice *pctldev, struct udevice *config) |