ARM: at91: pm: allow selecting standby and suspend modes
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 26 Apr 2017 14:31:03 +0000 (16:31 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 15 May 2017 09:55:24 +0000 (11:55 +0200)
commit7693e18e8c2e2f3188f69bd572ff77dac481da6e
treeacf0cf339ada50cb185dc350f0a815051c6b70a6
parent24a0f5c539f944248cbb2e3502830dcb7fd2a96e
ARM: at91: pm: allow selecting standby and suspend modes

While we can only select between "standby" and "mem" states for power
management, the atmel platforms can actually support more modes.

For both standby and mem, allow selecting which mode will be used using the
atmel.pm_modes kernel parameter.
By default, keep the current modes.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Wenyou Yang <wenyou.yang@atmel.com>
arch/arm/mach-at91/pm.c
arch/arm/mach-at91/pm.h