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

libfdt

  • Clone with SSH
  • Clone with HTTPS
  • Forked from Reform / reform-boundary-uboot
    39131 commits behind the upstream repository.
    user avatar
    David Gibson authored
    Currently, the Linux kernel, libfdt and dtc, when using flattened
    device trees encode a node's phandle into a property named
    "linux,phandle".  The ePAPR specification, however - aiming as it is
    to not be a Linux specific spec - requires that phandles be encoded in
    a property named simply "phandle".
    
    This patch adds support for this newer approach to dtc and libfdt.
    Specifically:
    
    	- fdt_get_phandle() will now return the correct phandle if it
              is supplied in either of these properties
    
    	- fdt_node_offset_by_phandle() will correctly find a node with
              the given phandle encoded in either property.
    
    	- By default, when auto-generating phandles, dtc will encode
              it into both properties for maximum compatibility.  A new -H
              option allows either only old-style or only new-style
              properties to be generated.
    
    	- If phandle properties are explicitly supplied in the dts
    	  file, dtc will not auto-generate ones in the alternate format.
    
    	- If both properties are supplied, dtc will check that they
              have the same value.
    
    	- Some existing testcases are updated to use a mix of old and
              new-style phandles, partially testing the changes.
    
    	- A new phandle_format test further tests the libfdt support,
              and the -H option.
    
    Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
    
    This was extracted from the DTC commit:
    d75b33af676d0beac8398651a7f09037555a550b Mon Sep 17 00:00:00 2001
    
    Signed-off-by: default avatarGerald Van Baren <vanbaren@cideas.com>
    05a22ba0
    History
    The libfdt functionality was written by David Gibson.  The original
    source came from the git repository:
    
    URL:		git://ozlabs.org/home/dgibson/git/libfdt.git
    
    author		David Gibson <dgibson@sneetch.(none)>
    		Fri, 23 Mar 2007 04:16:54 +0000 (15:16 +1100)
    committer	David Gibson <dgibson@sneetch.(none)>
    		Fri, 23 Mar 2007 04:16:54 +0000 (15:16 +1100)
    commit		857f54e79f74429af20c2b5ecc00ee98af6a3b8b
    tree		2f648f0f88225a51ded452968d28b4402df8ade0
    parent		07a12a08005f3b5cd9337900a6551e450c07b515
    
    To adapt for u-boot usage, only the applicable files were copied and
    imported into the u-boot git repository.
    Omitted:
    * GPL - u-boot comes with a copy of the GPL license
    * test subdirectory - not directly useful for u-boot
    
    After importing, other customizations were performed.  See the git log
    for details.
    
    Jerry Van Baren