[PATCH] Fix problem in systemace driver (ace_writew instead of ace_write)

Signed-off-by: Stefan Roese <sr@denx.de>
master
Stefan Roese 19 years ago
parent eb41db6d22
commit da04995c7d
  1. 4
      drivers/systemace.c

@ -57,12 +57,12 @@
#if !defined(__BIG_ENDIAN)
#define ace_readw(off) ((readb(CFG_SYSTEMACE_BASE+off)<<8) | \
(readb(CFG_SYSTEMACE_BASE+off+1)))
#define ace_write(val, off) {writeb(val>>8, CFG_SYSTEMACE_BASE+off); \
#define ace_writew(val, off) {writeb(val>>8, CFG_SYSTEMACE_BASE+off); \
writeb(val, CFG_SYSTEMACE_BASE+off+1);}
#else
#define ace_readw(off) ((readb(CFG_SYSTEMACE_BASE+off)) | \
(readb(CFG_SYSTEMACE_BASE+off+1)<<8))
#define ace_write(val, off) {writeb(val, CFG_SYSTEMACE_BASE+off); \
#define ace_writew(val, off) {writeb(val, CFG_SYSTEMACE_BASE+off); \
writeb(val>>8, CFG_SYSTEMACE_BASE+off+1);}
#endif
#else

Loading…
Cancel
Save