of: preserve /memreserve/ entries
Some dts files for the Kernel specify a reserved memory area using the
/memreserve/ dtc directive. These entries get lost during
unflattening/flattening the device tree and are never passed to the
Kernel.

This patch fixes this behaviour. This is done by copying the entries
into a /memreserve node in the unflattened tree and moving them back
during flattening the tree. The entries added by barebox dynamically
are appended to the static entries from the original dtb.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent fe03b34 commit 1454a0e2cdb303378432806a682fafdac752e3fc
@Sascha Hauer Sascha Hauer authored on 25 Apr 2016
Showing 1 changed file
View
drivers/of/fdt.c