xref: /aosp_15_r20/external/coreboot/src/soc/amd/common/block/include/amdblocks/apob_cache.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #ifndef AMD_BLOCK_APOB_CACHE_H
4 #define AMD_BLOCK_APOB_CACHE_H
5 
6 #include <stddef.h>
7 
8 #if CONFIG(SOC_AMD_COMMON_BLOCK_APOB) && !CONFIG(SOC_AMD_COMMON_BLOCK_APOB_NV_DISABLE)
9 /* Start loading the APOB as soon as possible so it is ready by the time we need it. */
10 void start_apob_cache_read(void);
11 void *soc_fill_apob_cache(void);
12 #else /* CONFIG(SOC_AMD_COMMON_BLOCK_APOB) && !CONFIG(SOC_AMD_COMMON_BLOCK_APOB_NV_DISABLE) */
start_apob_cache_read(void)13 static inline void start_apob_cache_read(void) {}
soc_fill_apob_cache(void)14 static inline void *soc_fill_apob_cache(void) { return NULL; }
15 #endif /* CONFIG(SOC_AMD_COMMON_BLOCK_APOB) && !CONFIG(SOC_AMD_COMMON_BLOCK_APOB_NV_DISABLE) */
16 
17 #endif /* AMD_BLOCK_APOB_CACHE_H */
18