Paul Walmsley | aa218da | 2010-10-08 11:40:19 -0600 | [diff] [blame] | 1 | /* |
| 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> |
Paul Walmsley | aa218da | 2010-10-08 11:40:19 -0600 | [diff] [blame] | 17 | |
Tony Lindgren | ee0839c | 2012-02-24 10:34:35 -0800 | [diff] [blame] | 18 | #include "common.h" |
Lokesh Vutla | f7a9b8a | 2012-10-02 00:17:06 +0530 | [diff] [blame] | 19 | #include "omap-secure.h" |
Paul Walmsley | aa218da | 2010-10-08 11:40:19 -0600 | [diff] [blame] | 20 | |
Lokesh Vutla | f583f0f | 2012-10-02 00:17:05 +0530 | [diff] [blame] | 21 | /* |
| 22 | * Stub function for OMAP2 so that common files |
| 23 | * continue to build when custom builds are used |
| 24 | */ |
| 25 | int __weak omap_secure_ram_reserve_memblock(void) |
| 26 | { |
| 27 | return 0; |
| 28 | } |
| 29 | |
| 30 | void __init omap_reserve(void) |
| 31 | { |
Lokesh Vutla | f583f0f | 2012-10-02 00:17:05 +0530 | [diff] [blame] | 32 | omap_secure_ram_reserve_memblock(); |
Russell King | f746929 | 2015-06-06 00:13:40 +0100 | [diff] [blame] | 33 | omap_barrier_reserve_memblock(); |
Lokesh Vutla | f583f0f | 2012-10-02 00:17:05 +0530 | [diff] [blame] | 34 | } |