firmware: fw_base: Make builtin DTB available to fw_platform_init()
authorAnup Patel <anup.patel@wdc.com>
Sat, 23 May 2020 06:07:15 +0000 (11:37 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 5 Jun 2020 03:32:30 +0000 (09:02 +0530)
commit64f140830d758ebcf9d9b6ab071ae24fcc37b884
treeca4c8a1f9c57f61f6dfbed7176e1e16a2aed7a97
parent30b60401e1a88164d91ed0c7cccaecb17f71afd8
firmware: fw_base: Make builtin DTB available to fw_platform_init()

Currently, fw_prev_arg1() is called after fw_platform_init() which
caused builtin DTB to be not available to fw_platform_init().

To allow builtin DTB available to fw_platform_init(), we should
call fw_save_info() and fw_prev_arg1() before fw_platform_init().

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