Skip to content
  • Alexander Graf's avatar
    3601b572
    dt: add helper for phandle allocation · 3601b572
    Alexander Graf authored
    
    
    Phandle references work by having 2 pieces:
    
      - a "phandle" 1-cell property in the device tree node
      - a reference to the same value in a property we want to point
        to the other node
    
    To generate the 1-cell property, we need an allocation mechanism that
    gives us a unique number space. This patch adds an allocator for these
    properties.
    
    Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
    3601b572
    dt: add helper for phandle allocation
    Alexander Graf authored
    
    
    Phandle references work by having 2 pieces:
    
      - a "phandle" 1-cell property in the device tree node
      - a reference to the same value in a property we want to point
        to the other node
    
    To generate the 1-cell property, we need an allocation mechanism that
    gives us a unique number space. This patch adds an allocator for these
    properties.
    
    Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
Loading