]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: soc: sunxi: Introduce SoC driver to map SRAMs
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 1 Jun 2015 09:04:26 +0000 (11:04 +0200)
committerArnd Bergmann <arnd@arndb.de>
Mon, 1 Jun 2015 15:57:34 +0000 (17:57 +0200)
commit35c552b6fb9661ce3387b97ba0fe3e3474c1317e
treec27f6bf9fe4d2c39e989704d888386c73932eebd
parentd7d63c1c7a0463a10c1e9f5b68283b111281d5b3
drivers: soc: sunxi: Introduce SoC driver to map SRAMs

The Allwinner SoCs have a handful of SRAM that can be either mapped to be
accessible by devices or the CPU.

That mapping is controlled by an SRAM controller, and that mapping might
not be set by the bootloader, for example if the device wasn't used at all,
or if we're using solutions like the U-Boot's Falcon Boot.

We could also imagine changing this at runtime for example to change the
mapping of these SRAMs to use them for suspend/resume or runtime memory
rate change, if that ever happens.

These use cases require some API in the kernel to control that mapping,
exported through a drivers/soc driver.

This driver also implement a debugfs file that shows the SRAM found in the
system, the current mapping and the SRAM that have been claimed by some
drivers in the kernel.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Documentation/devicetree/bindings/soc/sunxi/sram.txt [new file with mode: 0644]
drivers/soc/Kconfig
drivers/soc/Makefile
drivers/soc/sunxi/Kconfig [new file with mode: 0644]
drivers/soc/sunxi/Makefile [new file with mode: 0644]
drivers/soc/sunxi/sunxi_sram.c [new file with mode: 0644]
include/linux/soc/sunxi/sunxi_sram.h [new file with mode: 0644]