]> git.baikalelectronics.ru Git - kernel.git/commit
of/fdt: Convert FDT functions to use libfdt
authorRob Herring <robh@kernel.org>
Wed, 2 Apr 2014 20:10:14 +0000 (15:10 -0500)
committerRob Herring <robh@kernel.org>
Wed, 30 Apr 2014 05:59:15 +0000 (00:59 -0500)
commit04cf0b5b16e875be04c7d940b2c95d1b544aac7f
tree78d750ff16e29fa7aebafa3983e69026f498dfb2
parentc5ddb30f3219feb3b8328cac3e35d9e46722a9cb
of/fdt: Convert FDT functions to use libfdt

The kernel FDT functions predate libfdt and are much more limited in
functionality. Also, the kernel functions and libfdt functions are
not compatible with each other because they have different definitions
of node offsets. To avoid this incompatibility and in preparation to
add more FDT parsing functions which will need libfdt, let's first
convert the existing code to use libfdt.

The FDT unflattening, top-level FDT scanning, and property retrieval
functions are converted to use libfdt. The scanning code should be
re-worked to be more efficient and understandable by using libfdt to
find nodes directly by path or compatible strings.

Signed-off-by: Rob Herring <robh@kernel.org>
Tested-by: Michal Simek <michal.simek@xilinx.com>
Tested-by: Grant Likely <grant.likely@linaro.org>
Tested-by: Stephen Chivers <schivers@csc.com>
drivers/of/Kconfig
drivers/of/Makefile
drivers/of/fdt.c
include/linux/of_fdt.h