Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
bf027ca1 TL |
2 | int omap_sram_init(void); |
3 | ||
d8cfd6c8 TL |
4 | void omap_map_sram(unsigned long start, unsigned long size, |
5 | unsigned long skip, int cached); | |
6 | void omap_sram_reset(void); | |
7 | ||
bf027ca1 TL |
8 | extern 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 | }) |