diff options
author | Detlev Zundel <dzu@denx.de> | 2010-01-21 17:55:58 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-01-21 23:00:45 +0100 |
commit | 57ae8a5cced612088104303777e71a3dc89c00ef (patch) | |
tree | 027b189cfced7e64b3e8f7e09d204cd27294a710 /cpu/mpc512x/diu.c | |
parent | c7c0d542a199089cf658a7c23c314a5cff248b00 (diff) | |
download | blackbird-obmc-uboot-57ae8a5cced612088104303777e71a3dc89c00ef.tar.gz blackbird-obmc-uboot-57ae8a5cced612088104303777e71a3dc89c00ef.zip |
mpc512x: Use in/out accessors for all registers
This is not only a cosmetic change as it fixes the real bug of board
reset not working with the ELDK 4.2 toolchain.
Signed-off-by: Detlev Zundel <dzu@denx.de>
Diffstat (limited to 'cpu/mpc512x/diu.c')
-rw-r--r-- | cpu/mpc512x/diu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpu/mpc512x/diu.c b/cpu/mpc512x/diu.c index 691451afcb..a24f39510e 100644 --- a/cpu/mpc512x/diu.c +++ b/cpu/mpc512x/diu.c @@ -57,10 +57,10 @@ void diu_set_pixel_clock(unsigned int pixclock) debug("DIU pixval = %lu\n", pixval); /* Modify PXCLK in GUTS CLKDVDR */ - debug("DIU: Current value of CLKDVDR = 0x%08x\n", *clkdvdr); - temp = *clkdvdr & 0xFFFFFF00; - *clkdvdr = temp | (pixval & 0xFF); - debug("DIU: Modified value of CLKDVDR = 0x%08x\n", *clkdvdr); + debug("DIU: Current value of CLKDVDR = 0x%08x\n", in_be32(clkdvdr)); + temp = in_be32(clkdvdr) & 0xFFFFFF00; + out_be32(clkdvdr, temp | (pixval & 0xFF)); + debug("DIU: Modified value of CLKDVDR = 0x%08x\n", in_be32(clkdvdr)); } char *valid_bmp(char *addr) |