aboutsummaryrefslogtreecommitdiff
path: root/src/cpu/amd/model_10xxx/ram_calc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/amd/model_10xxx/ram_calc.c')
-rw-r--r--src/cpu/amd/model_10xxx/ram_calc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cpu/amd/model_10xxx/ram_calc.c b/src/cpu/amd/model_10xxx/ram_calc.c
index c8637c9fa0..46ccdbd151 100644
--- a/src/cpu/amd/model_10xxx/ram_calc.c
+++ b/src/cpu/amd/model_10xxx/ram_calc.c
@@ -26,6 +26,7 @@
#include "ram_calc.h"
+#if !IS_ENABLED(CONFIG_LATE_CBMEM_INIT)
uint64_t get_uma_memory_size(uint64_t topmem)
{
uint64_t uma_size = 0;
@@ -50,3 +51,4 @@ void *cbmem_top(void)
return (void *) topmem - get_uma_memory_size(topmem);
}
+#endif