soc/intel/baytrail: use mp_cpu_bus_init
Implement mp_init_cpus and use mp_cpu_bus_init as init function in cpu_bus_ops. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I057ae8d95bdc510e9e7afb144b692531107fa45d Reviewed-on: https://review.coreboot.org/c/coreboot/+/58506 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org>
This commit is contained in:
parent
4dd7d11965
commit
37e160efb5
3 changed files with 3 additions and 5 deletions
|
@ -17,7 +17,7 @@ static struct device_operations pci_domain_ops = {
|
||||||
static struct device_operations cpu_bus_ops = {
|
static struct device_operations cpu_bus_ops = {
|
||||||
.read_resources = noop_read_resources,
|
.read_resources = noop_read_resources,
|
||||||
.set_resources = noop_set_resources,
|
.set_resources = noop_set_resources,
|
||||||
.init = baytrail_init_cpus,
|
.init = mp_cpu_bus_init,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void enable_dev(struct device *dev)
|
static void enable_dev(struct device *dev)
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
#include <cpu/x86/msr.h>
|
#include <cpu/x86/msr.h>
|
||||||
#include <cpu/x86/mtrr.h>
|
#include <cpu/x86/mtrr.h>
|
||||||
#include <cpu/x86/smm.h>
|
#include <cpu/x86/smm.h>
|
||||||
|
#include <device/device.h>
|
||||||
#include <reg_script.h>
|
#include <reg_script.h>
|
||||||
#include <soc/iosf.h>
|
#include <soc/iosf.h>
|
||||||
#include <soc/msr.h>
|
#include <soc/msr.h>
|
||||||
|
@ -193,10 +194,8 @@ static const struct mp_ops mp_ops = {
|
||||||
.post_mp_init = post_mp_init,
|
.post_mp_init = post_mp_init,
|
||||||
};
|
};
|
||||||
|
|
||||||
void baytrail_init_cpus(struct device *dev)
|
void mp_init_cpus(struct bus *cpu_bus)
|
||||||
{
|
{
|
||||||
struct bus *cpu_bus = dev->link_list;
|
|
||||||
|
|
||||||
/* TODO: Handle mp_init_with_smm failure? */
|
/* TODO: Handle mp_init_with_smm failure? */
|
||||||
mp_init_with_smm(cpu_bus, &mp_ops);
|
mp_init_with_smm(cpu_bus, &mp_ops);
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
/* The baytrail_init_pre_device() function is called prior to device
|
/* The baytrail_init_pre_device() function is called prior to device
|
||||||
* initialization, but it's after console and cbmem has been reinitialized. */
|
* initialization, but it's after console and cbmem has been reinitialized. */
|
||||||
void baytrail_init_pre_device(struct soc_intel_baytrail_config *config);
|
void baytrail_init_pre_device(struct soc_intel_baytrail_config *config);
|
||||||
void baytrail_init_cpus(struct device *dev);
|
|
||||||
void southcluster_enable_dev(struct device *dev);
|
void southcluster_enable_dev(struct device *dev);
|
||||||
/* The baytrail_run_reference_code() function is provided by either
|
/* The baytrail_run_reference_code() function is provided by either
|
||||||
* native refcode or the ChromeBook refcode wrapper */
|
* native refcode or the ChromeBook refcode wrapper */
|
||||||
|
|
Loading…
Reference in a new issue