]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
ppc4xx: Enable Primordial Stack for 40x and Unify ECC Handling
authorGrant Erickson <gerickson@nuovations.com>
Thu, 22 May 2008 21:44:14 +0000 (14:44 -0700)
committerStefan Roese <sr@denx.de>
Tue, 3 Jun 2008 18:20:50 +0000 (20:20 +0200)
commitc821b5f120bedf73867513466412587c6912a8f8
tree4aea7e5a0a20c42580cfdb3db79d071bea9e95fe
parenta439680019e06171d4a5694b7992accce87f590e
ppc4xx: Enable Primordial Stack for 40x and Unify ECC Handling

This patch (Part 1 of 2):

* Rolls up a suite of changes to enable correct primordial stack and
  global data handling when the data cache is used for such a purpose
  for PPC40x-variants (i.e. CFG_INIT_DCACHE_CS).

* Related to the first, unifies DDR2 SDRAM and ECC initialization by
  eliminating redundant ECC initialization implementations and moving
  redundant SDRAM initialization out of board code into shared 4xx
  code.

* Enables MCSR visibility on the 405EX(r).

* Enables the use of the data cache for initial RAM on
  both AMCC's Kilauea and Makalu and removes a redundant
  CFG_POST_MEMORY flag from each board's CONFIG_POST value.

  - Removed, per Stefan Roese's request, defunct memory.c file for
    Makalu and rolled sdram_init from it into makalu.c.

With respect to the 4xx DDR initialization and ECC unification, there
is certainly more work that can and should be done (file renaming,
etc.). However, that can be handled at a later date on a second or
third pass. As it stands, this patch moves things forward in an
incremental yet positive way for those platforms that utilize this
code and the features associated with it.

Signed-off-by: Grant Erickson <gerickson@nuovations.com>
Signed-off-by: Stefan Roese <sr@denx.de>
12 files changed:
cpu/ppc4xx/44x_spd_ddr.c
cpu/ppc4xx/44x_spd_ddr2.c
cpu/ppc4xx/Makefile
cpu/ppc4xx/cpu_init.c
cpu/ppc4xx/ecc.c [new file with mode: 0644]
cpu/ppc4xx/ecc.h [new file with mode: 0644]
cpu/ppc4xx/sdram.c
cpu/ppc4xx/start.S
cpu/ppc4xx/traps.c
include/asm-ppc/processor.h
include/ppc405.h
include/ppc4xx.h