1. 12 Aug, 2016 1 commit
  2. 19 Jul, 2016 1 commit
  3. 10 Apr, 2016 1 commit
  4. 20 Jul, 2015 1 commit
    • Andre Przywara's avatar
      fdt: prevent clearing memory node if there are no banks · 5c1cf89f
      Andre Przywara authored
      Avoid clearing the reg property in the memory DT node if no memory
      banks have been specified for a board (CONFIG_NR_DRAM_BANKS == 0).
      This allows boards to let U-Boot skip the DT memory tinkering in case
      other firmware has already setup the node properly before.
      This should be safe as all callers of fdt_fixup_memory_banks that use
      a computed <banks> value put at least 1 in there.
      Add some documentation comments to the header file.
      Signed-off-by: default avatarAndre Przywara <osp@andrep.de>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      5c1cf89f
  5. 05 Jun, 2015 2 commits
  6. 22 Apr, 2015 1 commit
  7. 18 Feb, 2015 1 commit
  8. 25 Nov, 2014 1 commit
  9. 21 Nov, 2014 4 commits
  10. 25 Oct, 2014 1 commit
  11. 25 Sep, 2014 2 commits
  12. 09 Aug, 2014 1 commit
  13. 03 Jul, 2014 1 commit
  14. 19 Jun, 2014 2 commits
  15. 23 Apr, 2014 2 commits
  16. 17 Apr, 2014 1 commit
  17. 21 Mar, 2014 1 commit
  18. 24 Jul, 2013 1 commit
  19. 14 May, 2013 1 commit
    • Simon Glass's avatar
      image: Add device tree setup to image library · 13d06981
      Simon Glass authored
      This seems to be a common function for several architectures, so create
      a common function rather than duplicating the code in each arch.
      
      Also make an attempt to avoid introducing #ifdefs in the new code, partly
      by removing useless #ifdefs around function declarations in the image.h
      header.
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      13d06981
  20. 09 Feb, 2013 1 commit
  21. 08 Feb, 2013 2 commits
    • Kim Phillips's avatar
      common/fdt_support.c: sparse fixes · 8aa5ec6e
      Kim Phillips authored
      trivial:
      
      fdt_support.c:89:64: warning: Using plain integer as NULL pointer
      fdt_support.c:325:65: warning: Using plain integer as NULL pointer
      fdt_support.c:352:65: warning: Using plain integer as NULL pointer
      
      For the following bad constant expression, We hardcode the max. number of
      memory banks to four for the foreseeable future, and add an error with
      instructions on what to do once it's exceeded:
      
      fdt_support.c:397:22: error: bad constant expression
      
      For the rest below, sparse found a couple of wrong endian conversions
      in of_bus_default_translate() and fdt_get_base_address(), but
      otherwise the rest is mostly annotation fixes:
      
      fdt_support.c:64:24: warning: cast to restricted __be32
      fdt_support.c:192:21: warning: incorrect type in assignment (different base types)
      fdt_support.c:192:21:    expected unsigned int [unsigned] [usertype] tmp
      fdt_support.c:192:21:    got restricted __be32 [usertype] <noident>
      fdt_support.c:201:21: warning: incorrect type in assignment (different base types)
      fdt_support.c:201:21:    expected unsigned int [unsigned] [addressable] [usertype] tmp
      fdt_support.c:201:21:    got restricted __be32 [usertype] <noident>
      fdt_support.c:304:13: warning: incorrect type in assignment (different base types)
      fdt_support.c:304:13:    expected unsigned int [unsigned] [usertype] val
      fdt_support.c:304:13:    got restricted __be32 [usertype] <noident>
      fdt_support.c:333:13: warning: incorrect type in assignment (different base types)
      fdt_support.c:333:13:    expected unsigned int [unsigned] [usertype] val
      fdt_support.c:333:13:    got restricted __be32 [usertype] <noident>
      fdt_support.c:359:13: warning: incorrect type in assignment (different base types)
      fdt_support.c:359:13:    expected unsigned int [unsigned] [usertype] val
      fdt_support.c:359:13:    got restricted __be32 [usertype] <noident>
      fdt_support.c:373:21: warning: cast to restricted __be32
      fdt_support.c:963:48: warning: incorrect type in argument 1 (different base types)
      fdt_support.c:963:48:    expected restricted __be32 const [usertype] *p
      fdt_support.c:963:48:    got unsigned int [usertype] *<noident>
      fdt_support.c:971:48: warning: incorrect type in argument 1 (different base types)
      fdt_support.c:971:48:    expected restricted __be32 const [usertype] *p
      fdt_support.c:971:48:    got unsigned int [usertype] *<noident>
      fdt_support.c:984:29: warning: incorrect type in argument 1 (different base types)
      fdt_support.c:984:29:    expected restricted __be32 const [usertype] *cell
      fdt_support.c:984:29:    got unsigned int [usertype] *addr
      fdt_support.c:996:32: warning: incorrect type in argument 1 (different base types)
      fdt_support.c:996:32:    expected restricted __be32 const [usertype] *cell
      fdt_support.c:996:32:    got unsigned int [usertype] *addr
      fdt_support.c:1041:41: warning: incorrect type in argument 1 (different base types)
      fdt_support.c:1041:41:    expected restricted __be32 const [usertype] *cell
      fdt_support.c:1041:41:    got unsigned int [usertype] *addr
      fdt_support.c:1053:41: warning: incorrect type in argument 2 (different base types)
      fdt_support.c:1053:41:    expected restricted __be32 const [usertype] *range
      fdt_support.c:1053:41:    got unsigned int const [usertype] *[assigned] ranges
      fdt_support.c:1064:53: warning: incorrect type in argument 2 (different base types)
      fdt_support.c:1064:53:    expected restricted __be32 const [usertype] *addr
      fdt_support.c:1064:53:    got unsigned int [usertype] *addr
      fdt_support.c:1110:50: warning: incorrect type in argument 2 (different base types)
      fdt_support.c:1110:50:    expected restricted __be32 const [usertype] *addr
      fdt_support.c:1110:50:    got unsigned int *<noident>
      fdt_support.c:1121:49: warning: incorrect type in argument 1 (different base types)
      fdt_support.c:1121:49:    expected restricted __be32 const [usertype] *cell
      fdt_support.c:1121:49:    got unsigned int *<noident>
      fdt_support.c:1147:60: warning: incorrect type in argument 2 (different base types)
      fdt_support.c:1147:60:    expected restricted __be32 const [usertype] *addr
      fdt_support.c:1147:60:    got unsigned int *<noident>
      fdt_support.c:1081:5: warning: symbol '__of_translate_address' was not declared. Should it be static?
      fdt_support.c:1154:5: error: symbol 'fdt_translate_address' redeclared with different type (originally declared at include/fdt_support.h:95) - incompatible argument 3 (different base types)
      fdt_support.c: In function 'fdt_node_offset_by_compat_reg':
      fdt_support.c:1173:17: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]
      
      See also linux kernel commit 0131d897 "of/address: use proper
      endianess in get_flags".
      Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
      Cc: Jerry Van Baren <gvb.uboot@gmail.com>
      8aa5ec6e
    • Kim Phillips's avatar
      treewide: include libfdt_env.h before fdt.h · 12e06fe0
      Kim Phillips authored
      and, if including libfdt.h which includes libfdt_env.h in
      the correct order, don't include fdt.h before libfdt.h.
      
      this is needed to get the fdt type definitions set from
      the project environment before fdt.h uses them.
      Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
      Cc: Jerry Van Baren <gvb.uboot@gmail.com>
      12e06fe0
  22. 15 Feb, 2012 1 commit
  23. 13 Nov, 2011 1 commit
  24. 18 Oct, 2011 1 commit
  25. 15 Oct, 2011 2 commits
  26. 30 Sep, 2011 2 commits
  27. 15 Jul, 2011 3 commits
  28. 18 Oct, 2010 1 commit