Linux Audio

Check our new training course

Loading...
v3.15
 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>
17#include <linux/platform_data/dsp-omap.h>
18
19#include "common.h"
20#include "omap-secure.h"
21
22/*
23 * Stub function for OMAP2 so that common files
24 * continue to build when custom builds are used
25 */
26int __weak omap_secure_ram_reserve_memblock(void)
27{
28	return 0;
29}
30
31void __init omap_reserve(void)
32{
33	omap_dsp_reserve_sdram_memblock();
34	omap_secure_ram_reserve_memblock();
35	omap_barrier_reserve_memblock();
36}
v4.6
 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>
 
17
18#include "common.h"
19#include "omap-secure.h"
20
21/*
22 * Stub function for OMAP2 so that common files
23 * continue to build when custom builds are used
24 */
25int __weak omap_secure_ram_reserve_memblock(void)
26{
27	return 0;
28}
29
30void __init omap_reserve(void)
31{
 
32	omap_secure_ram_reserve_memblock();
33	omap_barrier_reserve_memblock();
34}