kernel_optimize_test/drivers/bus
Thomas Petazzoni 4749c02b8d bus: mvebu-mbus: provide a mechanism to save SDRAM window configuration
On Marvell EBU platforms, when doing suspend/resume, the SDRAM window
configuration must be saved on suspend, and restored on
resume. However, it needs to be restored on resume *before*
re-entering the kernel, because the SDRAM window configuration defines
the layout of the memory. For this reason, it cannot simply be done in
the ->suspend() and ->resume() hooks of the mvebu-mbus driver.

Instead, it needs to be restored by the bootloader "boot info"
mechanism used when resuming. This mechanism allows the kernel to
define a list of (address, value) pairs when suspending, that the
bootloader will restore on resume before jumping back into the kernel.

This commit therefore adds a new function to the mvebu-mbus driver,
called mvebu_mbus_save_cpu_target(), which will be called by the
platform code to make the mvebu-mbus driver save the SDRAM window
configuration in a way that can be understood by the bootloader "boot
info" mechanism.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Link: https://lkml.kernel.org/r/1416585613-2113-8-git-send-email-thomas.petazzoni@free-electrons.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
2014-11-30 16:40:11 +00:00
..
arm-cci.c drivers: CCI: Correct use of ! and & 2014-07-30 22:58:54 -07:00
arm-ccn.c ARM: SoC driver updates for 3.18 2014-10-08 17:37:16 -04:00
brcmstb_gisb.c devres: remove devm_request_and_ioremap() 2014-06-19 20:01:36 -07:00
imx-weim.c bus: imx-weim: populate devices on a simple bus 2014-07-18 16:11:36 +08:00
Kconfig bus: ARM CCN: add PERF_EVENTS dependency 2014-07-24 13:18:22 +02:00
Makefile bus: ARM CCN PMU driver 2014-07-23 22:14:43 +02:00
mvebu-mbus.c bus: mvebu-mbus: provide a mechanism to save SDRAM window configuration 2014-11-30 16:40:11 +00:00
omap_l3_noc.c bus: omap_l3_noc: Add AM4372 interconnect error data 2014-05-05 14:34:37 -05:00
omap_l3_noc.h bus: omap_l3_noc: Fix connID for OMAP4 2014-09-11 10:43:39 -07:00
omap_l3_smx.c
omap_l3_smx.h
omap-ocp2scp.c ARM: OMAP2+: Remove omap4 ocp2scp pdata 2013-05-30 13:09:31 -07:00
vexpress-config.c ARM: vexpress: refine dependencies for new code 2014-05-26 21:26:52 +02:00