diff options
author | Andrey Petrov <anpetrov@fb.com> | 2020-03-30 12:25:06 -0700 |
---|---|---|
committer | Andrey Petrov <andrey.petrov@gmail.com> | 2020-04-04 04:27:45 +0000 |
commit | 8670e829a8f2f6e56c2405333a171c2bc7cd017b (patch) | |
tree | 11bde530ae6212446d31aad71ad7d79eeac5fa5e /src/soc/intel/xeon_sp/cpx/chip.c | |
parent | ebda03ea5637cb2dd0b7426cbac72a4738ef7233 (diff) |
soc/intel/xeon_sp/cpx: Add multi-core init
Add minimal MP init. No SMM, no turbo, not c/p states.
TEST=boot linux kernel, observe CPUs are online, schedule tasks
and perform useful work. Tested on Cedar Island CRB with only 1
socket populated
Change-Id: I0af374ab3956009e9208917d911d29eb21db6069
Signed-off-by: Andrey Petrov <anpetrov@fb.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40035
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Maxim Polyakov <max.senia.poliak@gmail.com>
Diffstat (limited to 'src/soc/intel/xeon_sp/cpx/chip.c')
-rw-r--r-- | src/soc/intel/xeon_sp/cpx/chip.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/soc/intel/xeon_sp/cpx/chip.c b/src/soc/intel/xeon_sp/cpx/chip.c index dbbf3b31a5..e4063dc99d 100644 --- a/src/soc/intel/xeon_sp/cpx/chip.c +++ b/src/soc/intel/xeon_sp/cpx/chip.c @@ -7,6 +7,7 @@ #include <cpu/x86/lapic.h> #include <device/pci.h> #include <fsp/api.h> +#include <soc/cpu.h> #include <soc/ramstage.h> #include <soc/pm.h> @@ -29,16 +30,11 @@ static struct device_operations pci_domain_ops = { .scan_bus = &pci_domain_scan_bus, }; -static void init_cpus(struct device *dev) -{ - /* not implemented yet */ -} - static struct device_operations cpu_bus_ops = { .read_resources = DEVICE_NOOP, .set_resources = DEVICE_NOOP, .enable_resources = DEVICE_NOOP, - .init = init_cpus, + .init = cpx_init_cpus, .scan_bus = NULL, }; |