ARM: at91: pm: check for different controllers in at91_pm_modes_init()
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Thu, 15 Apr 2021 10:49:50 +0000 (13:49 +0300)
committerNicolas Ferre <nicolas.ferre@microchip.com>
Mon, 19 Jul 2021 12:32:11 +0000 (14:32 +0200)
commit404956f47c3c6fe300dfc9458ea9c3248d174850
tree6770a1c02e1e3a42104c0318faa1628ecc888776
parent0a7a2443c7a41ae06f0c2a1387072e07d1338d1d
ARM: at91: pm: check for different controllers in at91_pm_modes_init()

at91_pm_modes_init() checks for proper nodes in device tree and maps
them accordingly. Up to SAMA7G5 all AT91 SoCs had the same mapping
b/w power saving modes and different controllers needed in the
final/first steps of suspend/resume. SAMA7G5 is not aligned with the
old SoCs thus the code is adapted for this. This patch prepares
the field for next commits.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20210415105010.569620-5-claudiu.beznea@microchip.com
arch/arm/mach-at91/pm.c