soc/intel/xeon_sp: Set coreboot defined IOAPIC and HPET BDF
Don't rely on the FSP-S setting the HPET and IOAPIC BDF. This makes coreboot in control of these settings. Change-Id: I937ebf05533019cb1a2be771ef3b9193a458dddf Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47537 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marc Jones <marc@marcjonesconsulting.com>
This commit is contained in:
parent
6e425e1275
commit
3d802535cb
|
@ -1,3 +1,4 @@
|
|||
bootblock-$(CONFIG_SOC_INTEL_COMMON_BLOCK_P2SB) += p2sb.c
|
||||
romstage-$(CONFIG_SOC_INTEL_COMMON_BLOCK_P2SB) += p2sb.c
|
||||
ramstage-$(CONFIG_SOC_INTEL_COMMON_BLOCK_P2SB) += p2sb.c
|
||||
smm-$(CONFIG_SOC_INTEL_COMMON_BLOCK_P2SB) += p2sb.c
|
||||
|
|
|
@ -9,7 +9,7 @@ bootblock-y += bootblock.c spi.c lpc.c gpio.c pch.c
|
|||
romstage-y += romstage.c reset.c util.c spi.c gpio.c pmutil.c memmap.c
|
||||
romstage-y += ../../../cpu/intel/car/romstage.c
|
||||
ramstage-y += uncore.c reset.c util.c lpc.c spi.c gpio.c nb_acpi.c ramstage.c chip_common.c
|
||||
ramstage-y += memmap.c
|
||||
ramstage-y += memmap.c pch.c
|
||||
ramstage-$(CONFIG_SOC_INTEL_COMMON_BLOCK_PMC) += pmc.c
|
||||
ramstage-$(CONFIG_HAVE_ACPI_TABLES) += acpi.c
|
||||
postcar-y += spi.c
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include <soc/acpi.h>
|
||||
#include <soc/chip_common.h>
|
||||
#include <soc/cpu.h>
|
||||
#include <soc/pch.h>
|
||||
#include <soc/ramstage.h>
|
||||
#include <soc/p2sb.h>
|
||||
#include <soc/soc_util.h>
|
||||
|
@ -76,6 +77,7 @@ static void chip_init(void *data)
|
|||
{
|
||||
printk(BIOS_DEBUG, "coreboot: calling fsp_silicon_init\n");
|
||||
fsp_silicon_init(false);
|
||||
override_hpet_ioapic_bdf();
|
||||
pch_enable_ioapic();
|
||||
setup_lapic();
|
||||
p2sb_unhide();
|
||||
|
|
|
@ -9,4 +9,6 @@
|
|||
void pch_disable_devfn(struct device *dev);
|
||||
#endif
|
||||
|
||||
void override_hpet_ioapic_bdf(void);
|
||||
|
||||
#endif /* _SOC_PCH_H_ */
|
||||
|
|
|
@ -5,7 +5,9 @@
|
|||
#include <soc/pcr_ids.h>
|
||||
#include <intelblocks/pcr.h>
|
||||
#include <intelblocks/rtc.h>
|
||||
#include <intelblocks/p2sb.h>
|
||||
#include <soc/bootblock.h>
|
||||
#include <soc/pch.h>
|
||||
#include <soc/pmc.h>
|
||||
#include <console/console.h>
|
||||
|
||||
|
@ -51,3 +53,20 @@ void bootblock_pch_init(void)
|
|||
*/
|
||||
soc_config_acpibase();
|
||||
}
|
||||
|
||||
void override_hpet_ioapic_bdf(void)
|
||||
{
|
||||
union p2sb_bdf ioapic_bdf = {
|
||||
.bus = PCH_IOAPIC_BUS_NUMBER,
|
||||
.dev = PCH_IOAPIC_DEV_NUM,
|
||||
.fn = PCH_IOAPIC_FUNC_NUM,
|
||||
};
|
||||
union p2sb_bdf hpet_bdf = {
|
||||
.bus = HPET_BUS_NUM,
|
||||
.dev = HPET_DEV_NUM,
|
||||
.fn = HPET0_FUNC_NUM,
|
||||
};
|
||||
|
||||
p2sb_set_ioapic_bdf(ioapic_bdf);
|
||||
p2sb_set_hpet_bdf(hpet_bdf);
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#include <device/pci.h>
|
||||
#include <soc/acpi.h>
|
||||
#include <soc/chip_common.h>
|
||||
#include <soc/pch.h>
|
||||
#include <soc/ramstage.h>
|
||||
#include <soc/soc_util.h>
|
||||
#include <soc/util.h>
|
||||
|
@ -43,6 +44,7 @@ static void soc_init(void *data)
|
|||
{
|
||||
printk(BIOS_DEBUG, "coreboot: calling fsp_silicon_init\n");
|
||||
fsp_silicon_init(false);
|
||||
override_hpet_ioapic_bdf();
|
||||
}
|
||||
|
||||
static void soc_final(void *data)
|
||||
|
|
Loading…
Reference in New Issue