Merge tag 'omap-devel-am33xx-for-v3.7' of git://git.kernel.org/pub/scm/linux/kernel...
[deliverable/linux.git] / arch / arm / plat-omap / common.c
CommitLineData
5e1c5ff4
TL
1/*
2 * linux/arch/arm/plat-omap/common.c
3 *
4 * Code common to all OMAP machines.
44169075
SS
5 * The file is created by Tony Lindgren <tony@atomide.com>
6 *
7 * Copyright (C) 2009 Texas Instruments
8 * Added OMAP4 support - Santosh Shilimkar <santosh.shilimkar@ti.com>
5e1c5ff4
TL
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
13 */
5e1c5ff4
TL
14#include <linux/kernel.h>
15#include <linux/init.h>
fced80c7 16#include <linux/io.h>
16edc3df 17#include <linux/dma-mapping.h>
5e1c5ff4 18
ce491cf8 19#include <plat/common.h>
71ee7dad 20#include <plat/vram.h>
90173882 21#include <plat/dsp.h>
e2ed89fc 22#include <plat/dma.h>
5e1c5ff4 23
259ee57a
SS
24#include <plat/omap-secure.h>
25
71ee7dad
RK
26void __init omap_reserve(void)
27{
98864ff5 28 omap_vram_reserve_sdram_memblock();
90173882 29 omap_dsp_reserve_sdram_memblock();
259ee57a 30 omap_secure_ram_reserve_memblock();
2ec1fc4e 31 omap_barrier_reserve_memblock();
71ee7dad 32}
7146182c
NP
33
34void __init omap_init_consistent_dma_size(void)
35{
36#ifdef CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE
37 init_consistent_dma_size(CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE << 20);
38#endif
39}
e799840a
S
40
41/*
42 * Stub function for OMAP2 so that common files
43 * continue to build when custom builds are used
44 */
45int __weak omap_secure_ram_reserve_memblock(void)
46{
47 return 0;
48}
This page took 0.478653 seconds and 5 git commands to generate.