[U-Boot] [PATCH 04/10 v2] MPC512x: factor out common code

Wolfgang Denk wd at denx.de
Tue Jul 14 00:03:05 CEST 2009


Dear Wolfgang Denk,

In message <1245005933-27483-4-git-send-email-wd at 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 at denx.de>
> Cc: Stefan Roese <sr at denx.de>
> Cc: Reinhard Arlt <reinhard.arlt at 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

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A star captain's most solemn oath is that he will give his life, even
his entire crew, rather than violate the Prime Directive.
	-- Kirk, "The Omega Glory", stardate unknown


More information about the U-Boot mailing list