]> git.dujemihanovic.xyz Git - u-boot.git/commit
fdt: Correct condition for bloblist existing
authorSimon Glass <sjg@chromium.org>
Wed, 31 Jul 2024 14:49:05 +0000 (08:49 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 5 Aug 2024 18:15:29 +0000 (12:15 -0600)
commitcafde93ec02d654a092ee5b3fd0ed706347a9744
tree702658d634d679425ef115a096ebe21e92790916
parentcbf3d274cf3b5f4623f73a784337ab4f50b3a10b
fdt: Correct condition for bloblist existing

On some boards, the bloblist is created in SPL once SDRAM is ready. It
cannot be accessed until that point, so is not available early in SPL.

Add a condition to avoid a hang in this case.

This fixes a hang in chromebook_coral

Fixes: 70fe2385943 ("fdt: Allow the devicetree to come from a bloblist")
Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Raymond Mao <raymond.mao@linaro.org>
lib/fdtdec.c