]> bbs.cooldavid.org Git - net-next-2.6.git/commit
sh: Provide a generic SRAM pool for tiny memories.
authorPaul Mundt <lethal@linux-sh.org>
Thu, 14 Oct 2010 17:09:00 +0000 (02:09 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 14 Oct 2010 17:09:00 +0000 (02:09 +0900)
commitc993487ec87ba6d9ea47b03dad562123d503f4a2
treeb7e9332b6fbbb8bf105b7db8e79bc0e1d6f55033
parentb6b77b2d5ffd2f8ee74fcc27661f7f4962c34705
sh: Provide a generic SRAM pool for tiny memories.

This sets up a generic SRAM pool for CPUs and platform code to insert
their otherwise unused memories into. A simple alloc/free interface is
provided (lifed from avr32) for generic code.

This only applies to tiny SRAMs that are otherwise unmanaged, and does
not take in to account the more complex SRAMs sitting behind transfer
engines, or that employ an I/D split.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/sram.h [new file with mode: 0644]
arch/sh/mm/Kconfig
arch/sh/mm/Makefile
arch/sh/mm/sram.c [new file with mode: 0644]