mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 12:52:30 +00:00
e799840a09
omap_secure_ram_reserve_memblock is stubbed for OMAP1,2 only builds using a ifdef check. But this results in adding CONFIG_ARCH_OMAPxx checks for future socs that use the real function. So move this to common.c file and call it __weak. Signed-off-by: R Sricharan <r.sricharan@ti.com> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
15 lines
314 B
C
15 lines
314 B
C
#ifndef __OMAP_SECURE_H__
|
|
#define __OMAP_SECURE_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
extern int omap_secure_ram_reserve_memblock(void);
|
|
|
|
#ifdef CONFIG_OMAP4_ERRATA_I688
|
|
extern int omap_barrier_reserve_memblock(void);
|
|
#else
|
|
static inline void omap_barrier_reserve_memblock(void)
|
|
{ }
|
|
#endif
|
|
#endif /* __OMAP_SECURE_H__ */
|