davinci: add SRAM allocator
authorDavid Brownell <dbrownell@users.sourceforge.net>
Thu, 7 May 2009 16:31:42 +0000 (09:31 -0700)
committerKevin Hilman <khilman@deeprootsystems.com>
Thu, 28 May 2009 22:18:13 +0000 (15:18 -0700)
commit20e9969b3aa5166d50c8df474967c9d80bf6d481
treebc0a72c26cd5fece59dd02fb6df0851c69e3a74d
parent0d04eb47054f685b23033ed6ceadfb20db77c5b3
davinci: add SRAM allocator

Provide a generic SRAM allocator using genalloc, and vaguely
modeled after what AVR32 uses.  This builds on top of the
static CPU mapping set up in the previous patch, and returns
DMA mappings as requested (if possible).

Compared to its OMAP cousin, there's no current support for
(currently non-existent) DaVinci power management code running
in SRAM; and this has ways to deallocate, instead of being
allocate-only.

The initial user of this should probably be the audio code,
because EDMA from DDR is subject to various dropouts on at
least DM355 and DM6446 chips.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/Kconfig
arch/arm/mach-davinci/Makefile
arch/arm/mach-davinci/include/mach/sram.h [new file with mode: 0644]
arch/arm/mach-davinci/sram.c [new file with mode: 0644]