summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/stm32/pinctrl-stm32.h
diff options
context:
space:
mode:
authorAlexandre Torgue <alexandre.torgue@st.com>2019-05-10 09:42:29 +0200
committerLinus Walleij <linus.walleij@linaro.org>2019-05-24 13:21:15 +0200
commite2f3cf18c3e2c98be382c54a5860eb2e418f0e02 (patch)
tree7ef6273d0c4e43ad71085bb491a5e1bde26d50f6 /drivers/pinctrl/stm32/pinctrl-stm32.h
parentpinctrl: core: Do not add device links for hogs (diff)
downloadlinux-e2f3cf18c3e2c98be382c54a5860eb2e418f0e02.tar.xz
linux-e2f3cf18c3e2c98be382c54a5860eb2e418f0e02.zip
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>
Diffstat (limited to '')
-rw-r--r--drivers/pinctrl/stm32/pinctrl-stm32.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.h b/drivers/pinctrl/stm32/pinctrl-stm32.h
index de5e7012ca03..ec0d34c33903 100644
--- a/drivers/pinctrl/stm32/pinctrl-stm32.h
+++ b/drivers/pinctrl/stm32/pinctrl-stm32.h
@@ -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 */