dm: core: Add livetree access functions
authorSimon Glass <sjg@chromium.org>
Fri, 19 May 2017 02:08:54 +0000 (20:08 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 1 Jun 2017 13:03:06 +0000 (07:03 -0600)
commit644ec0a933ef5c4f8e82b9fd8df9439386d0444d
tree7ec0604bb2102c0520ec44f596f91c7a0c5d8785
parent5e060d8bcca86dd4b88af607396a96cf6c557ca7
dm: core: Add livetree access functions

Add a basic assortment of functions to access the live device tree. These
come from Linux v4.9 and are modified for U-Boot to the minimum extent
possible. While these functions are now very stable in Linux, it will be
possible to merge in fixes if needed.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/Makefile
drivers/core/of_access.c [new file with mode: 0644]
include/dm/of_access.h [new file with mode: 0644]