BUTTERFLY-FIRMWARE: Do not initialize device tree twice

On coreboot flavor of u-boot the device tree is read from CBFS while
running in the 'ROM based' mode (even though running from DRAM). A
memory area preserved by coreboot is used for storing the volatile
copy of the device tree.

The relocated instance of u-boot again reads the device tree from the
CBFS, and uses a malloc'ed buffer for that. This is not necessary and
even harmful, as the device tree modifications made while running 'ROM
based' get lost.

This change drops the code retrieving the device tree from CBFS for
the second time.

BRANCH=butterfly
BUG=chrome-os-partner:9512
TEST=manual, verifed basic firmware functionality.

Change-Id: I066aa5dd9159fa9a8996bd8910a9a4ddcb372927
Original-Change-Id: I2cf856cf4356f0513707ce39e4750a44a53a9212
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/35772
Commit-Ready: Shawn Nematbakhsh <shawnn@google.com>
Reviewed-by: Shawn Nematbakhsh <shawnn@google.com>
Tested-by: Shawn Nematbakhsh <shawnn@google.com>
1 file changed