-
- Downloads
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>
Showing
- common/cmd_ide.c 0 additions, 4 deletionscommon/cmd_ide.c
- cpu/mpc512x/asm-offsets.h 15 additions, 0 deletionscpu/mpc512x/asm-offsets.h
- cpu/mpc512x/cpu.c 0 additions, 1 deletioncpu/mpc512x/cpu.c
- cpu/mpc512x/cpu_init.c 0 additions, 1 deletioncpu/mpc512x/cpu_init.c
- cpu/mpc512x/i2c.c 0 additions, 1 deletioncpu/mpc512x/i2c.c
- cpu/mpc512x/speed.c 0 additions, 1 deletioncpu/mpc512x/speed.c
- cpu/mpc512x/start.S 4 additions, 2 deletionscpu/mpc512x/start.S
- drivers/net/mpc512x_fec.c 26 additions, 26 deletionsdrivers/net/mpc512x_fec.c
- drivers/net/mpc512x_fec.h 11 additions, 16 deletionsdrivers/net/mpc512x_fec.h
- include/asm-ppc/immap_512x.h 323 additions, 1 deletioninclude/asm-ppc/immap_512x.h
- include/common.h 1 addition, 2 deletionsinclude/common.h
- include/configs/mpc5121ads.h 3 additions, 3 deletionsinclude/configs/mpc5121ads.h
- include/mpc512x.h 0 additions, 702 deletionsinclude/mpc512x.h
Loading
Please register or sign in to comment