soc/baytrail: add vmx support via CPU_INTEL_COMMON

Mirrors addition to Braswell SoC in commit d3d0f07.

Test: build/boot Windows 10 on Baytrail ChromeOS device, verify Windows shows
virtualization as enabled.

Change-Id: Ia1fafa73325814fed30b2ac91290b682dd8eab04
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/30228
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
Matt DeVillier 2017-01-19 21:13:02 -06:00 committed by Patrick Georgi
parent 74427cc554
commit e5a1a4c5d6
3 changed files with 6 additions and 0 deletions

View File

@ -40,6 +40,7 @@ config CPU_SPECIFIC_OPTIONS
select INTEL_GMA_SWSMISCI select INTEL_GMA_SWSMISCI
select POSTCAR_STAGE select POSTCAR_STAGE
select POSTCAR_CONSOLE select POSTCAR_CONSOLE
select CPU_INTEL_COMMON
config VBOOT config VBOOT
select VBOOT_STARTS_IN_ROMSTAGE select VBOOT_STARTS_IN_ROMSTAGE

View File

@ -7,6 +7,7 @@ subdirs-y += ../../../cpu/x86/smm
subdirs-y += ../../../cpu/x86/tsc subdirs-y += ../../../cpu/x86/tsc
subdirs-y += ../../../cpu/intel/microcode subdirs-y += ../../../cpu/intel/microcode
subdirs-y += ../../../cpu/intel/turbo subdirs-y += ../../../cpu/intel/turbo
subdirs-y += ../../../cpu/intel/common
ramstage-y += memmap.c ramstage-y += memmap.c
romstage-y += memmap.c romstage-y += memmap.c

View File

@ -16,6 +16,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <console/console.h> #include <console/console.h>
#include <cpu/cpu.h> #include <cpu/cpu.h>
#include <cpu/intel/common/common.h>
#include <cpu/intel/microcode.h> #include <cpu/intel/microcode.h>
#include <cpu/intel/turbo.h> #include <cpu/intel/turbo.h>
#include <cpu/x86/cache.h> #include <cpu/x86/cache.h>
@ -55,6 +56,9 @@ static void baytrail_core_init(struct device *cpu)
if (lapicid()) if (lapicid())
enable_turbo(); enable_turbo();
/* Set virtualization based on Kconfig option */
set_vmx();
/* Set core MSRs */ /* Set core MSRs */
reg_script_run(core_msr_script); reg_script_run(core_msr_script);