diff options
author | Wolfgang Denk <wd@denx.de> | 2009-05-16 10:47:45 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-06-12 20:47:16 +0200 |
commit | 3b74e7ec58e2cc352b0a396a614065cfeb8d138f (patch) | |
tree | 6a9380031ccfa9e8734e675fb9d9c1e4dcf32927 /cpu/mpc512x/i2c.c | |
parent | a927e491b2a326c1e9c4313e3ce4042988422697 (diff) | |
download | u-boot-imx-3b74e7ec58e2cc352b0a396a614065cfeb8d138f.zip u-boot-imx-3b74e7ec58e2cc352b0a396a614065cfeb8d138f.tar.gz u-boot-imx-3b74e7ec58e2cc352b0a396a614065cfeb8d138f.tar.bz2 |
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>
Diffstat (limited to 'cpu/mpc512x/i2c.c')
-rw-r--r-- | cpu/mpc512x/i2c.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/cpu/mpc512x/i2c.c b/cpu/mpc512x/i2c.c index 4a3f9a0..97bda0d 100644 --- a/cpu/mpc512x/i2c.c +++ b/cpu/mpc512x/i2c.c @@ -30,7 +30,6 @@ DECLARE_GLOBAL_DATA_PTR; #ifdef CONFIG_HARD_I2C -#include <mpc512x.h> #include <i2c.h> /* by default set I2C bus 0 active */ |