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

fdtdec.c

Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Simon Glass's avatar
    c6782270
    fdt: Add function to allow aliases to refer to multiple nodes · c6782270
    Simon Glass authored
    
    Some devices can deal with multiple compatible properties. The devices
    need to know which nodes to bind to which features. For example an
    I2C driver which supports two different controller types will want to
    know which type it is dealing with in each case.
    
    The new fdtdec_add_aliases_for_id() function deals with this by allowing
    the driver to search for additional compatible nodes for a different ID.
    It can then detect the new ones and perform appropriate processing.
    
    Another option considered was to return a tuple (node offset, compat id)
    and have the function be passed a list of compatible IDs. This is more
    overhead for the common case though. We may add such a function later if
    more drivers in U-Boot require it.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    Signed-off-by: default avatarTom Warren <twarren@nvidia.com>
    c6782270
    History
    fdt: Add function to allow aliases to refer to multiple nodes
    Simon Glass authored
    
    Some devices can deal with multiple compatible properties. The devices
    need to know which nodes to bind to which features. For example an
    I2C driver which supports two different controller types will want to
    know which type it is dealing with in each case.
    
    The new fdtdec_add_aliases_for_id() function deals with this by allowing
    the driver to search for additional compatible nodes for a different ID.
    It can then detect the new ones and perform appropriate processing.
    
    Another option considered was to return a tuple (node offset, compat id)
    and have the function be passed a list of compatible IDs. This is more
    overhead for the common case though. We may add such a function later if
    more drivers in U-Boot require it.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    Signed-off-by: default avatarTom Warren <twarren@nvidia.com>