Simon Glass | fcfd26e | 2019-12-08 17:40:14 -0700 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | /* | ||||
3 | * Copyright 2019 Google LLC | ||||
4 | */ | ||||
5 | |||||
6 | #include <common.h> | ||||
7 | #include <asm/cpu_common.h> | ||||
8 | #include <asm/msr.h> | ||||
9 | |||||
10 | void cpu_flush_l1d_to_l2(void) | ||||
11 | { | ||||
12 | struct msr_t msr; | ||||
13 | |||||
14 | msr = msr_read(MSR_POWER_MISC); | ||||
15 | msr.lo |= FLUSH_DL1_L2; | ||||
16 | msr_write(MSR_POWER_MISC, msr); | ||||
17 | } |