Skip to content
Snippets Groups Projects
  1. Oct 15, 2011
    • Wolfgang Denk's avatar
      Merge branch 'master' of git://git.denx.de/u-boot-fdt · 7bf5228c
      Wolfgang Denk authored
      * 'master' of git://git.denx.de/u-boot-fdt:
        powerpc/85xx: use fdt_create_phandle() to create the Fman firmware phandles
        fdt: update fdt_alloc_phandle to use fdt_get_phandle
        fdt: check for fdt errors in fdt_create_phandle
        fdt: Add a do_fixup_by_path_string() function
      7bf5228c
    • Timur Tabi's avatar
      powerpc/85xx: use fdt_create_phandle() to create the Fman firmware phandles · a2c1229c
      Timur Tabi authored
      
      Function fdt_create_phandle() conveniently creates new phandle properties
      using both "linux,phandle" and "phandle", so it should be used by all code
      that wants to create a phandle.
      
      The Fman firmware code, which embeds an Fman firmware into the device tree,
      was creating the phandle properties manually.  Instead, change it to use
      fdt_create_phandle().
      
      Signed-off-by: default avatarTimur Tabi <timur@freescale.com>
      a2c1229c
    • Timur Tabi's avatar
      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
    • Timur Tabi's avatar
      fdt: check for fdt errors in fdt_create_phandle · 3c927ccc
      Timur Tabi authored
      
      fdt_create_phandle() was ignoring errors from fdt_set_phandle().  If an
      error occurs, print an error message and return 0, which is an invalid
      phandle.  We also need to change the return type for fdt_create_phandle()
      to indicate that it cannot return an error code.
      
      Signed-off-by: default avatarTimur Tabi <timur@freescale.com>
      3c927ccc
    • Chunhe Lan's avatar
      fdt: Add a do_fixup_by_path_string() function · 8ddb10ea
      Chunhe Lan authored
      
      The do_fixup_by_path_string() will set the specified node's property to the
      value contained in "status". It would just be an inline wrapper for
      do_fixup_by_path() that calls strlen on the argument.
      
      Signed-off-by: default avatarChunhe Lan <Chunhe.Lan@freescale.com>
      8ddb10ea
  2. Oct 14, 2011
  3. Oct 12, 2011
  4. Oct 10, 2011
  5. Oct 09, 2011
Loading