ARM: at91: pm: Use struct at91_pm_data in pm_suspend.S
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Tue, 31 Jan 2017 17:12:57 +0000 (18:12 +0100)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 31 Mar 2017 18:36:05 +0000 (20:36 +0200)
commit65cc1a59d192be1df33633d3fe668a1e3e0edc36
tree0d9b421633860e02720fde8bc6db10e4ef10e7ae
parent9e07c3ce2c1054af503b0cb5860df0f8c8ee2619
ARM: at91: pm: Use struct at91_pm_data in pm_suspend.S

The number of register we can safely pass to at91_pm_suspend_in_sram is
limited. Instead, pass the address to the at91_pm_data structure.

The offsets are automatically generated to avoid hardcoding them.

Acked-by: Wenyou Yang <wenyou.yang@atmel.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
arch/arm/mach-at91/Makefile
arch/arm/mach-at91/pm.c
arch/arm/mach-at91/pm.h
arch/arm/mach-at91/pm_data-offsets.c [new file with mode: 0644]
arch/arm/mach-at91/pm_suspend.S