199-ARM-at91-pm-document-at91_soc_pm-structure.patch 1.3 KB

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