]> git.ipfire.org Git - people/ms/u-boot.git/commit - dts/Kconfig
dm: Add callback to modify the device tree
authormario.six@gdsys.cc <mario.six@gdsys.cc>
Wed, 22 Feb 2017 15:07:22 +0000 (16:07 +0100)
committerStefan Roese <sr@denx.de>
Thu, 23 Mar 2017 14:46:23 +0000 (15:46 +0100)
commit2a792753d6a1fe8f2310928ebd5534e4d87a8030
tree2628e0eeb931eaaba7eaeb02129abd2b43571a64
parent1ec2a80b10c5755cdadbe3c128b607f434e77372
dm: Add callback to modify the device tree

Certain boards come in different variations by way of utilizing daughter
boards, for example. These boards might contain additional chips, which
are added to the main board's busses, e.g. I2C.

The device tree support for such boards would either, quite naturally,
employ the overlay mechanism to add such chips to the tree, or would use
one large default device tree, and delete the devices that are actually
not present.

Regardless of approach, even on the U-Boot level, a modification of the
device tree is a prerequisite to have such modular families of boards
supported properly.

Therefore, we add an option to make the U-Boot device tree (the actual
copy later used by the driver model) writeable, and add a callback
method that allows boards to modify the device tree at an early stage,
at which, hopefully, also the application of device tree overlays will
be possible.

Signed-off-by: Mario Six <mario.six@gdsys.cc>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Stefan Roese <sr@denx.de>
common/board_f.c
doc/driver-model/fdt-fixup.txt [new file with mode: 0644]
dts/Kconfig
include/common.h