1. 13 Apr, 2010 3 commits
    • Peter Tyser's avatar
      Rename lib_generic/ to lib/ · 78acc472
      Peter Tyser authored
      Now that the other architecture-specific lib directories have been
      moved out of the top-level directory there's not much reason to have the
      '_generic' suffix on the common lib directory.
      Signed-off-by: default avatarPeter Tyser <ptyser@xes-inc.com>
    • Peter Tyser's avatar
      Move lib_$ARCH directories to arch/$ARCH/lib · ea0364f1
      Peter Tyser authored
      Also move lib_$ARCH/config.mk to arch/$ARCH/config.mk
      This change is intended to clean up the top-level directory structure
      and more closely mimic Linux's directory organization.
      Signed-off-by: default avatarPeter Tyser <ptyser@xes-inc.com>
    • Peter Tyser's avatar
      Create CPUDIR variable · 03b7004d
      Peter Tyser authored
      The CPUDIR variable points to the location of a target's CPU directory.
      Currently, it is set to cpu/$CPU.  However, using $CPUDIR will allow for
      more flexibility in the future.  It lays the groundwork for reorganizing
      U-Boot's directory structure to support a layout such as:
        arch/$ARCH/cpu/$CPU/* (architecture with multiple CPU types)
        arch/$ARCH/cpu/*      (architecture with one CPU type)
      Signed-off-by: default avatarPeter Tyser <ptyser@xes-inc.com>
  2. 07 Apr, 2010 2 commits
    • Timur Tabi's avatar
      p2020ds: add alternate boot bank support using the ngPIXIS FPGA · 5a469608
      Timur Tabi authored
      The Freescale P2020DS board uses a new type of PIXIS FPGA, called the ngPIXIS.
      The ngPIXIS has one distinct new feature: the values of the on-board switches
      can be selectively overridden with shadow registers.  This feature is used to
      boot from a different NOR flash bank, instead of having a register dedicated
      for this purpose.  Because the ngPIXIS is so different from the previous PIXIS,
      a new file is introduced: ngpixis.c.
      Also update the P2020DS checkboard() function to use the new macros defined
      in the header file.
      Signed-off-by: default avatarTimur Tabi <timur@freescale.com>
      Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
    • Timur Tabi's avatar
      fsl: improve the PIXIS code and fix a few bugs · 2feb4af0
      Timur Tabi authored
      Refactor and document the Freescale PIXIS code, used on most 85xx and 86xx
      boards.  This makes the code easier to read and more flexible.
      Delete pixis.h, because none of the exported functions were actually being
      used by any other file.  Make all of the functions in pixis.c 'static'.
      Remove "#include pixis.h" from every file that has it.
      Remove some unnecessary #includes.
      Make 'pixis_base' into a macro, so that we don't need to define it in every
      Add "while(1);" loops at the end of functions that reset the board, so that
      execution doesn't continue while the reset is in progress.
      Replace in_8/out_8 calls with clrbits_8, setbits_8, or clrsetbits_8, where
      Replace ulong/uint with their spelled-out equivalents.  Remove unnecessary
      typecasts, changing the types of some variables if necessary.
      it easier for specific boards to support variations in the PIXIS registers
      sets.  No current boards appears to need this feature.
      Fix the definition of CONFIG_SYS_PIXIS_VBOOT_MASK for the MPC8610 HPCD.
      Apparently, "pixis_reset altbank" has never worked on this board.
      Signed-off-by: default avatarTimur Tabi <timur@freescale.com>
      Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
  3. 30 Mar, 2010 1 commit
    • Timur Tabi's avatar
      mpc86xx: set the DDR BATs after calculating true DDR size · 9ff32d8c
      Timur Tabi authored
      After determining how much DDR is actually in the system, set DBAT0 and
      IBAT0 accordingly.  This ensures that the CPU won't attempt to access
      (via speculation) addresses outside of actual memory.
      On 86xx systems, DBAT0 and IBAT0 (the BATs for DDR) are initialized to 2GB
      and kept that way.  If the system has less than 2GB of memory (typical for
      an MPC8610 HPCD), the CPU may attempt to access this memory during
      speculation.  The zlib code is notorious for generating such memory reads,
      and indeed on the MPC8610, uncompressing the Linux kernel causes a machine
      check (without this patch).
      Currently we are limited to power of two sized DDR since we only use a
      single bat.  If a non-power of two size is used that is less than
      CONFIG_MAX_MEM_MAPPED u-boot will crash.
      Signed-off-by: default avatarTimur Tabi <timur@freescale.com>
      Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
  4. 24 Mar, 2010 3 commits
  5. 12 Mar, 2010 1 commit
  6. 07 Mar, 2010 2 commits
  7. 01 Feb, 2010 1 commit
  8. 27 Jan, 2010 1 commit
  9. 26 Jan, 2010 1 commit
  10. 17 Jan, 2010 1 commit
  11. 08 Jan, 2010 1 commit
    • Anton Vorontsov's avatar
      mpc83xx: Add NAND boot support for MPC8315E-RDB boards · 2e95004d
      Anton Vorontsov authored
      The core support for NAND booting is there already, so this patch
      is pretty straightforward.
      There is one trick though: top level Makefile expects nand_spl to
      be in nand_spl/board/$(BOARDDIR), but we can fully reuse the code
      from mpc8313erdb boards, and so to not duplicate the code we just
      symlink nand_spl/board/freescale/mpc8315erdb to mpc8313erdb.
      Signed-off-by: default avatarAnton Vorontsov <avorontsov@ru.mvista.com>
      o silence make during ln echo
      o update documentation
      o and avoid:
      Configuring for MPC8315ERDB board...
      sdram.o: In function `fixed_sdram':
      /home/r1aaha/git/u-boot/nand_spl/board/freescale/mpc8313erdb/sdram.c:72: undefined reference to `udelay'
      by renaming udelay -> __udelay in the spirit of commit
      3eb90bad "Generic udelay() with watchdog
      Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
  12. 05 Jan, 2010 12 commits
  13. 08 Dec, 2009 1 commit
  14. 05 Dec, 2009 1 commit
    • Ingo van Lil's avatar
      Generic udelay() with watchdog support · 3eb90bad
      Ingo van Lil authored
      According to the PPC reference implementation the udelay() function is
      responsible for resetting the watchdog timer as frequently as needed.
      Most other architectures do not meet that requirement, so long-running
      operations might result in a watchdog reset.
      This patch adds a generic udelay() function which takes care of
      resetting the watchdog before calling an architecture-specific
      Signed-off-by: default avatarIngo van Lil <inguin@gmx.de>
  15. 22 Nov, 2009 1 commit
  16. 05 Nov, 2009 1 commit
  17. 04 Nov, 2009 1 commit
  18. 27 Oct, 2009 6 commits