]> git.sur5r.net Git - u-boot/commit
MPC512x: remove include/mpc512x.h
authorWolfgang Denk <wd@denx.de>
Sat, 16 May 2009 08:47:45 +0000 (10:47 +0200)
committerWolfgang Denk <wd@denx.de>
Fri, 12 Jun 2009 18:47:16 +0000 (20:47 +0200)
commit3b74e7ec58e2cc352b0a396a614065cfeb8d138f
tree6a9380031ccfa9e8734e675fb9d9c1e4dcf32927
parenta927e491b2a326c1e9c4313e3ce4042988422697
MPC512x: remove include/mpc512x.h

Move needed definitions (register descriptions etc.) from
include/mpc512x.h  into  include/asm-ppc/immap_512x.h.

Instead of using a #define'd register offset, use a function that
provides the PATA controller's base address.

All the rest of include/mpc512x.h are register offset definitions
which can be eliminated by proper use of C structures.

There are only a few register offsets remaining that are needed in
cpu/mpc512x/start.S; for these we provide cpu/mpc512x/asm-offsets.h
which is intended as a temporary workaround only. In a later patch
this file will be removed, too, and then auto-generated from the
respective C structs.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: John Rigby <jcrigby@gmail.com>
13 files changed:
common/cmd_ide.c
cpu/mpc512x/asm-offsets.h [new file with mode: 0644]
cpu/mpc512x/cpu.c
cpu/mpc512x/cpu_init.c
cpu/mpc512x/i2c.c
cpu/mpc512x/speed.c
cpu/mpc512x/start.S
drivers/net/mpc512x_fec.c
drivers/net/mpc512x_fec.h
include/asm-ppc/immap_512x.h
include/common.h
include/configs/mpc5121ads.h
include/mpc512x.h [deleted file]