summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/soc/amd/stoneyridge/cpu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/soc/amd/stoneyridge/cpu.c b/src/soc/amd/stoneyridge/cpu.c
index 0490137988..86429e207e 100644
--- a/src/soc/amd/stoneyridge/cpu.c
+++ b/src/soc/amd/stoneyridge/cpu.c
@@ -24,6 +24,7 @@
#include <soc/cpu.h>
#include <soc/northbridge.h>
#include <soc/smi.h>
+#include <soc/iomap.h>
#include <console/console.h>
/*
@@ -47,6 +48,10 @@ static struct smm_relocation_attrs relo_attrs;
static void pre_mp_init(void)
{
x86_setup_mtrrs_with_detect();
+
+ /* The flash is now no longer cacheable. Reset to WP for performance. */
+ mtrr_use_temp_range(FLASH_BASE_ADDR, CONFIG_ROM_SIZE, MTRR_TYPE_WRPROT);
+
x86_mtrr_check();
}