ARM: at91: pm: Add ULP1 mode support
authorWenyou Yang <wenyou.yang@atmel.com>
Tue, 17 Jul 2018 08:26:55 +0000 (11:26 +0300)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 17 Jul 2018 13:08:02 +0000 (15:08 +0200)
commit5b56c182edb1224bc1a97a1c74003eaa0eb59daf
tree5261f2d60ca87b383d403a8ef0f8e8a95fe257c3
parent514e2a294aad435ce205c1c66d2abb89a292473c
ARM: at91: pm: Add ULP1 mode support

In the ULP1 mode, in order to achieve the lowest power consumption
with the system in retention mode and be able to resume on the wake
up events, all the clocks are shut off, inclusive the embedded 12MHz
RC oscillator, and the number of wake up sources is limited as well.
When the wake up event is asserted, the embedded 12MHz RC oscillator
restarts automatically.

The ULP1 (Ultra Low-power mode 1) is introduced by SAMA5D2.

The previous size of pm_suspend.o was 2148 bytes. With the addition of
ULP1 mode the new size of pm_suspend.o raised at 2456 bytes.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com>
[claudiu.beznea@microchip.com: aligned with 4.18-rc1]
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
arch/arm/mach-at91/pm.c
arch/arm/mach-at91/pm.h
arch/arm/mach-at91/pm_suspend.S
include/linux/clk/at91_pmc.h