Skip to content
Snippets Groups Projects
Commit da04995c authored by Stefan Roese's avatar Stefan Roese
Browse files

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


Signed-off-by: default avatarStefan Roese <sr@denx.de>
parent eb41db6d
No related branches found
No related tags found
No related merge requests found
...@@ -57,13 +57,13 @@ ...@@ -57,13 +57,13 @@
#if !defined(__BIG_ENDIAN) #if !defined(__BIG_ENDIAN)
#define ace_readw(off) ((readb(CFG_SYSTEMACE_BASE+off)<<8) | \ #define ace_readw(off) ((readb(CFG_SYSTEMACE_BASE+off)<<8) | \
(readb(CFG_SYSTEMACE_BASE+off+1))) (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);} writeb(val, CFG_SYSTEMACE_BASE+off+1);}
#else #else
#define ace_readw(off) ((readb(CFG_SYSTEMACE_BASE+off)) | \ #define ace_readw(off) ((readb(CFG_SYSTEMACE_BASE+off)) | \
(readb(CFG_SYSTEMACE_BASE+off+1)<<8)) (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);} writeb(val>>8, CFG_SYSTEMACE_BASE+off+1);}
#endif #endif
#else #else
#define ace_readw(off) (in16(CFG_SYSTEMACE_BASE+off)) #define ace_readw(off) (in16(CFG_SYSTEMACE_BASE+off))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment