Skip to content
Snippets Groups Projects
  1. Oct 15, 2011
    • Daniel Schwierzeck's avatar
      common: fix missing function pointer relocation in fixup_cmdtable() · fa28bd2e
      Daniel Schwierzeck authored
      
      The command auto-completion does not work on architectures relying
      on CONFIG_NEEDS_MANUAL_RELOC like MIPS. Cause is the missing function
      pointer fixup for cmd_tbl_t::complete function in fixup_cmdtable().
      
      This patch adds the missing pointer fixup in case of CONFIG_AUTO_COMPLETE
      is defined.
      
      Signed-off-by: default avatarDaniel Schwierzeck <daniel.schwierzeck@googlemail.com>
      fa28bd2e
    • 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
  2. Oct 09, 2011
  3. Oct 05, 2011
  4. Oct 04, 2011
    • Wolfgang Denk's avatar
      Revert "GCC4.6: Convert various empty macros to inline functions" · f092f15d
      Wolfgang Denk authored
      This reverts commit 60ce53cf.
      
      The commit causes build breakage for a number of boards. This results
      from the fact that now the arguments of debug() actually get
      referenced (even if there is hope that the compiler will optimize
      away the debug() call).  The obvious fix to that probem (change the
      code to always declare the referenced variables and data structures)
      increases the code size, and was this rejected.  So it was decided to
      revert this commit until a better solution is found.
      f092f15d
  5. Oct 03, 2011
  6. Oct 01, 2011
  7. Sep 30, 2011
  8. Sep 29, 2011
  9. Sep 13, 2011
  10. Sep 10, 2011
    • Wolfgang Denk's avatar
      utx8245: fix build breakage due to assert() · ea95cb73
      Wolfgang Denk authored
      
      Commit 21726a7a "Add assert() for debug assertions" broke building the
      utx8245 board:
      
      dlmalloc.c: In function 'do_check_chunk':
      dlmalloc.c:1660: error: 'sz' undeclared (first use in this function)
      dlmalloc.c:1660: error: (Each undeclared identifier is reported only once
      dlmalloc.c:1660: error: for each function it appears in.)
      dlmalloc.c: In function 'do_check_free_chunk':
      dlmalloc.c:1689: error: 'next' undeclared (first use in this function)
      dlmalloc.c: In function 'do_check_malloced_chunk':
      dlmalloc.c:1748: error: 'sz' undeclared (first use in this function)
      dlmalloc.c:1750: error: 'room' undeclared (first use in this function)
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      ea95cb73
  11. Sep 09, 2011
    • Simon Glass's avatar
      Add assert() for debug assertions · 21726a7a
      Simon Glass authored
      
      assert() is like BUG_ON() but compiles to nothing unless DEBUG is defined.
      This is useful when a condition is an error but a board reset is unlikely
      to fix it, so it is better to soldier on in hope. Assertion failures should
      be caught during development/test.
      
      It turns out that assert() is defined separately in a few places in U-Boot
      with various meanings. This patch cleans up some of these.
      
      Build errors exposed by this change (and defining DEBUG) are also fixed in
      this patch.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      21726a7a
    • Wolfgang Denk's avatar
      YAFFS2: cmd_yaffs2.c - fix build warnings · d1f7a899
      Wolfgang Denk authored
      
      Fix these:
      cmd_yaffs2.c: In function 'do_ywr':
      cmd_yaffs2.c:69: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'ulong'
      cmd_yaffs2.c:69: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'ulong'
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      d1f7a899
  12. Sep 07, 2011
    • Anton Staaf's avatar
      common: fix behavior of ROUND macro when input is already rounded · 155cfb5e
      Anton Staaf authored
      Currently when you call ROUND with a value that is already a
      multiple of the second parameter it will return a value that is
      one multiple larger, instead of returning the value passed in.
      
      There are only two types of usage of ROUND currently, one in
      various config files to round CONFIG_SYS_MALLOC_LEN to a multiple
      of 4096 bytes.  The other in cmd_sf.c where the incorrect behavior
      of ROUND is worked around be subtracting one from the length argument
      before passing it to ROUND.
      
      This patch fixes ROUND and removes the workaround from cmd_sf.  It
      also results in all of the malloc pools that use ROUND to compute
      their size shrinking by 4KB.
      
      Cc: Lukasz Majewski <l.majewski@samsung.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      155cfb5e
    • Wolfgang Denk's avatar
      ARM: remove broken "evb4510" board. · 26e670ea
      Wolfgang Denk authored
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
      Cc: Curt Brune <curt@cucy.com>
      26e670ea
  13. Sep 05, 2011
  14. Sep 04, 2011
Loading