Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • early-display
  • variant-emmc-nvme-boot
  • 2023-01-25
  • v3
  • variant-emmc-nvme-boot
  • 2020-06-01
7 results

fdt_support.c

Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Timur Tabi's avatar
    50bf17bd
    fdt: update fdt_alloc_phandle to use fdt_get_phandle · 50bf17bd
    Timur Tabi authored
    
    The device tree compiler, dtc, can use "phandle" and/or "linux,phandle"
    properties to specify the phandle for any node.  By default, it uses
    both, but "linux,phandle" is deprecated.  One day, we'd like to stop using
    "linux,phandle", but U-boot needs to support both properties equally
    first.
    
    fdt_alloc_phandle() generates a unique phandle, but it was only checking
    the "linux,phandle" properties.  Instead, we use fdt_get_phandle(),
    which checks both properties automatically.  This ensures that we
    support dtbs that only use "phandle".
    
    The side-effect is that fdt_alloc_phandle() now takes twice as long, since
    it has to check for two properties instead of one in each node that it
    searches.
    
    Signed-off-by: default avatarTimur Tabi <timur@freescale.com>
    50bf17bd
    History
    fdt: update fdt_alloc_phandle to use fdt_get_phandle
    Timur Tabi authored
    
    The device tree compiler, dtc, can use "phandle" and/or "linux,phandle"
    properties to specify the phandle for any node.  By default, it uses
    both, but "linux,phandle" is deprecated.  One day, we'd like to stop using
    "linux,phandle", but U-boot needs to support both properties equally
    first.
    
    fdt_alloc_phandle() generates a unique phandle, but it was only checking
    the "linux,phandle" properties.  Instead, we use fdt_get_phandle(),
    which checks both properties automatically.  This ensures that we
    support dtbs that only use "phandle".
    
    The side-effect is that fdt_alloc_phandle() now takes twice as long, since
    it has to check for two properties instead of one in each node that it
    searches.
    
    Signed-off-by: default avatarTimur Tabi <timur@freescale.com>