aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPratikkumar Prajapati <pratikkumar.v.prajapati@intel.com>2023-06-05 18:10:37 -0700
committerFelix Held <felix-coreboot@felixheld.de>2023-06-07 22:00:47 +0000
commitea66c9899b024e896dd810b7b99cff2a00b78f9d (patch)
tree630b7bbfadff1f8f5dcf0260e2614b069ab2defa /src
parente23c8038f8c43b7971c54cbf15865b7f46989f62 (diff)
soc/intel/common: Make get_ramtop_addr non static
Make get_ramtop_addr not static to allow other code to use it. Bug=b:276120526 TEST=Able to build rex Signed-off-by: Pratikkumar Prajapati <pratikkumar.v.prajapati@intel.com> Change-Id: I8ef8a65b93645f25ca5e887342b18679d65e74b4 Reviewed-on: https://review.coreboot.org/c/coreboot/+/75624 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Subrata Banik <subratabanik@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/soc/intel/common/basecode/include/intelbasecode/ramtop.h3
-rw-r--r--src/soc/intel/common/basecode/ramtop/ramtop.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/soc/intel/common/basecode/include/intelbasecode/ramtop.h b/src/soc/intel/common/basecode/include/intelbasecode/ramtop.h
index 067dd6b270..fa3c8b1839 100644
--- a/src/soc/intel/common/basecode/include/intelbasecode/ramtop.h
+++ b/src/soc/intel/common/basecode/include/intelbasecode/ramtop.h
@@ -11,4 +11,7 @@ void early_ramtop_enable_cache_range(void);
/* Update the RAMTOP if required based on the input top_of_ram address */
void update_ramtop(uint32_t addr);
+/* Get RAMTOP */
+uint32_t get_ramtop_addr(void);
+
#endif
diff --git a/src/soc/intel/common/basecode/ramtop/ramtop.c b/src/soc/intel/common/basecode/ramtop/ramtop.c
index 83af44dbaa..90717e0025 100644
--- a/src/soc/intel/common/basecode/ramtop/ramtop.c
+++ b/src/soc/intel/common/basecode/ramtop/ramtop.c
@@ -104,7 +104,7 @@ void update_ramtop(uint32_t addr)
printk(BIOS_DEBUG, "Updated the RAMTOP address into CMOS 0x%x\n", ramtop.addr);
}
-static uint32_t get_ramtop_addr(void)
+uint32_t get_ramtop_addr(void)
{
struct ramtop_table ramtop;