diff options
author | Simon Glass <sjg@chromium.org> | 2023-05-04 16:50:58 -0600 |
---|---|---|
committer | Bin Meng <bmeng@tinylab.org> | 2023-05-11 10:25:29 +0800 |
commit | 50574d42cfb9d3346e6a9a7642db67aa2b24d365 (patch) | |
tree | b39303a68257fb7c741618b01faf3f69c6ad1f6b /arch/x86/lib/spl.c | |
parent | 80831b2a42cfe9bd3306059a818b8bc2b42a02d8 (diff) | |
download | u-boot-50574d42cfb9d3346e6a9a7642db67aa2b24d365.zip u-boot-50574d42cfb9d3346e6a9a7642db67aa2b24d365.tar.gz u-boot-50574d42cfb9d3346e6a9a7642db67aa2b24d365.tar.bz2 |
spl: Commit MTRRs only in board_init_f_r()
We don't need to commit the SPI-flash MTRR change immediately, since it is
now done in the board_init_f_r(). Also this causes chromebook_link64 to
hang, presumably since we are still running from CAR (Cache-as-RAM) in
SPL. Coral handles this OK, perhaps since it is running from a different
memory area, but it has no effect on Coral anyway.
Drop the extra mtrr_commit() in the SPL implementation.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/lib/spl.c')
-rw-r--r-- | arch/x86/lib/spl.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/lib/spl.c b/arch/x86/lib/spl.c index 61eb026..ca1645f 100644 --- a/arch/x86/lib/spl.c +++ b/arch/x86/lib/spl.c @@ -147,7 +147,6 @@ static int x86_spl_init(void) debug("%s: SPI cache setup failed (err=%d)\n", __func__, ret); return ret; } - mtrr_commit(true); # else ret = syscon_get_by_driver_data(X86_SYSCON_PUNIT, &punit); if (ret) |