diff options
author | Jon Medhurst <tixy@yxit.co.uk> | 2011-08-03 17:57:19 +0200 |
---|---|---|
committer | Jon Medhurst <tixy@yxit.co.uk> | 2011-08-22 14:00:10 +0200 |
commit | 009426a0ebd0fc4a230ab2c2295dbc8f7ba7e8dd (patch) | |
tree | 629daf1f542f8361c4a55395bdbf1f8f5da85464 /arch/arm/plat-omap/io.c | |
parent | ARM: Add init_consistent_dma_size() (diff) | |
download | linux-009426a0ebd0fc4a230ab2c2295dbc8f7ba7e8dd.tar.xz linux-009426a0ebd0fc4a230ab2c2295dbc8f7ba7e8dd.zip |
ARM: omap: Setup consistent dma size at boot time
Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
CC: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/io.c')
-rw-r--r-- | arch/arm/plat-omap/io.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/io.c b/arch/arm/plat-omap/io.c index f1ecfa9fc61d..e9b0e23edd0a 100644 --- a/arch/arm/plat-omap/io.c +++ b/arch/arm/plat-omap/io.c @@ -12,6 +12,7 @@ #include <linux/module.h> #include <linux/io.h> #include <linux/mm.h> +#include <linux/dma-mapping.h> #include <plat/omap7xx.h> #include <plat/omap1510.h> @@ -139,3 +140,10 @@ void omap_iounmap(volatile void __iomem *addr) __iounmap(addr); } EXPORT_SYMBOL(omap_iounmap); + +void __init omap_init_consistent_dma_size(void) +{ +#ifdef CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE + init_consistent_dma_size(CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE << 20); +#endif +} |