]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: mrccache: Allow use before driver model is active
authorSimon Glass <sjg@chromium.org>
Wed, 27 May 2020 12:58:49 +0000 (06:58 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 2 Jun 2020 01:16:13 +0000 (09:16 +0800)
commit70c3c911cc29237fdb1a561ea64df05b35a6790a
tree39d2704fc95bf013683d7a3d0363db8a15e15160
parentd7413deaddfc247a0d911fcfdcccba412e3661ed
x86: mrccache: Allow use before driver model is active

The change to avoid searching the device tree does not work on boards
wich don't have driver model set up this early, for example minnowmax.
Put back the old code (converted to livetree) as a fallback for these
devices. Also update the documentation.

This is tested on minnowmax, link, samus and coral.

Fixes: 87f1084a630 (x86: Adjust mrccache_get_region() to use livetree)
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com> (on Intel minnowmax)
arch/x86/include/asm/mrccache.h
arch/x86/lib/mrccache.c