nb/intel/ironlake: Drop unnecessary `smm_region_start` function
Change-Id: I4c4b40b2b4f54b7756b8485dad80a1b4786270f7 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45919 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
parent
11ca2ae167
commit
b70c66b00d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue