linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC 0/3] ARM: sunxi: SRAM mapping support
@ 2015-03-12 13:13 Maxime Ripard
  2015-03-12 13:13 ` [PATCH RFC 1/3] drivers: soc: sunxi: Introduce SoC driver to map SRAMs Maxime Ripard
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Maxime Ripard @ 2015-03-12 13:13 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

The Allwinner SoCs all have a bunch of SRAMs (the exact number
depending on the SoC itself) that can all be mapped to the CPU or to a
bunch of devices, each SRAM having different possible devices to be
mapped to.

Since this SRAM setup is highly SoC dependant, relying on syscon would
put to much duplicated logic to devices that are using these SRAMs,
among which the USB OTG and EMAC controllers.

Here is an RFC to introduce a custom API to control the mapping of
these SRAM, ideally in a SoC-independant way.

Let me know what you think,
Maxime

Maxime Ripard (3):
  drivers: soc: sunxi: Introduce SoC driver to map SRAMs
  ARM: sun7i: Add A20 SRAM and SRAM controller
  net: allwinner: emac: Claim our SRAM

 arch/arm/boot/dts/sun7i-a20.dtsi            |  31 +++-
 drivers/net/ethernet/allwinner/sun4i-emac.c |  13 +-
 drivers/soc/Kconfig                         |   1 +
 drivers/soc/Makefile                        |   1 +
 drivers/soc/sunxi/Kconfig                   |  12 ++
 drivers/soc/sunxi/Makefile                  |   1 +
 drivers/soc/sunxi/sunxi_sram.c              | 234 ++++++++++++++++++++++++++++
 include/linux/soc/sunxi/sunxi_sram.h        |  24 +++
 8 files changed, 314 insertions(+), 3 deletions(-)
 create mode 100644 drivers/soc/sunxi/Kconfig
 create mode 100644 drivers/soc/sunxi/Makefile
 create mode 100644 drivers/soc/sunxi/sunxi_sram.c
 create mode 100644 include/linux/soc/sunxi/sunxi_sram.h

-- 
2.3.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-03-20 20:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-12 13:13 [PATCH RFC 0/3] ARM: sunxi: SRAM mapping support Maxime Ripard
2015-03-12 13:13 ` [PATCH RFC 1/3] drivers: soc: sunxi: Introduce SoC driver to map SRAMs Maxime Ripard
2015-03-12 13:13 ` [PATCH RFC 2/3] ARM: sun7i: Add A20 SRAM and SRAM controller Maxime Ripard
2015-03-18 19:12   ` Hans de Goede
2015-03-20 20:53     ` Maxime Ripard
2015-03-12 13:13 ` [PATCH RFC 3/3] net: allwinner: emac: Claim our SRAM Maxime Ripard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).