soc/intel/apollolake: Use CPU common library code
This patch makes SOC files to use common/block/cpu/cpulib.c file's helper functions. Change-Id: I529c67cf20253cf819d1c13849300788104b083c Signed-off-by: Barnali Sarkar <barnali.sarkar@intel.com> Reviewed-on: https://review.coreboot.org/19827 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Subrata Banik <subrata.banik@intel.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Aaron Durbin
parent
1517bab693
commit
66fe0c43be
@@ -28,7 +28,9 @@
|
||||
#include <device/device.h>
|
||||
#include <device/pci.h>
|
||||
#include <fsp/api.h>
|
||||
#include <intelblocks/cpulib.h>
|
||||
#include <intelblocks/fast_spi.h>
|
||||
#include <intelblocks/msr.h>
|
||||
#include <reg_script.h>
|
||||
#include <romstage_handoff.h>
|
||||
#include <soc/cpu.h>
|
||||
@@ -58,13 +60,6 @@ static const struct reg_script core_msr_script[] = {
|
||||
REG_SCRIPT_END
|
||||
};
|
||||
|
||||
void enable_untrusted_mode(void)
|
||||
{
|
||||
msr_t msr = rdmsr(MSR_POWER_MISC);
|
||||
msr.lo |= ENABLE_IA_UNTRUSTED;
|
||||
wrmsr(MSR_POWER_MISC, msr);
|
||||
}
|
||||
|
||||
static void soc_core_init(device_t cpu)
|
||||
{
|
||||
/* Set core MSRs */
|
||||
|
Reference in New Issue
Block a user