diff options
Diffstat (limited to 'src/soc/intel/baytrail/memmap.c')
-rw-r--r-- | src/soc/intel/baytrail/memmap.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/soc/intel/baytrail/memmap.c b/src/soc/intel/baytrail/memmap.c index f958bae830..f383d82738 100644 --- a/src/soc/intel/baytrail/memmap.c +++ b/src/soc/intel/baytrail/memmap.c @@ -20,8 +20,14 @@ #include <arch/io.h> #include <cbmem.h> #include <baytrail/iosf.h> +#include <baytrail/smm.h> + +void *smm_region_start(void) +{ + return (void *)(iosf_bunit_read(BUNIT_SMRRL) << 20); +} unsigned long get_top_of_ram(void) { - return (unsigned long)(iosf_bunit_read(BUNIT_SMRRL) << 20); + return (unsigned long)smm_region_start(); } |