summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/northbridge/intel/ironlake/memmap.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/northbridge/intel/ironlake/memmap.c b/src/northbridge/intel/ironlake/memmap.c
index 54337ccd69..78fbae85fe 100644
--- a/src/northbridge/intel/ironlake/memmap.c
+++ b/src/northbridge/intel/ironlake/memmap.c
@@ -11,16 +11,10 @@
#include "ironlake.h"
-static uintptr_t smm_region_start(void)
-{
- /* Base of TSEG is top of usable DRAM */
- uintptr_t tom = pci_read_config32(PCI_DEV(0,0,0), TSEG);
- return tom;
-}
-
static uintptr_t northbridge_get_tseg_base(void)
{
- return smm_region_start();
+ /* Base of TSEG is top of usable DRAM */
+ return pci_read_config32(PCI_DEV(0, 0, 0), TSEG);
}
static size_t northbridge_get_tseg_size(void)
@@ -30,7 +24,7 @@ static size_t northbridge_get_tseg_size(void)
void *cbmem_top_chipset(void)
{
- return (void *) smm_region_start();
+ return (void *)northbridge_get_tseg_base();
}
void smm_region(uintptr_t *start, size_t *size)