]> git.sur5r.net Git - u-boot/commit
powerpc/8xxx: Refactor fsl_ddr_get_spd into common code from board
authorKumar Gala <galak@kernel.crashing.org>
Tue, 1 Feb 2011 04:18:47 +0000 (22:18 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Mon, 4 Apr 2011 14:24:41 +0000 (09:24 -0500)
commitc39f44dc6f5ae843d5def511f6e71d4b012dc598
treed863c3a3e87967d01e4de1021bd20abe3b57af7a
parent5df4b0ad0dff3cef1bd6660bcc8cba028c80adcb
powerpc/8xxx: Refactor fsl_ddr_get_spd into common code from board

Move fsl_ddr_get_spd into common mpc8xxx/ddr/main.c as most boards
pretty much do the same thing.  The only variations are in how many
controllers or DIMMs per controller exist.  To make this work we
standardize on the names of the SPD_EEPROM_ADDRESS defines based on the
use case of the board.

We allow boards to override get_spd to either do board specific fixups
to the SPD data or deal with any unique behavior of how the SPD eeproms
are wired up.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
31 files changed:
arch/powerpc/cpu/mpc8xxx/ddr/main.c
board/freescale/corenet_ds/ddr.c
board/freescale/mpc8536ds/ddr.c
board/freescale/mpc8540ads/ddr.c
board/freescale/mpc8541cds/ddr.c
board/freescale/mpc8544ds/ddr.c
board/freescale/mpc8548cds/ddr.c
board/freescale/mpc8555cds/ddr.c
board/freescale/mpc8560ads/ddr.c
board/freescale/mpc8568mds/ddr.c
board/freescale/mpc8569mds/ddr.c
board/freescale/mpc8572ds/ddr.c
board/freescale/mpc8610hpcd/ddr.c
board/freescale/mpc8641hpcn/ddr.c
board/freescale/p1022ds/ddr.c
board/freescale/p2020ds/ddr.c
board/sbc8548/ddr.c
board/sbc8560/ddr.c
board/sbc8641d/ddr.c
board/socrates/ddr.c
board/stx/stxgp3/ddr.c
board/stx/stxssa/ddr.c
board/xes/xpedite517x/ddr.c
board/xes/xpedite520x/ddr.c
board/xes/xpedite537x/ddr.c
board/xes/xpedite550x/ddr.c
include/configs/MPC8569MDS.h
include/configs/MPC8610HPCD.h
include/configs/P1022DS.h
include/configs/P2020DS.h
include/configs/xpedite550x.h