]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: Change testing logic of mtrr commit
authorBin Meng <bmeng.cn@gmail.com>
Mon, 31 Jul 2023 13:56:02 +0000 (07:56 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 1 Aug 2023 02:06:46 +0000 (10:06 +0800)
commit41fbb344695f224d70d3c469ea418015279ba55e
tree06f97df03ef571baa9fc3814900393b176e991fc
parent4e619e8d4fd68095bc665a78f2651d8e478a4534
x86: Change testing logic of mtrr commit

On Coral U-Boot SPL programs some MTRRs and FSPv2 in U-Boot proper
needs to program MTRRs too. With current testing logic of mtrr
commit in init_cache_f_r(), the mtrr commit is skipped which won't
work as the queued mtrr requests include setup for DRAM regions.

Change the logic to allow such configuration.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Tweak to put back CONFIG_FSP_VERSION2 at top:
Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/lib/init_helpers.c