soc/amd/stoneyridge: Remove sb_util.c
Obsolete pm_acpi_pm_cnt_blk(), and remove it and pm_acpi_pm_evt_blk(). Relocate the remaining functions to get/save UMA information to southbridge.c. Change-Id: I90c4394e3cf26f4ad60a078948a84303bda693d0 Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32659 Reviewed-by: Martin Roth <martinroth@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Martin Roth
parent
af159d4416
commit
19cae7c891
@ -649,3 +649,27 @@ static void set_pci_irqs(void *unused)
|
||||
* on entry into BS_DEV_ENABLE.
|
||||
*/
|
||||
BOOT_STATE_INIT_ENTRY(BS_DEV_ENABLE, BS_ON_ENTRY, set_pci_irqs, NULL);
|
||||
|
||||
void save_uma_size(uint32_t size)
|
||||
{
|
||||
biosram_write32(BIOSRAM_UMA_SIZE, size);
|
||||
}
|
||||
|
||||
void save_uma_base(uint64_t base)
|
||||
{
|
||||
biosram_write32(BIOSRAM_UMA_BASE, (uint32_t) base);
|
||||
biosram_write32(BIOSRAM_UMA_BASE + 4, (uint32_t) (base >> 32));
|
||||
}
|
||||
|
||||
uint32_t get_uma_size(void)
|
||||
{
|
||||
return biosram_read32(BIOSRAM_UMA_SIZE);
|
||||
}
|
||||
|
||||
uint64_t get_uma_base(void)
|
||||
{
|
||||
uint64_t base;
|
||||
base = biosram_read32(BIOSRAM_UMA_BASE);
|
||||
base |= ((uint64_t)(biosram_read32(BIOSRAM_UMA_BASE + 4)) << 32);
|
||||
return base;
|
||||
}
|
||||
|
Reference in New Issue
Block a user