1. 16 10月, 2011 10 次提交
  2. 15 10月, 2011 4 次提交
    • T
      powerpc/85xx: use fdt_create_phandle() to create the Fman firmware phandles · a2c1229c
      Timur Tabi 提交于
      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: NTimur Tabi <timur@freescale.com>
      a2c1229c
    • T
      fdt: update fdt_alloc_phandle to use fdt_get_phandle · 50bf17bd
      Timur Tabi 提交于
      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: NTimur Tabi <timur@freescale.com>
      50bf17bd
    • T
      fdt: check for fdt errors in fdt_create_phandle · 3c927ccc
      Timur Tabi 提交于
      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: NTimur Tabi <timur@freescale.com>
      3c927ccc
    • C
      fdt: Add a do_fixup_by_path_string() function · 8ddb10ea
      Chunhe Lan 提交于
      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: NChunhe Lan <Chunhe.Lan@freescale.com>
      8ddb10ea
  3. 14 10月, 2011 9 次提交
  4. 13 10月, 2011 5 次提交
  5. 12 10月, 2011 7 次提交
  6. 11 10月, 2011 1 次提交
    • L
      NAND: davinci: choose correct 1-bit h/w ECC reg · 60161943
      Laurence Withers 提交于
      In nand_davinci_readecc(), select the correct NANDF<n>ECC register based
      on CONFIG_SYS_NAND_CS rather than hardcoding the choice of NANDF1ECC.
      This allows 1-bit hardware ECC to work with chip select other than CS2.
      
      Note this now matches the usage in nand_davinci_enable_hwecc(), which
      already had the correct handling, and allows refactoring to a single
      function encapsulating the register read.
      
      Without this fix, writing NAND pages to a chip not wired to CS2 would
      result in in the ECC calculation always returning FFFFFF for each
      512-byte segment, and reading back a correctly written page (one with
      ECC intact) would always fail. With this fix, the ECC is written and
      verified correctly.
      Signed-off-by: NLaurence Withers <lwithers@guralp.com>
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      60161943
  7. 10 10月, 2011 4 次提交