Linux Audio

Check our new training course

Loading...
v6.13.7
 1// SPDX-License-Identifier: GPL-2.0-only
 2/*
 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>
11 */
12#include <linux/kernel.h>
13#include <linux/init.h>
14
15#include "common.h"
16#include "omap-secure.h"
17
18/*
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{
29	omap_secure_ram_reserve_memblock();
30	omap_barrier_reserve_memblock();
31}
v6.8
 1// SPDX-License-Identifier: GPL-2.0-only
 2/*
 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>
11 */
12#include <linux/kernel.h>
13#include <linux/init.h>
14
15#include "common.h"
16#include "omap-secure.h"
17
18/*
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{
29	omap_secure_ram_reserve_memblock();
30	omap_barrier_reserve_memblock();
31}