mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-15 07:26:39 +07:00
259ee57a8c
Allocate the memory to save secure ram context which needs to be done when MPU is hitting OFF mode. The ROM code expects a physical address to this memory and hence use memblock APIs to reserve this memory as part of .reserve() callback. Maximum size as per secure RAM requirements is allocated. To keep omap1 build working, omap-secure.h file is created under plat-omap directory. Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Acked-by: Jean Pihet <j-pihet@ti.com> Reviewed-by: Kevin Hilman <khilman@ti.com> Tested-by: Vishwanath BS <vishwanath.bs@ti.com> Signed-off-by: Kevin Hilman <khilman@ti.com>
14 lines
266 B
C
14 lines
266 B
C
#ifndef __OMAP_SECURE_H__
|
|
#define __OMAP_SECURE_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
#ifdef CONFIG_ARCH_OMAP2PLUS
|
|
extern int omap_secure_ram_reserve_memblock(void);
|
|
#else
|
|
static inline void omap_secure_ram_reserve_memblock(void)
|
|
{ }
|
|
#endif
|
|
|
|
#endif /* __OMAP_SECURE_H__ */
|