License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-2.6-block.git] / arch / arm / plat-omap / include / plat / sram.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
bf027ca1
TL
2int omap_sram_init(void);
3
d8cfd6c8
TL
4void omap_map_sram(unsigned long start, unsigned long size,
5 unsigned long skip, int cached);
6void omap_sram_reset(void);
7
bf027ca1
TL
8extern void *omap_sram_push_address(unsigned long size);
9
10/* Macro to push a function to the internal SRAM, using the fncpy API */
11#define omap_sram_push(funcp, size) ({ \
12 typeof(&(funcp)) _res = NULL; \
13 void *_sram_address = omap_sram_push_address(size); \
14 if (_sram_address) \
15 _res = fncpy(_sram_address, &(funcp), size); \
16 _res; \
17})