
Dear Wolfgang Denk,
In message 1245005933-27483-4-git-send-email-wd@denx.de you wrote:
Now that we have 3 boards for the MPC512x it turns out that they all use the very same fixed_sdram() code.
This patch factors out this common code into cpu/mpc512x/fixed_sdram.c and adds a new header file, include/asm-ppc/mpc512x.h, with some macros, inline functions and prototype definitions specific to MPC512x systems.
Signed-off-by: Wolfgang Denk wd@denx.de Cc: Stefan Roese sr@denx.de Cc: Reinhard Arlt reinhard.arlt@esd-electronics.com
v2: reposted in context with remaining patches of this series; changed to use common spelling for CPU/board names.
board/davedenx/aria/aria.c | 124 +------------------------------ board/esd/mecp5123/mecp5123.c | 104 +------------------------- board/freescale/mpc5121ads/mpc5121ads.c | 118 ++---------------------------- cpu/mpc512x/Makefile | 10 ++- cpu/mpc512x/fixed_sdram.c | 113 ++++++++++++++++++++++++++++ include/asm-ppc/mpc512x.h | 57 ++++++++++++++ 6 files changed, 191 insertions(+), 335 deletions(-) create mode 100644 cpu/mpc512x/fixed_sdram.c create mode 100644 include/asm-ppc/mpc512x.h
Applied to u-boot-mpc5xxx repo.
Wolfgang Denk