platform: sifive: fu540: Expand FDT size before any patching
authorBin Meng <bmeng.cn@gmail.com>
Thu, 8 Aug 2019 07:20:23 +0000 (00:20 -0700)
committerAnup Patel <anup@brainfault.org>
Fri, 9 Aug 2019 07:00:06 +0000 (12:30 +0530)
commit446b6f30a44a856e81aa50684ac428f30221f4bb
tree80e61ef5f9cf569b84785ca814939b658d8440ce
parentc1b9dd3ab5177c3f3116b713e0e398243f73f2fa
platform: sifive: fu540: Expand FDT size before any patching

We should expand the FDT size before any patching, otherwise it's
possible the "status" fix up might fail due to insufficient space.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
platform/sifive/fu540/platform.c