From 6a4c237af93e698b03ab962437aa6f9de552f6a4 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 8 Dec 2019 17:40:14 -0700 Subject: x86: apl: Add a CPU driver Add a bare-bones CPU driver so that CPUs can be probed. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- arch/x86/cpu/apollolake/cpu_common.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 arch/x86/cpu/apollolake/cpu_common.c (limited to 'arch/x86/cpu/apollolake/cpu_common.c') diff --git a/arch/x86/cpu/apollolake/cpu_common.c b/arch/x86/cpu/apollolake/cpu_common.c new file mode 100644 index 0000000000..ba6bda37bc --- /dev/null +++ b/arch/x86/cpu/apollolake/cpu_common.c @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright 2019 Google LLC + */ + +#include +#include +#include + +void cpu_flush_l1d_to_l2(void) +{ + struct msr_t msr; + + msr = msr_read(MSR_POWER_MISC); + msr.lo |= FLUSH_DL1_L2; + msr_write(MSR_POWER_MISC, msr); +} -- cgit