Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  * linux/arch/arm/mach-omap2/common.c
0004  *
0005  * Code common to all OMAP2+ machines.
0006  *
0007  * Copyright (C) 2009 Texas Instruments
0008  * Copyright (C) 2010 Nokia Corporation
0009  * Tony Lindgren <tony@atomide.com>
0010  * Added OMAP4 support - Santosh Shilimkar <santosh.shilimkar@ti.com>
0011  */
0012 #include <linux/kernel.h>
0013 #include <linux/init.h>
0014 
0015 #include "common.h"
0016 #include "omap-secure.h"
0017 
0018 /*
0019  * Stub function for OMAP2 so that common files
0020  * continue to build when custom builds are used
0021  */
0022 int __weak omap_secure_ram_reserve_memblock(void)
0023 {
0024     return 0;
0025 }
0026 
0027 void __init omap_reserve(void)
0028 {
0029     omap_secure_ram_reserve_memblock();
0030     omap_barrier_reserve_memblock();
0031 }