Skip to content
Snippets Groups Projects
  1. Oct 26, 2011
  2. Oct 25, 2011
    • Anton staaf's avatar
      cache: add ALLOC_CACHE_ALIGN_BUFFER macro · 46a6d51c
      Anton staaf authored
      
      This macro is used to allocate cache line size aligned stack
      buffers for use with DMA hardware.
      
      Signed-off-by: default avatarAnton Staaf <robotboy@chromium.org>
      Cc: Lukasz Majewski <l.majewski@samsung.com>
      Cc: Kyungmin Park <kyungmin.park@samsung.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      Cc: Aneesh V <aneesh@ti.com>
      Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
      Cc: Wolfgang Denk <wd@denx.de>
      46a6d51c
  3. Oct 23, 2011
  4. Oct 21, 2011
  5. Oct 17, 2011
  6. Oct 15, 2011
  7. Oct 09, 2011
    • Stefan Roese's avatar
      ppc: Include <asm/cache.h> in common.h · 13e95e42
      Stefan Roese authored
      
      This is needed for the patch "cache: add default setting for
      CONFIG_SYS_CACHELINE_SIZE" from Anton Staaf. As cache.h defines
      CONFIG_SYS_CACHELINE_SIZE for PPC targets.
      
      This will remove the following warnings/errors:
      
      include/common.h:819:2: warning: #warning CONFIG_SYS_CACHELINE_SIZE not defined, using __BIGGEST_ALIGNMENT__
      cache.c:33: error: '__BIGGEST_ALIGNMENT__' undeclared (first use in this function)
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Anton Staaf <robotboy@chromium.org>
      Cc: Wolfgang Denk <wd@denx.de>
      13e95e42
  8. 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
  9. Oct 01, 2011
    • Marek Vasut's avatar
      GCC4.6: Convert various empty macros to inline functions · 60ce53cf
      Marek Vasut authored
      
      Fix the following gcc4.6 problems:
      
      cmd_date.c: In function ‘do_date’:
      cmd_date.c:50:6: warning: variable ‘old_bus’ set but not used
      [-Wunused-but-set-variable]
      asix.c: In function ‘asix_init’:
      asix.c:317:6: warning: variable ‘rx_ctl’ set but not used
      [-Wunused-but-set-variable]
      usb.c: In function ‘usb_parse_config’:
      usb.c:331:17: warning: variable ‘ch’ set but not used
      [-Wunused-but-set-variable]
      usb.c: In function ‘usb_hub_port_connect_change’:
      usb.c:1123:29: warning: variable ‘portchange’ set but not used
      [-Wunused-but-set-variable]
      usb.c: In function ‘usb_hub_configure’:
      usb.c:1183:25: warning: variable ‘hubsts’ set but not used
      [-Wunused-but-set-variable]
      usb_storage.c: In function ‘usb_stor_CB_reset’:
      usb_storage.c:466:6: warning: variable ‘result’ set but not used
      [-Wunused-but-set-variable]
      
      Signed-off-by: default avatarMarek Vasut <marek.vasut@gmail.com>
      60ce53cf
  10. Sep 30, 2011
  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
  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
  13. Sep 04, 2011
    • Aneesh V's avatar
      arm: do not force d-cache enable on all boards · cba4b180
      Aneesh V authored
      
      c2dd0d45 added dcache_enable()
      to board_init_r(). This enables d-cache for all ARM boards.
      As a result some of the arm boards that are not cache-ready
      are broken. Revert this change and allow platform code to
      take the decision on d-cache enabling.
      
      Also add some documentation for cache usage in ARM.
      
      Signed-off-by: default avatarAneesh V <aneesh@ti.com>
      cba4b180
  14. Aug 01, 2011
  15. Jul 29, 2011
  16. Jul 27, 2011
  17. Jul 26, 2011
  18. Jul 17, 2011
  19. Jul 04, 2011
    • Aneesh V's avatar
      armv7: cache maintenance operations for armv7 · 2c451f78
      Aneesh V authored
      
      - Add a framework for layered cache maintenance
      	- separate out SOC specific outer cache maintenance from
      	  maintenance of caches known to CPU
      
      - Add generic ARMv7 cache maintenance operations that affect all
        caches known to ARMv7 CPUs. For instance in Cortex-A8 these
        opertions will affect both L1 and L2 caches. In Cortex-A9
        these will affect only L1 cache
      
      - D-cache operations supported:
      	- Invalidate entire D-cache
      	- Invalidate D-cache range
      	- Flush(clean & invalidate) entire D-cache
      	- Flush D-cache range
      - I-cache operations supported:
      	- Invalidate entire I-cache
      
      - Add maintenance functions for TLB, branch predictor array etc.
      
      - Enable -march=armv7-a so that armv7 assembly instructions can be
        used
      
      Signed-off-by: default avatarAneesh V <aneesh@ti.com>
      2c451f78
  20. Jun 22, 2011
  21. May 12, 2011
  22. Apr 29, 2011
  23. Apr 13, 2011
  24. Apr 12, 2011
  25. Apr 04, 2011
  26. Mar 22, 2011
  27. Jan 09, 2011
  28. Dec 09, 2010
  29. Nov 28, 2010
  30. Oct 26, 2010
    • Wolfgang Denk's avatar
      Replace CONFIG_SYS_GBL_DATA_SIZE by auto-generated value · 25ddd1fb
      Wolfgang Denk authored
      
      CONFIG_SYS_GBL_DATA_SIZE has always been just a bad workarond for not
      being able to use "sizeof(struct global_data)" in assembler files.
      Recent experience has shown that manual synchronization is not
      reliable enough.  This patch renames CONFIG_SYS_GBL_DATA_SIZE into
      GENERATED_GBL_DATA_SIZE which gets automatically generated by the
      asm-offsets tool.  In the result, all definitions of this value can be
      deleted from the board config files.  We have to make sure that all
      files that reference such data include the new <asm-offsets.h> file.
      
      No other changes have been done yet, but it is obvious that similar
      changes / simplifications can be done for other, related macro
      definitions as well.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Acked-by: default avatarKumar Gala <galak@kernel.crashing.org>
      25ddd1fb
Loading