]> git.baikalelectronics.ru Git - uboot.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)
commit725906c4fac102f5e44f5bd1d024be6538a1b69f
tree06f97df03ef571baa9fc3814900393b176e991fc
parent55a0f7675715a1966d0b49affc7cd97abc339e3a
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