MPC512x: factor out common code
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>
Showing
- board/davedenx/aria/aria.c 4 additions, 120 deletionsboard/davedenx/aria/aria.c
- board/esd/mecp5123/mecp5123.c 2 additions, 102 deletionsboard/esd/mecp5123/mecp5123.c
- board/freescale/mpc5121ads/mpc5121ads.c 6 additions, 112 deletionsboard/freescale/mpc5121ads/mpc5121ads.c
- cpu/mpc512x/Makefile 9 additions, 1 deletioncpu/mpc512x/Makefile
- cpu/mpc512x/fixed_sdram.c 113 additions, 0 deletionscpu/mpc512x/fixed_sdram.c
- include/asm-ppc/mpc512x.h 57 additions, 0 deletionsinclude/asm-ppc/mpc512x.h
cpu/mpc512x/fixed_sdram.c
0 → 100644
include/asm-ppc/mpc512x.h
0 → 100644
Please register or sign in to comment