OMAP: Add VRAM manager
authorTomi Valkeinen <tomi.valkeinen@nokia.com>
Fri, 7 Aug 2009 09:01:55 +0000 (12:01 +0300)
committerTomi Valkeinen <tomi.valkeinen@nokia.com>
Wed, 9 Dec 2009 10:04:33 +0000 (12:04 +0200)
commitafedec183e95bd5e126a7846a644acfdddb86a66
tree4e4fdfa45487d450b510d926ec35450dd4bc4ca7
parentdadd2bb931a08a4b6b17f9e82d9bbe7bedebbc98
OMAP: Add VRAM manager

Add a Video RAM manager for OMAP 2 and 3 platforms. VRAM manager is used
to allocate large continuous blocks of SDRAM or SRAM. The features VRAM
manager has that are missing from dma_alloc_* functions are:

- Support for OMAP2's SRAM
- Allocate without ioremapping
- Allocate at defined physical addresses
- Allows larger VRAM area and larger allocations

The upcoming DSS2 uses VRAM manager.

VRAM area size can be defined in kernel config, board file or with
kernel boot parameters. Board file definition overrides kernel config,
and boot parameter overrides kernel config and board file.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
arch/arm/mach-omap2/io.c
arch/arm/plat-omap/include/plat/vram.h [new file with mode: 0644]
arch/arm/plat-omap/sram.c
drivers/video/Kconfig
drivers/video/Makefile
drivers/video/omap2/Kconfig [new file with mode: 0644]
drivers/video/omap2/Makefile [new file with mode: 0644]
drivers/video/omap2/vram.c [new file with mode: 0644]