]> git.baikalelectronics.ru Git - uboot.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)
commitb5787a2b433dc558cf97b77065943b83fe8aa5d9
tree39d2704fc95bf013683d7a3d0363db8a15e15160
parent066f1359c95005bb8565fa42237bde3f87af93c2
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: 8f172af47d3 (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