blob: a4af202cbc2547503b2bf836e139572485b8228a [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001// SPDX-License-Identifier: GPL-2.0-only
Paul Walmsleyaa218da2010-10-08 11:40:19 -06002/*
3 * linux/arch/arm/mach-omap2/common.c
4 *
5 * Code common to all OMAP2+ machines.
6 *
7 * Copyright (C) 2009 Texas Instruments
8 * Copyright (C) 2010 Nokia Corporation
9 * Tony Lindgren <tony@atomide.com>
10 * Added OMAP4 support - Santosh Shilimkar <santosh.shilimkar@ti.com>
Paul Walmsleyaa218da2010-10-08 11:40:19 -060011 */
12#include <linux/kernel.h>
13#include <linux/init.h>
Paul Walmsleyaa218da2010-10-08 11:40:19 -060014
Tony Lindgrenee0839c2012-02-24 10:34:35 -080015#include "common.h"
Lokesh Vutlaf7a9b8a2012-10-02 00:17:06 +053016#include "omap-secure.h"
Paul Walmsleyaa218da2010-10-08 11:40:19 -060017
Lokesh Vutlaf583f0f2012-10-02 00:17:05 +053018/*
19 * Stub function for OMAP2 so that common files
20 * continue to build when custom builds are used
21 */
22int __weak omap_secure_ram_reserve_memblock(void)
23{
24 return 0;
25}
26
27void __init omap_reserve(void)
28{
Lokesh Vutlaf583f0f2012-10-02 00:17:05 +053029 omap_secure_ram_reserve_memblock();
Russell Kingf7469292015-06-06 00:13:40 +010030 omap_barrier_reserve_memblock();
Lokesh Vutlaf583f0f2012-10-02 00:17:05 +053031}