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

12345678910111213141516171819202122232425262728293031
  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. --- a/arch/arm/mach-at91/pm.c
  13. +++ b/arch/arm/mach-at91/pm.c
  14. @@ -41,6 +41,14 @@ struct at91_pm_bu {
  15. phys_addr_t resume;
  16. };
  17. +/**
  18. + * struct at91_soc_pm - AT91 SoC power management data structure
  19. + * @config_shdwc_ws: wakeup sources configuration function for SHDWC
  20. + * @config_pmc_ws: wakeup srouces configuration function for PMC
  21. + * @ws_ids: wakup sources of_device_id array
  22. + * @data: PM data to be used on last phase of suspend
  23. + * @bu: backup unit mapped data (for backup mode)
  24. + */
  25. struct at91_soc_pm {
  26. int (*config_shdwc_ws)(void __iomem *shdwc, u32 *mode, u32 *polarity);
  27. int (*config_pmc_ws)(void __iomem *pmc, u32 mode, u32 polarity);