Alexandru Gagniuc (mr.nuke.me@gmail.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/13365
-gerrit
commit e2e466cad54a1433dff433932a3f2db7f5b3075d Author: Alexandru Gagniuc alexandrux.gagniuc@intel.com Date: Fri Nov 13 16:43:36 2015 -0800
soc/apollolake: Call MTRR setup and allocation in CPU init
Change-Id: Ie64073c1c28f28f6b7f6fd465470d84511bf3744 Signed-off-by: Alexandru Gagniuc alexandrux.gagniuc@intel.com --- src/soc/intel/apollolake/Makefile.inc | 1 + src/soc/intel/apollolake/cpu.c | 7 +++++++ 2 files changed, 8 insertions(+)
diff --git a/src/soc/intel/apollolake/Makefile.inc b/src/soc/intel/apollolake/Makefile.inc index bdcacf2..bedbf07 100644 --- a/src/soc/intel/apollolake/Makefile.inc +++ b/src/soc/intel/apollolake/Makefile.inc @@ -2,6 +2,7 @@ ifeq ($(CONFIG_SOC_INTEL_APOLLOLAKE),y)
subdirs-y += ../../../cpu/intel/microcode subdirs-y += ../../../cpu/intel/turbo +subdirs-y += ../../../cpu/x86/cache subdirs-y += ../../../cpu/x86/lapic subdirs-y += ../../../cpu/x86/mtrr subdirs-y += ../../../cpu/x86/smm diff --git a/src/soc/intel/apollolake/cpu.c b/src/soc/intel/apollolake/cpu.c index 8f3ccb3..de1e3cd 100644 --- a/src/soc/intel/apollolake/cpu.c +++ b/src/soc/intel/apollolake/cpu.c @@ -11,12 +11,19 @@ */
#include <cpu/cpu.h> +#include <cpu/x86/cache.h> +#include <cpu/x86/mtrr.h> #include <device/device.h> #include <device/pci.h> #include <soc/cpu.h>
static void cpu_core_init(device_t cpu) { + /* Turn on cache */ + x86_enable_cache(); + /* Set up Memory Type Range Registers */ + x86_setup_mtrrs(); + x86_mtrr_check(); }
static struct device_operations cpu_dev_ops = {