at91: kernel v5.15: copy config and patches from 5.10
[openwrt/staging/hauke.git] / target / linux / at91 / patches-5.15 / 199-ARM-at91-pm-document-at91_soc_pm-structure.patch
1 From 59a4b3b9381b727f416d9cc52e60d0bc7d93ecae Mon Sep 17 00:00:00 2001
2 From: Claudiu Beznea <claudiu.beznea@microchip.com>
3 Date: Thu, 15 Apr 2021 13:49:49 +0300
4 Subject: [PATCH 199/247] ARM: at91: pm: document at91_soc_pm structure
5
6 Document at91_soc_pm structure.
7
8 Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
9 Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
10 Link: https://lore.kernel.org/r/20210415105010.569620-4-claudiu.beznea@microchip.com
11 ---
12 arch/arm/mach-at91/pm.c | 8 ++++++++
13 1 file changed, 8 insertions(+)
14
15 --- a/arch/arm/mach-at91/pm.c
16 +++ b/arch/arm/mach-at91/pm.c
17 @@ -41,6 +41,14 @@ struct at91_pm_bu {
18 phys_addr_t resume;
19 };
20
21 +/**
22 + * struct at91_soc_pm - AT91 SoC power management data structure
23 + * @config_shdwc_ws: wakeup sources configuration function for SHDWC
24 + * @config_pmc_ws: wakeup srouces configuration function for PMC
25 + * @ws_ids: wakup sources of_device_id array
26 + * @data: PM data to be used on last phase of suspend
27 + * @bu: backup unit mapped data (for backup mode)
28 + */
29 struct at91_soc_pm {
30 int (*config_shdwc_ws)(void __iomem *shdwc, u32 *mode, u32 *polarity);
31 int (*config_pmc_ws)(void __iomem *pmc, u32 mode, u32 polarity);