blob: 5c2fd4863b2bc7f32b4289cc1fb0059d5fec82e2 [file] [log] [blame]
Paul Walmsleyaa218da2010-10-08 11:40:19 -06001/*
2 * linux/arch/arm/mach-omap2/common.c
3 *
4 * Code common to all OMAP2+ machines.
5 *
6 * Copyright (C) 2009 Texas Instruments
7 * Copyright (C) 2010 Nokia Corporation
8 * Tony Lindgren <tony@atomide.com>
9 * Added OMAP4 support - Santosh Shilimkar <santosh.shilimkar@ti.com>
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2 as
13 * published by the Free Software Foundation.
14 */
15#include <linux/kernel.h>
16#include <linux/init.h>
Lokesh Vutlaf583f0f2012-10-02 00:17:05 +053017#include <linux/platform_data/dsp-omap.h>
Paul Walmsleyaa218da2010-10-08 11:40:19 -060018
Lokesh Vutlaf583f0f2012-10-02 00:17:05 +053019#include <plat/vram.h>
Paul Walmsleyaa218da2010-10-08 11:40:19 -060020
Tony Lindgrenee0839c2012-02-24 10:34:35 -080021#include "common.h"
Lokesh Vutlaf7a9b8a2012-10-02 00:17:06 +053022#include "omap-secure.h"
Paul Walmsleyaa218da2010-10-08 11:40:19 -060023
Lokesh Vutlaf583f0f2012-10-02 00:17:05 +053024/*
25 * Stub function for OMAP2 so that common files
26 * continue to build when custom builds are used
27 */
28int __weak omap_secure_ram_reserve_memblock(void)
29{
30 return 0;
31}
32
33void __init omap_reserve(void)
34{
35 omap_vram_reserve_sdram_memblock();
36 omap_dsp_reserve_sdram_memblock();
37 omap_secure_ram_reserve_memblock();
38 omap_barrier_reserve_memblock();
39}