Skip to content

Commit

Permalink
microblaze: Define read/write{b,w,l}_relaxed MMIO
Browse files Browse the repository at this point in the history
More and more ARM specific drivers is using MMIO
readX/writeX_relaxed IO functions and Microblaze can
shared some drivers with ARM too.

This patch adds relaxed IO accessor macros
to prevent compilation failures.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
  • Loading branch information
Michal Simek committed Jan 27, 2014
1 parent 03fe0d3 commit 17578ea
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arch/microblaze/include/asm/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -342,4 +342,12 @@ static inline void outsl(unsigned long addr, const void *buffer, int count)
#define iowrite32_rep(p, src, count) \
outsl((unsigned long) (p), (src), (count))

#define readb_relaxed readb
#define readw_relaxed readw
#define readl_relaxed readl

#define writeb_relaxed writeb
#define writew_relaxed writew
#define writel_relaxed writel

#endif /* _ASM_MICROBLAZE_IO_H */

0 comments on commit 17578ea

Please sign in to comment.