[coreboot-gerrit] New patch to review for coreboot: soc/apollolake: Call MTRR setup and allocation in CPU init
Andrey Petrov (andrey.petrov@intel.com)
gerrit at coreboot.org
Sun Jan 24 03:33:41 CET 2016
Andrey Petrov (andrey.petrov at intel.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/13365
-gerrit
commit c28f6f08c2b8d0c9618aaa88209ce1ed48570aa3
Author: Alexandru Gagniuc <alexandrux.gagniuc at 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 at 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 = {
More information about the coreboot-gerrit
mailing list