diff options
author | Barnali Sarkar <barnali.sarkar@intel.com> | 2017-05-23 18:17:14 +0530 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2017-06-09 20:01:26 +0200 |
commit | 66fe0c43be7d886bec8c8aef55c406a53e65642e (patch) | |
tree | e220be03cbba401f8ad1ceed61d20c4a22a2f906 /src/soc/intel/apollolake/chip.c | |
parent | 1517bab69303dba1166a2f78b84f647618bbd003 (diff) | |
download | coreboot-66fe0c43be7d886bec8c8aef55c406a53e65642e.tar.xz |
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>
Diffstat (limited to 'src/soc/intel/apollolake/chip.c')
-rw-r--r-- | src/soc/intel/apollolake/chip.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/soc/intel/apollolake/chip.c b/src/soc/intel/apollolake/chip.c index e7c4d4c2e3..ef29a0311f 100644 --- a/src/soc/intel/apollolake/chip.c +++ b/src/soc/intel/apollolake/chip.c @@ -22,16 +22,18 @@ #include <console/console.h> #include <cpu/cpu.h> #include <cpu/x86/mp.h> +#include <cpu/x86/msr.h> #include <device/device.h> #include <device/pci.h> #include <intelblocks/fast_spi.h> +#include <intelblocks/msr.h> #include <fsp/api.h> #include <fsp/util.h> +#include <intelblocks/cpulib.h> #include <intelblocks/itss.h> #include <romstage_handoff.h> #include <soc/iomap.h> #include <soc/itss.h> -#include <soc/cpu.h> #include <soc/intel/common/vbt.h> #include <soc/nvs.h> #include <soc/pci_devs.h> @@ -547,7 +549,7 @@ struct chip_operations soc_intel_apollolake_ops = { static void drop_privilege_all(void) { /* Drop privilege level on all the CPUs */ - if (mp_run_on_all_cpus(&enable_untrusted_mode, 1000) < 0) + if (mp_run_on_all_cpus(&cpu_enable_untrusted_mode, 1000) < 0) printk(BIOS_ERR, "failed to enable untrusted mode\n"); } |