2005-07-10 19:58:15 +01:00
|
|
|
/*
|
|
|
|
* linux/arch/arm/plat-omap/common.c
|
|
|
|
*
|
|
|
|
* Code common to all OMAP machines.
|
2009-05-28 14:16:04 -07:00
|
|
|
* The file is created by Tony Lindgren <tony@atomide.com>
|
|
|
|
*
|
|
|
|
* Copyright (C) 2009 Texas Instruments
|
|
|
|
* Added OMAP4 support - Santosh Shilimkar <santosh.shilimkar@ti.com>
|
2005-07-10 19:58:15 +01:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
#include <linux/kernel.h>
|
|
|
|
#include <linux/init.h>
|
2008-09-06 12:10:45 +01:00
|
|
|
#include <linux/io.h>
|
2011-12-06 05:45:37 +01:00
|
|
|
#include <linux/dma-mapping.h>
|
2005-07-10 19:58:15 +01:00
|
|
|
|
2009-10-20 09:40:47 -07:00
|
|
|
#include <plat/common.h>
|
2010-05-23 10:18:16 +01:00
|
|
|
#include <plat/vram.h>
|
2012-08-24 15:21:06 +02:00
|
|
|
#include <linux/platform_data/dsp-omap.h>
|
2012-10-15 14:04:53 -07:00
|
|
|
#include <plat-omap/dma-omap.h>
|
2005-07-10 19:58:15 +01:00
|
|
|
|
2011-06-06 20:28:23 +05:30
|
|
|
#include <plat/omap-secure.h>
|
|
|
|
|
2010-05-23 10:18:16 +01:00
|
|
|
void __init omap_reserve(void)
|
|
|
|
{
|
2010-05-22 23:59:11 +01:00
|
|
|
omap_vram_reserve_sdram_memblock();
|
2010-10-04 19:09:14 +03:00
|
|
|
omap_dsp_reserve_sdram_memblock();
|
2011-06-06 20:28:23 +05:30
|
|
|
omap_secure_ram_reserve_memblock();
|
2012-02-02 19:33:55 +05:30
|
|
|
omap_barrier_reserve_memblock();
|
2010-05-23 10:18:16 +01:00
|
|
|
}
|
2011-09-14 17:06:22 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
2012-05-10 21:27:20 +05:30
|
|
|
|
|
|
|
/*
|
|
|
|
* Stub function for OMAP2 so that common files
|
|
|
|
* continue to build when custom builds are used
|
|
|
|
*/
|
|
|
|
int __weak omap_secure_ram_reserve_memblock(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|