Skip to content
  • Rob Herring's avatar
    of/fdt: Convert FDT functions to use libfdt · e6a6928c
    Rob Herring authored
    
    
    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: default avatarRob Herring <robh@kernel.org>
    Tested-by: default avatarMichal Simek <michal.simek@xilinx.com>
    Tested-by: default avatarGrant Likely <grant.likely@linaro.org>
    Tested-by: default avatarStephen Chivers <schivers@csc.com>
    e6a6928c