summaryrefslogtreecommitdiff
path: root/src/southbridge/amd/agesa/hudson/ramtop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/southbridge/amd/agesa/hudson/ramtop.c')
-rw-r--r--src/southbridge/amd/agesa/hudson/ramtop.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/southbridge/amd/agesa/hudson/ramtop.c b/src/southbridge/amd/agesa/hudson/ramtop.c
index 182150f02e..79d033f24b 100644
--- a/src/southbridge/amd/agesa/hudson/ramtop.c
+++ b/src/southbridge/amd/agesa/hudson/ramtop.c
@@ -30,6 +30,8 @@ int acpi_get_sleep_type(void)
return (int)tmp;
}
+#if IS_ENABLED(CONFIG_LATE_CBMEM_INIT)
+
#ifndef __PRE_RAM__
void backup_top_of_ram(uint64_t ramtop)
{
@@ -57,3 +59,5 @@ unsigned long get_top_of_ram(void)
}
return (unsigned long) xdata;
}
+
+#endif