board: lx2160a: fix fsl-mc status in fdt with bootefi
authorMian Yousaf Kaukab <ykaukab@suse.de>
Thu, 23 May 2019 08:57:33 +0000 (10:57 +0200)
committerPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Wed, 19 Jun 2019 07:24:57 +0000 (12:54 +0530)
commitde0f9ad1dee7eb39c0c7b38ea99918823b4f1204
treecc913269ff159eaf8f1673a725e77b5f6b5e625a
parent91f54e7c61241ef31dbccf04fd269b5757882897
board: lx2160a: fix fsl-mc status in fdt with bootefi

fsl-mc lazyapply command applies dpl from efi_exit_boot_services().
Status of fsl-mc node in working fdt is updated at this stage.
However, an efi application like grub may already have copied the fdt.
So the updates to fdt done at efi_exit_boot_services() may not be
visible to the OS. Fix it by updating fdt earlier if fsl-mc lazyapply
command is used.

Signed-off-by: Mian Yousaf Kaukab <ykaukab@suse.de>
Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
board/freescale/lx2160a/lx2160a.c