Skip to content
Snippets Groups Projects
  1. Aug 22, 2012
  2. May 15, 2012
  3. Mar 18, 2012
  4. Mar 03, 2012
  5. Nov 07, 2011
  6. Nov 03, 2011
  7. Oct 24, 2011
  8. Oct 23, 2011
  9. Oct 05, 2011
    • Mike Frysinger's avatar
      net: drop !NET_MULTI code · e2a53458
      Mike Frysinger authored
      
      This is long over due.  All but two net drivers have been converted, but
      those have now been dropped.
      
      The only thing left to do is actually delete all references to NET_MULTI
      and code that is compiled when that is not defined.  So here we scrub the
      core code.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      e2a53458
  10. Aug 04, 2011
    • Heiko Schocher's avatar
      hwmon: do not init sensors on startup · 780f13a9
      Heiko Schocher authored
      
      The U-Boot Design Principles[1] clearly say:
      
        Initialize devices only when they are needed within U-Boot, i.e. don't
        initialize the Ethernet interface(s) unless U-Boot performs a download
        over Ethernet; don't initialize any IDE or USB devices unless U-Boot
        actually tries to load files from these, etc. (and don't forget to
        shut down these devices after using them - otherwise nasty things may
        happen when you try to boot your OS).
      
      So, do not initialize and read the sensors on startup.
      
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      cc: Wolfgang Denk <wd@denx.de>
      cc: Holger Brunck <holger.brunck@keymile.com>
      780f13a9
  11. Jul 26, 2011
  12. Apr 27, 2011
  13. Apr 04, 2011
    • Kumar Gala's avatar
      powerpc: Add cpu_secondary_init_r to allow for initialization post env setup · f9a33f1c
      Kumar Gala authored
      
      We can simplify some cpu/SoC level initialization by moving it to be
      after the environment and non-volatile storage is setup as there might
      be dependancies on such things in various boot configurations.
      
      For example for FSL SoC's with QE if we boot from NAND we need it setup
      to extra the ucode image to initialize the QE.  If we always do this
      after environment & non-volatile storage is working we can have the code
      be the same regardless of NOR, NAND, SPI, MMC boot.
      
      Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
      f9a33f1c
  14. Mar 27, 2011
  15. Jan 18, 2011
  16. Nov 30, 2010
    • Kumar Gala's avatar
      powerpc/85xx: Introduce CONFIG_SYS_EXTRA_ENV_RELOC · a55bb834
      Kumar Gala authored
      
      Some systems need to relocate the env_addr pointer early because the
      location it points to will get invalidated before env_relocate is
      called.  One example is on systems that might use a L2 or L3 cache
      in SRAM mode and initialize that cache from SRAM mode back to being
      a cache in cpu_init_r.
      
      We set this on the 85xx boards that have support for NAND, SPI, or
      SDHC/MMC boot support as they use a secondary cache in SRAM mode and
      need the env_addr pointer relocated since we change from SRAM to normal
      cache mode in cpu_init_r.
      
      Also removed CONFIG_SYS_SPL as its not used anywhere.
      
      Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
      a55bb834
  17. Nov 26, 2010
    • Wolfgang Denk's avatar
      WINBOND_83C553: enable only on boards that actually use it. · 57d6c589
      Wolfgang Denk authored
      
      So far, only the BAB7xx board would call the initialise_w83c553f()
      function for the WINBOND 83C553 chip, even though some other boards
      (HIDDEN_DRAGON, Sandpoint8240, Sandpoint8245) enabled it in their
      board configuration.  These boards were also missing other config
      settings needed for that, which resulted in build errors like this:
      
      drivers/pci/libpci.o:(.got2+0x84): undefined reference to `ide_bus_offset'
      
      Switch arch/powerpc/lib/board.c to call initialise_w83c553f() not on a
      per-board base, but when a WINBOND_83C553 in enabled in a
      configuration (like BAB7xx), and disable it in the boards that had
      this set so far.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Yusdi Santoso <yusdi_santoso@adaptec.com>
      Cc: Jim Thompson <jim@musenki.com>
      Acked-by: default avatarStefan Roese <sr@denx.de>
      57d6c589
  18. Oct 20, 2010
  19. Oct 18, 2010
    • Peter Tyser's avatar
      powerpc: Cleanup BOOTFLAG_* references · d98b0523
      Peter Tyser authored
      
      Now that warm booting is not supported, there isn't a need for the
      BOOTFLAG_COLD and BOOTFLAG_WARM defines, so remove them.
      
      Note that this change makes the board info bd_bootflags field useless.
      It will always be set to 0, but we leave it around so that we don't
      break the board info structure that some OSes are expecting to be passed
      from U-Boot.
      
      Signed-off-by: default avatarPeter Tyser <ptyser@xes-inc.com>
      d98b0523
    • Wolfgang Denk's avatar
      Rename TEXT_BASE into CONFIG_SYS_TEXT_BASE · 14d0a02a
      Wolfgang Denk authored
      
      The change is currently needed to be able to remove the board
      configuration scripting from the top level Makefile and replace it by
      a simple, table driven script.
      
      Moving this configuration setting into the "CONFIG_*" name space is
      also desirable because it is needed if we ever should move forward to
      a Kconfig driven configuration system.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      14d0a02a
  20. Oct 12, 2010
  21. Oct 06, 2010
  22. Sep 23, 2010
  23. Sep 19, 2010
    • Heiko Schocher's avatar
      common: move TOTAL_MALLOC_LEN to include/common.h · 3fbeeea6
      Heiko Schocher authored
      
      Portions of this work were supported by funding from
      the CE Linux Forum.
      
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      3fbeeea6
    • Wolfgang Denk's avatar
      Cleanup use of CONFIG_SYS_SRAM_BASE and CONFIG_SYS_SRAM_SIZE · 36116650
      Wolfgang Denk authored
      
      Traditionally many boards used local definitions for SRAM base address
      and size (like SRAM_BASE, SRAM_LEN and/or SRAM_SIZE), while the (now)
      "official" names are CONFIG_SYS_SRAM_BASE and CONFIG_SYS_SRAM_SIZE.
      
      The corresponding code in arch/powerpc/lib/board.c was board specific,
      and has never actually been maintained well. Replace this by feature-
      specific code and adapt the boards that actually use this.
      
      NOTE: there is still a ton of boards using the old #defines, which
      therefor contain incorrect values in bi_sramstart and bi_sramsize.
      
      All respective board maintainers are requested to clean up their
      respective configurations.  Thanks.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Josef Wagner <Wagner@Microsys.de>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Wolfgang Denk <wd@denx.de>
      36116650
    • Terry Lv's avatar
      Save environment data to mmc. · a8060359
      Terry Lv authored
      
      This patch is to save environment data to mmc card.
      It uses interfaces defined in generic mmc.
      
      Signed-off-by: default avatarTerry Lv <r65388@freescale.com>
      Acked-by: default avatarStefano Babic <sbabic@denx.de>
      a8060359
  24. Aug 03, 2010
    • Wolfgang Denk's avatar
      Rename getenv_r() into getenv_f() · cdb74977
      Wolfgang Denk authored
      
      While running from flash, i. e. before relocation, we have only a
      limited C runtime environment without writable data segment. In this
      phase, some configurations (for example with environment in EEPROM)
      must not use the normal getenv(), but a special function.  This
      function had been called getenv_r(), with the idea that the "_r"
      suffix would mean the same as in the _r_eentrant versions of some of
      the C library functions (for example getdate vs. getdate_r, getgrent
      vs. getgrent_r, etc.).
      
      Unfortunately this was a misleading name, as in U-Boot the "_r"
      generally means "running from RAM", i. e. _after_ relocation.
      
      To avoid confusion, rename into getenv_f() [as "running from flash"]
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Acked-by: default avatarDetlev Zundel <dzu@denx.de>
      cdb74977
  25. Apr 22, 2010
    • Kim Phillips's avatar
      mpc83xx: turn on icache in core initialization to improve u-boot boot time · 1a2e203b
      Kim Phillips authored
      
      before, MPC8349ITX boots u-boot in 4.3sec:
      
              column1 is elapsed time since first message
              column2 is elapsed time since previous message
              column3 is the message
      0.000 0.000: U-Boot 2010.03-00126-gfd4e49c (Apr 11 2010 - 17:25:29) MPC83XX
      0.000 0.000:
      0.000 0.000: Reset Status:
      0.000 0.000:
      0.032 0.032: CPU:   e300c1, MPC8349E, Rev: 1.1 at 533.333 MHz, CSB: 266.667 MHz
      0.032 0.000: Board: Freescale MPC8349E-mITX
      0.032 0.000: UPMA:  Configured for compact flash
      0.032 0.000: I2C:   ready
      0.061 0.028: DRAM:  256 MB (DDR1, 64-bit, ECC off, 266.667 MHz)
      1.516 1.456: FLASH: 16 MB
      2.641 1.125: PCI:   Bus Dev VenId DevId Class Int
      2.652 0.011:         00  10  1095  3114  0180  00
      2.652 0.000: PCI:   Bus Dev VenId DevId Class Int
      2.652 0.000: In:    serial
      2.652 0.000: Out:   serial
      2.652 0.000: Err:   serial
      2.682 0.030: Board revision: 1.0 (PCF8475A)
      3.080 0.398: Net:   TSEC1: No support for PHY id ffffffff; assuming generic
      3.080 0.000: TSEC0, TSEC1
      4.300 1.219: IDE:   Bus 0: .** Timeout **
      
      after, MPC8349ITX boots u-boot in 3.0sec:
      
      0.010 0.010: U-Boot 2010.03-00127-g4b468cc-dirty (Apr 11 2010 - 17:47:29) MPC83XX
      0.010 0.000:
      0.010 0.000: Reset Status:
      0.010 0.000:
      0.017 0.007: CPU:   e300c1, MPC8349E, Rev: 1.1 at 533.333 MHz, CSB: 266.667 MHz
      0.017 0.000: Board: Freescale MPC8349E-mITX
      0.038 0.020: UPMA:  Configured for compact flash
      0.038 0.000: I2C:   ready
      0.038 0.000: DRAM:  256 MB (DDR1, 64-bit, ECC off, 266.667 MHz)
      0.260 0.222: FLASH: 16 MB
      1.390 1.130: PCI:   Bus Dev VenId DevId Class Int
      1.390 0.000:         00  10  1095  3114  0180  00
      1.390 0.000: PCI:   Bus Dev VenId DevId Class Int
      1.400 0.010: In:    serial
      1.400 0.000: Out:   serial
      1.400 0.000: Err:   serial
      1.400 0.000: Board revision: 1.0 (PCF8475A)
      1.832 0.432: Net:   TSEC1: No support for PHY id ffffffff; assuming generic
      1.832 0.000: TSEC0, TSEC1
      3.038 1.205: IDE:   Bus 0: .** Timeout **
      
      also tested on these boards (albeit with a less accurate
      boottime measurement method):
      
      seconds: before  after
      8349MDS  ~2.6    ~2.2
      8360MDS  ~2.8    ~2.6
      8313RDB  ~2.5    ~2.3 #nand boot
      837xRDB  ~3.1    ~2.3
      
      also tested on an 8323ERDB.
      
      v2: also remove the delayed icache enablement assumption in arch ppc's
      board.c, and add a CONFIG_MPC83xx define in the ITX config file for
      consistency (even though it was already being defined in 83xx'
      config.mk).
      
      Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
      1a2e203b
  26. Apr 21, 2010
  27. Apr 13, 2010
  28. Mar 11, 2010
  29. Jan 24, 2010
  30. Dec 15, 2009
  31. Oct 16, 2009
    • Anton Vorontsov's avatar
      mpc85xx: Fix booting on various boards · 91525c67
      Anton Vorontsov authored
      
      commit 0e870980 ("8xxx: Removed
      CONFIG_NUM_CPUS from 85xx/86xx") breaks U-Boot on various boards,
      namely the ones that call get_sys_info() from board_early_init_f().
      
      get_sys_info() calls cpu_numcores(), which depends on probecpu()
      being called before. But probecpu() is called after board_early_init_f(),
      and so cpu_numcores() returns random values, which in turn crashes
      get_sys_info().
      
      To fix the issue we place probecpu() before board_early_init_f()
      in an initialization sequence.
      
      Booting on the following boards should be revived now:
       mpc8540ads
       mpc8541cds
       mpc8548cds
       mpc8555cds
       mpc8560ads
       mpc8568mds
       mpc8569mds
       and maybe more.
      
      Signed-off-by: default avatarAnton Vorontsov <avorontsov@ru.mvista.com>
      Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
      91525c67
Loading