diff options
Diffstat (limited to 'include/soc/stm32')
-rw-r--r-- | include/soc/stm32/gpio.h | 4 | ||||
-rw-r--r-- | include/soc/stm32/reboot.h | 18 |
2 files changed, 22 insertions, 0 deletions
diff --git a/include/soc/stm32/gpio.h b/include/soc/stm32/gpio.h index 13b492a693..448fb19e2e 100644 --- a/include/soc/stm32/gpio.h +++ b/include/soc/stm32/gpio.h @@ -25,6 +25,10 @@ #define STM32_PIN_AF(x) ((x) + 1) #define STM32_PIN_ANALOG (STM32_PIN_AF(15) + 1) +#define STM32_PINMODE_GPIO 0 +#define STM32_PINMODE_AF 2 +#define STM32_PINMODE_ANALOG 3 + #define STM32_GPIO_PINS_PER_BANK 16 enum stm32_pin_bias { STM32_PIN_NO_BIAS, STM32_PIN_PULL_UP, STM32_PIN_PULL_DOWN }; diff --git a/include/soc/stm32/reboot.h b/include/soc/stm32/reboot.h new file mode 100644 index 0000000000..c067c27229 --- /dev/null +++ b/include/soc/stm32/reboot.h @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +#ifndef __SOC_STM32_REBOOT_H_ +#define __SOC_STM32_REBOOT_H_ + +#include <linux/compiler.h> + +struct device; + +#ifdef CONFIG_RESET_STM32 +void stm32mp_system_restart_init(struct device *rcc); +#else +static inline void stm32mp_system_restart_init(struct device *rcc) +{ +} +#endif + +#endif |