mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-23 20:24:26 +08:00
pinctrl: pinctrl_stm32: Update pinmux_mode definition
pinmux_mode[] is linked to gpio_function[] defined in gpio-uclass.c So reuse the same gpio_func_t enum value Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
This commit is contained in:
parent
8202c958cf
commit
4382e55c42
@ -42,13 +42,12 @@ struct stm32_gpio_bank {
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
|
||||
static char pin_name[PINNAME_SIZE];
|
||||
#define PINMUX_MODE_COUNT 5
|
||||
static const char * const pinmux_mode[PINMUX_MODE_COUNT] = {
|
||||
"gpio input",
|
||||
"gpio output",
|
||||
"analog",
|
||||
"unknown",
|
||||
"alt function",
|
||||
static const char * const pinmux_mode[GPIOF_COUNT] = {
|
||||
[GPIOF_INPUT] = "gpio input",
|
||||
[GPIOF_OUTPUT] = "gpio output",
|
||||
[GPIOF_UNUSED] = "analog",
|
||||
[GPIOF_UNKNOWN] = "unknown",
|
||||
[GPIOF_FUNC] = "alt function",
|
||||
};
|
||||
|
||||
static const char * const pinmux_bias[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user