of/fdt: introduce of_scan_flat_dt_subnodes and of_get_flat_dt_phandle
authorNicholas Piggin <npiggin@gmail.com>
Tue, 18 Apr 2017 19:12:18 +0000 (05:12 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 9 May 2017 12:55:58 +0000 (22:55 +1000)
commitea47dd191d543f81e0912b5dc0471b48346b016e
tree2b3c5bcee2b645be83f5be38a025041817194b06
parent0b382fb3d905e2754302cf9097ffca13afb8b73f
of/fdt: introduce of_scan_flat_dt_subnodes and of_get_flat_dt_phandle

Introduce primitives for FDT parsing. These will be used for powerpc
cpufeatures node scanning, which has quite complex structure but should
be processed early.

Cc: devicetree@vger.kernel.org
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/of/fdt.c
include/linux/of_fdt.h