diff options
Diffstat (limited to 'src/soc/amd/common')
-rw-r--r-- | src/soc/amd/common/block/include/amdblocks/apob_cache.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/soc/amd/common/block/include/amdblocks/apob_cache.h b/src/soc/amd/common/block/include/amdblocks/apob_cache.h index e91720fa61..bbb65a72e2 100644 --- a/src/soc/amd/common/block/include/amdblocks/apob_cache.h +++ b/src/soc/amd/common/block/include/amdblocks/apob_cache.h @@ -3,8 +3,15 @@ #ifndef AMD_BLOCK_APOB_CACHE_H #define AMD_BLOCK_APOB_CACHE_H +#include <stddef.h> + +#if CONFIG(SOC_AMD_COMMON_BLOCK_APOB) /* Start loading the APOB as soon as possible so it is ready by the time we need it. */ void start_apob_cache_read(void); void *soc_fill_apob_cache(void); +#else /* CONFIG(SOC_AMD_COMMON_BLOCK_APOB) */ +static inline void start_apob_cache_read(void) {} +static inline void *soc_fill_apob_cache(void) { return NULL; } +#endif /* CONFIG(SOC_AMD_COMMON_BLOCK_APOB) */ #endif /* AMD_BLOCK_APOB_CACHE_H */ |