提交 32cef69d 编写于 作者: S Sean Anderson 提交者: Andes

riscv: Only enable OF_BOARD_FIXUP for S-Mode

It is unsafe to enable OF_BOARD_FIXUP only based on OF_SEPARATE.
OF_SEPARATE may indicate that the user wishes U-Boot to use a different
device tree than one obtained via OF_PRIOR_STAGE. However, OF_SEPARATE may
also indicate that the device tree which would be obtained via
OF_PRIOR_STAGE is invalid, nonexistant, or otherwise unusable. In this
latter case, enabling OF_BOARD_FIXUP will result in corruption of the
device tree. To remedy this, only enable OF_BOARD_FIXUP if U-Boot is
configured for S-Mode.

Fixes: 1c17e555Signed-off-by: NSean Anderson <seanga2@gmail.com>
Reviewed-by: NLeo Liang <ycliang@andestech.com>
上级 8bb7496e
......@@ -272,6 +272,6 @@ config STACK_SIZE_SHIFT
default 14
config OF_BOARD_FIXUP
default y if OF_SEPARATE
default y if OF_SEPARATE && RISCV_SMODE
endmenu
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册