pinctrl: stm32: add suspend/resume management
During power sequence, GPIO hardware registers could be lost if the power supply is switched off. Each device using pinctrl API is in charge of managing pins during suspend/resume sequences. But for pins used as gpio or irq stm32 pinctrl driver has to save the hardware configuration. Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:

committed by
Linus Walleij

parent
b672a87ae5
commit
e2f3cf18c3
@@ -65,5 +65,7 @@ struct stm32_gpio_bank;
|
||||
int stm32_pctl_probe(struct platform_device *pdev);
|
||||
void stm32_pmx_get_mode(struct stm32_gpio_bank *bank,
|
||||
int pin, u32 *mode, u32 *alt);
|
||||
int stm32_pinctrl_resume(struct device *dev);
|
||||
|
||||
#endif /* __PINCTRL_STM32_H */
|
||||
|
||||
|
Reference in New Issue
Block a user