rpi: always set fdt_addr to the correct value 21/271921/1 submit/tizen/20220306.235131
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 14 Feb 2022 10:35:12 +0000 (11:35 +0100)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 14 Feb 2022 10:38:50 +0000 (11:38 +0100)
commit4fda4ecea3f9a1bf09c75bbaf8c59817bf11e668
tree250d1dc6c561373d4b56be3191a4e4b21bc1e6b4
parent13c0a6b7bdbe5a066727181f3f4b9837e3268a62
rpi: always set fdt_addr to the correct value

The fdt_addr env have meaning only for the current runtime and it depends
on the dtb size or firmware version. If one save the environment to disk
and the loads it on the latter boot, the fdt_addr might change, what
result in passing incorrect dtb address to the kernel. Fix this by always
setting the fdt_addr env. This fixes system operation after saving the
env to disk and updating i.e. dtb files or firmware.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I8f242e0d92ff7cc8557c0fd4a7459804270d5d6d
board/raspberrypi/rpi/rpi.c