libfdt: Add overlay application function

The device tree overlays are a good way to deal with user-modifyable
boards or boards with some kind of an expansion mechanism where we can
easily plug new board in (like the BBB, the Raspberry Pi or the CHIP).

Add a new function to merge overlays with a base device tree.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
This commit is contained in:
Maxime Ripard
2016-07-05 10:26:44 +02:00
committed by Tom Rini
parent ea7b1a213e
commit ddf67f7135
4 changed files with 442 additions and 0 deletions
+5
View File
@@ -139,6 +139,11 @@ config OF_LIBFDT
particular compatible nodes. The library operates on a flattened
version of the device tree.
config OF_LIBFDT_OVERLAY
bool "Enable the FDT library overlay support"
help
This enables the FDT library (libfdt) overlay support.
config SPL_OF_LIBFDT
bool "Enable the FDT library for SPL"
default y if SPL_OF_CONTROL