diff options
| author | Michal Simek <michal.simek@xilinx.com> | 2013-11-20 07:59:40 -0500 |
|---|---|---|
| committer | Michal Simek <michal.simek@xilinx.com> | 2014-01-27 05:26:32 -0500 |
| commit | 17578ea198a9b9210ba7846029624d57be6acea2 (patch) | |
| tree | ff2d1670fb81b3da31dc963335b5659b7601b793 | |
| parent | 03fe0d3c27ed37d936eaa61e10ce56f8b15361a7 (diff) | |
microblaze: Define read/write{b,w,l}_relaxed MMIO
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>
| -rw-r--r-- | arch/microblaze/include/asm/io.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/microblaze/include/asm/io.h b/arch/microblaze/include/asm/io.h index 2565cb94f32f..a2cea7206077 100644 --- a/arch/microblaze/include/asm/io.h +++ b/arch/microblaze/include/asm/io.h | |||
| @@ -342,4 +342,12 @@ static inline void outsl(unsigned long addr, const void *buffer, int count) | |||
| 342 | #define iowrite32_rep(p, src, count) \ | 342 | #define iowrite32_rep(p, src, count) \ |
| 343 | outsl((unsigned long) (p), (src), (count)) | 343 | outsl((unsigned long) (p), (src), (count)) |
| 344 | 344 | ||
| 345 | #define readb_relaxed readb | ||
| 346 | #define readw_relaxed readw | ||
| 347 | #define readl_relaxed readl | ||
| 348 | |||
| 349 | #define writeb_relaxed writeb | ||
| 350 | #define writew_relaxed writew | ||
| 351 | #define writel_relaxed writel | ||
| 352 | |||
| 345 | #endif /* _ASM_MICROBLAZE_IO_H */ | 353 | #endif /* _ASM_MICROBLAZE_IO_H */ |
