soc/intel/broadwell: Use Haswell CPU headers
Now that the boards use Haswell's CPU code, Broadwell can be updated. Change-Id: If07e5272f07edb59bb18eef1f80d7d5807b26e66 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46949 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
739a6ad1ac
commit
9d733def59
|
@ -168,12 +168,19 @@ void intel_cpu_haswell_finalize_smm(void);
|
|||
void set_power_limits(u8 power_limit_1_time);
|
||||
int cpu_config_tdp_levels(void);
|
||||
|
||||
void set_max_freq(void);
|
||||
|
||||
/* CPU identification */
|
||||
static inline u32 cpu_family_model(void)
|
||||
{
|
||||
return cpuid_eax(1) & 0x0fff0ff0;
|
||||
}
|
||||
|
||||
static inline u32 cpu_stepping(void)
|
||||
{
|
||||
return cpuid_eax(1) & 0xf;
|
||||
}
|
||||
|
||||
static inline int haswell_is_ult(void)
|
||||
{
|
||||
return CONFIG(INTEL_LYNXPOINT_LP);
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include <arch/ioapic.h>
|
||||
#include <arch/smp/mpspec.h>
|
||||
#include <cbmem.h>
|
||||
#include <cpu/intel/haswell/haswell.h>
|
||||
#include <device/pci_ops.h>
|
||||
#include <cpu/x86/smm.h>
|
||||
#include <console/console.h>
|
||||
|
@ -15,10 +16,8 @@
|
|||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/intel/turbo.h>
|
||||
#include <soc/acpi.h>
|
||||
#include <soc/cpu.h>
|
||||
#include <soc/iomap.h>
|
||||
#include <soc/lpc.h>
|
||||
#include <soc/msr.h>
|
||||
#include <soc/pci_devs.h>
|
||||
#include <soc/pm.h>
|
||||
#include <soc/systemagent.h>
|
||||
|
|
|
@ -2,10 +2,8 @@
|
|||
|
||||
#include <arch/cpu.h>
|
||||
#include <console/console.h>
|
||||
#include <cpu/intel/haswell/haswell.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <soc/cpu.h>
|
||||
#include <soc/msr.h>
|
||||
#include <soc/romstage.h>
|
||||
|
||||
void set_max_freq(void)
|
||||
{
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include <bootmode.h>
|
||||
#include <commonlib/helpers.h>
|
||||
#include <console/console.h>
|
||||
#include <cpu/intel/haswell/haswell.h>
|
||||
#include <delay.h>
|
||||
#include <device/device.h>
|
||||
#include <device/pci.h>
|
||||
|
@ -16,7 +17,6 @@
|
|||
#include <drivers/intel/gma/i915_reg.h>
|
||||
#include <drivers/intel/gma/libgfxinit.h>
|
||||
#include <drivers/intel/gma/opregion.h>
|
||||
#include <soc/cpu.h>
|
||||
#include <soc/pm.h>
|
||||
#include <soc/ramstage.h>
|
||||
#include <soc/systemagent.h>
|
||||
|
@ -527,7 +527,7 @@ static void igd_init(struct device *dev)
|
|||
reg_script_run_on_dev(dev, broadwell_early_init_script);
|
||||
|
||||
/* Set GFXPAUSE based on stepping */
|
||||
if (cpu_stepping() <= (CPUID_BROADWELL_E0 & 0xf) &&
|
||||
if (cpu_stepping() <= (CPUID_BROADWELL_ULT_E0 & 0xf) &&
|
||||
systemagent_revision() <= 9) {
|
||||
gtt_write(0xa000, 0x300ff);
|
||||
} else {
|
||||
|
|
|
@ -20,8 +20,6 @@ struct chipset_power_state;
|
|||
struct chipset_power_state *fill_power_state(void);
|
||||
void report_platform_info(void);
|
||||
|
||||
void set_max_freq(void);
|
||||
|
||||
void systemagent_early_init(void);
|
||||
void pch_early_init(void);
|
||||
void pch_uart_init(void);
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <console/console.h>
|
||||
#include <cpu/intel/haswell/haswell.h>
|
||||
#include <acpi/acpi.h>
|
||||
#include <device/pci_ops.h>
|
||||
#include <stdint.h>
|
||||
|
@ -10,7 +11,6 @@
|
|||
#include <device/pci_ids.h>
|
||||
#include <vendorcode/google/chromeos/chromeos.h>
|
||||
#include <soc/acpi.h>
|
||||
#include <soc/cpu.h>
|
||||
#include <soc/iomap.h>
|
||||
#include <soc/pci_devs.h>
|
||||
#include <soc/ramstage.h>
|
||||
|
|
|
@ -15,10 +15,8 @@
|
|||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/intel/turbo.h>
|
||||
#include <soc/acpi.h>
|
||||
#include <soc/cpu.h>
|
||||
#include <soc/iomap.h>
|
||||
#include <soc/lpc.h>
|
||||
#include <soc/msr.h>
|
||||
#include <soc/pci_devs.h>
|
||||
#include <soc/pm.h>
|
||||
#include <soc/systemagent.h>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <console/console.h>
|
||||
#include <cpu/intel/haswell/haswell.h>
|
||||
#include <device/device.h>
|
||||
#include <device/pci.h>
|
||||
#include <device/pciexp.h>
|
||||
|
@ -14,7 +15,6 @@
|
|||
#include <soc/pci_devs.h>
|
||||
#include <soc/rcba.h>
|
||||
#include <soc/intel/broadwell/pch/chip.h>
|
||||
#include <soc/cpu.h>
|
||||
#include <delay.h>
|
||||
|
||||
/* Low Power variant has 6 root ports. */
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <cpu/intel/haswell/haswell.h>
|
||||
#include <delay.h>
|
||||
#include <device/device.h>
|
||||
#include <device/pci.h>
|
||||
|
@ -9,7 +10,6 @@
|
|||
#include <device/pci_ops.h>
|
||||
#include <soc/ramstage.h>
|
||||
#include <soc/xhci.h>
|
||||
#include <soc/cpu.h>
|
||||
|
||||
#ifdef __SIMPLE_DEVICE__
|
||||
static u8 *usb_xhci_mem_base(pci_devfn_t dev)
|
||||
|
|
|
@ -5,27 +5,28 @@
|
|||
#include <console/console.h>
|
||||
#include <device/pci.h>
|
||||
#include <string.h>
|
||||
#include <cpu/intel/haswell/haswell.h>
|
||||
#include <cpu/intel/microcode.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <soc/cpu.h>
|
||||
#include <soc/pch.h>
|
||||
#include <soc/pci_devs.h>
|
||||
#include <soc/romstage.h>
|
||||
#include <soc/systemagent.h>
|
||||
|
||||
/* FIXME: Needs an update */
|
||||
static struct {
|
||||
u32 cpuid;
|
||||
const char *name;
|
||||
} cpu_table[] = {
|
||||
{ CPUID_HASWELL_A0, "Haswell A0" },
|
||||
{ CPUID_HASWELL_B0, "Haswell B0" },
|
||||
{ CPUID_HASWELL_C0, "Haswell C0" },
|
||||
{ CPUID_HASWELL_ULT_B0, "Haswell ULT B0" },
|
||||
{ CPUID_HASWELL_ULT, "Haswell ULT C0 or D0" },
|
||||
{ CPUID_HASWELL_HALO, "Haswell Perf Halo" },
|
||||
{ CPUID_BROADWELL_C0, "Broadwell C0" },
|
||||
{ CPUID_BROADWELL_D0, "Broadwell D0" },
|
||||
{ CPUID_BROADWELL_E0, "Broadwell E0 or F0" },
|
||||
{ CPUID_HASWELL_A0, "Haswell A0" },
|
||||
{ CPUID_HASWELL_B0, "Haswell B0" },
|
||||
{ CPUID_HASWELL_C0, "Haswell C0" },
|
||||
{ CPUID_HASWELL_ULT_B0, "Haswell ULT B0" },
|
||||
{ CPUID_HASWELL_ULT_C0, "Haswell ULT C0 or D0" },
|
||||
{ CPUID_CRYSTALWELL_C0, "Haswell Perf Halo" },
|
||||
{ CPUID_BROADWELL_ULT_C0, "Broadwell C0" },
|
||||
{ CPUID_BROADWELL_ULT_D0, "Broadwell D0" },
|
||||
{ CPUID_BROADWELL_ULT_E0, "Broadwell E0 or F0" },
|
||||
};
|
||||
|
||||
static struct {
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#include <acpi/acpi.h>
|
||||
#include <arch/romstage.h>
|
||||
#include <console/console.h>
|
||||
#include <cpu/intel/haswell/haswell.h>
|
||||
#include <elog.h>
|
||||
#include <romstage_handoff.h>
|
||||
#include <soc/gpio.h>
|
||||
|
|
Loading…
Reference in New Issue