]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: Change condition for using CAR
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:11:43 +0000 (08:11 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:57:36 +0000 (13:57 +0800)
commit6172e94c3c4729347624626d71e4eaf96ff9dcb9
tree60fb165c81c067931ab5386cad5925a7b551db2a
parentc3863eadbc60d21b234ac5fb15c525b3cbc4f637
x86: Change condition for using CAR

At present we assume that CAR (Cache-as-RAM) is used if HOBs (Hand-off
blocks) are not, since HOBs typically indicate that an FSP is in use, and
FSPs handle the CAR init.

However this is a bit indirect, and for FSP2 machines which use their own
CAR implementation (such as apollolake) but use the FSP for other
functions, the logic is wrong.

To fix this, add a dedicated Kconfig option to indicate when CAR is used.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: fix a typo in the commit message]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/Kconfig
arch/x86/cpu/start.S
configs/slimbootloader_defconfig