firmware: fw_base: Don't OR forced FW_OPTIONS
authorAnup Patel <anup.patel@wdc.com>
Sat, 23 May 2020 06:39:57 +0000 (12:09 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 5 Jun 2020 03:32:32 +0000 (09:02 +0530)
commit4ce6b7a82ac2c9f57186c00f23223dd39067555b
tree3e876d060f16facf500bbdd3d25c6381c62f913b
parent64f140830d758ebcf9d9b6ab071ae24fcc37b884
firmware: fw_base: Don't OR forced FW_OPTIONS

Currently, we are ORing FW_OPTIONS with the options passed by
previous booting stage to fw_dynamic. This causes confusion
because compiling fw_dynamic with FW_OPTIONS=0x2 does not force
enable boot prints as the U-Boot SPL passes options=0x1 in
fw_dyanmic_info.

The best thing to do is always prefer FW_OPTIONS when available.
This is intuitive for OpenSBI users and easy in debugging.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
firmware/fw_base.S