1. 07 May, 2018 1 commit
    • Tom Rini's avatar
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini authored
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      This commit changes all instances where we have a single declared
      license in the tag as both the before and after are identical in tag
      contents.  There's also a few places where I found we did not have a tag
      and have introduced one.
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
  2. 06 Apr, 2018 1 commit
    • Christophe Leroy's avatar
      common: env_embedded: allow fine placement of environment object · 23ac79ff
      Christophe Leroy authored
      Commit 7653942b ("common/env_embedded.c: drop support for
      CONFIG_SYS_USE_PPCENV") dropped the .ppcenv section which was
      used in linking scripts to allow fine placement of embedded
      environment sections.
      This implies that GCC randomly places objects from env/embedded.o
      and environment is not guaranteed to be located at the correct address:
      04003df8 g     F .text  00000038 mii_init
      04004000 g     O .text  00000004 env_size
      04004004 g     O .text  00002000 environment
      04006004 g     F .text  00000040 .hidden __lshrdi3
      This patch restores this capability by allocating each object marked
      with __UBOOT_ENV_SECTION__ into a different section. Hence
      'environment' will be alone in .text.environment, allowing a
      fine placement in u-boot.lds with:
      		. = DEFINED(env_offset) ? env_offset : .;
      		env/embedded.o			(.text.environment)
      Fixes: 7653942b ("common/env_embedded.c: drop support for CONFIG_SYS_USE_PPCENV")
      Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
      Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
  3. 15 Aug, 2017 1 commit
  4. 05 Aug, 2017 2 commits
  5. 24 Nov, 2016 1 commit
  6. 05 Jun, 2014 1 commit
  7. 14 Oct, 2013 1 commit
  8. 24 Jul, 2013 1 commit
  9. 20 Oct, 2012 1 commit
  10. 15 Oct, 2012 1 commit
  11. 09 Jul, 2012 1 commit
  12. 22 Nov, 2011 1 commit
    • Igor Grinberg's avatar
      env: clean env_embedded.c checkpatch and code style · bd2a23ac
      Igor Grinberg authored
      Cleanup the env_embedded.c checkpatch warnings, errors and coding style.
      There is one error left though:
       ERROR: Macros with multiple statements should be enclosed in a do - while loop
       #79: FILE: u-boot/common/env_embedded.c:79:
       +#define GEN_ABS(name, value)                   \
       +       asm(".globl " GEN_SYMNAME(name));       \
       +       GEN_SET_VALUE(name, value)
       total: 1 errors, 0 warnings, 213 lines checked
      We cannot enclose that statement in a do - while loop,
      because these are a global assembly declarations.
      Signed-off-by: default avatarIgor Grinberg <grinberg@compulab.co.il>
  13. 22 Oct, 2011 2 commits
  14. 26 Jul, 2011 1 commit
  15. 27 Oct, 2009 1 commit
  16. 18 Oct, 2009 1 commit
    • Mike Frysinger's avatar
      env: only build env_embedded and envcrc when needed · 6dab6add
      Mike Frysinger authored
      The env code is protected by the ENV_IS_EMBEDDED define, so attempting to
      compile the code when this isn't defined is pointless.  Now that the env
      headers have unified around CONFIG_ENV_IS_EMBEDDED, convert the build
      system to only build the env objects when this is enabled.  And now that
      the env code is conditionally compiled, we can drop the source code checks.
      For people who want to extract the environment manually, add a new option
      CONFIG_BUILD_ENVCRC that only enables the envcrc utility.
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
  17. 18 Oct, 2008 2 commits
  18. 10 Sep, 2008 2 commits
  19. 05 Feb, 2008 1 commit
  20. 16 Sep, 2007 1 commit
    • Wolfgang Denk's avatar
      TQM8xx[LM]: Fix broken environment alignment. · 67c31036
      Wolfgang Denk authored
      With recent toolchains, the environment sectors were no longer aligned to
      sector boundaries. The reason was a combination of two bugs:
      1) common/environment.c assumed that CONFIG_TQM8xxL would be defined
         for all TQM8xxL and TQM8xxM boards. But "include/common.h", where
         this gets defined, is not included here (and cannot be included
         without causing lots of problems).
         Added a new #define CFG_USE_PPCENV for all boards which really
         want to put the environment is a ".ppcenv" section.
      2) The linker scripts just include environment.o, silently assuming
         that the objects in that file are really in the order in which
         they are coded in the C file, i. e. "environment" first, then
         "redundand_environment", and "env_size" last. However, current
         toolchains (GCC-4.x) reorder the objects, causing the environment
         data not to start on a flash sector boundary:
         Instead of:					we got:
      	40008000 T environment			40008000 T env_size
      	4000c000 T redundand_environment	40008004 T redundand_environment
      	40010000 T env_size			4000c004 T environment
         Note: this patch fixes just the first part, and cures the alignment
         problem by making sure that "env_size" gets placed correctly. However,
         we still have a potential issue because primary and redundant
         environment sectors are actually swapped, i. e. we have now:
      	40008000 T redundand_environment
      	4000c000 T environment
      	40010000 T env_size
         This shall be fixed in the next version.
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
  21. 20 Dec, 2006 1 commit
  22. 12 Sep, 2006 1 commit
  23. 09 May, 2006 1 commit
  24. 03 Aug, 2005 1 commit
  25. 31 Dec, 2004 1 commit
    • wdenk's avatar
      * Code cleanup, mostly for GCC-3.3.x · e2ffd59b
      wdenk authored
      * Cleanup confusing use of CONFIG_ETH*ADDR - ust his only to
        pre-define a MAC address; use CONFIG_HAS_ETH* to enable support for
        additional ethernet addresses.
      * Cleanup drivers/i82365.c - avoid duplication of code
      * Fix bogus "cannot span across banks" flash error message
      * Add support for CompactFlash for the CPC45 Board.
  26. 18 Apr, 2004 1 commit
  27. 31 Mar, 2003 1 commit
    • wdenk's avatar
      * Patch by Martin Winistoerfer, 23 Mar 2003 · 0db5bca8
      wdenk authored
        - Add port to MPC555/556 microcontrollers
        - Add support for cmi customer board with
          Intel 28F128J3A, 28F320J3A or 28F640J3A flash.
      * Patch by Rick Bronson, 28 Mar 2003:
        - fix common/cmd_nand.c
  28. 14 Feb, 2003 1 commit
  29. 11 Jan, 2003 1 commit
    • wdenk's avatar
      * Restrict baudrate settings on LWMON to higher speeds · d0fb80c3
      wdenk authored
        when watchdog is on
      * Update baudrate in bd_info when it gets changed
      * Add watchdog trigger points while waiting for serial port
        (so far only 8xx -- needed on LWMON with 100ms watchdog)
      * Improve command line tool to access the U-Boot's environment
        (figuration of the utility, using a config file)
  30. 03 Nov, 2002 1 commit