Skip to content

Commit a45623d

Browse files
atorguelinusw
authored andcommitted
pinctrl: stm32: Enable suspend/resume for stm32mp157c SoC
Apply suspend/resume management for stm32mp157c MPU. Signed-off-by: Alexandre Torgue <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent e2f3cf1 commit a45623d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/pinctrl/stm32/pinctrl-stm32mp157.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2342,11 +2342,16 @@ static const struct of_device_id stm32mp157_pctrl_match[] = {
23422342
{ }
23432343
};
23442344

2345+
static const struct dev_pm_ops stm32_pinctrl_dev_pm_ops = {
2346+
SET_LATE_SYSTEM_SLEEP_PM_OPS(NULL, stm32_pinctrl_resume)
2347+
};
2348+
23452349
static struct platform_driver stm32mp157_pinctrl_driver = {
23462350
.probe = stm32_pctl_probe,
23472351
.driver = {
23482352
.name = "stm32mp157-pinctrl",
23492353
.of_match_table = stm32mp157_pctrl_match,
2354+
.pm = &stm32_pinctrl_dev_pm_ops,
23502355
},
23512356
};
23522357

0 commit comments

Comments
 (0)