diff options
| -rw-r--r-- | arch/tile/include/asm/io.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/tile/include/asm/io.h b/arch/tile/include/asm/io.h index 2a9b293fece6..31672918064c 100644 --- a/arch/tile/include/asm/io.h +++ b/arch/tile/include/asm/io.h | |||
| @@ -250,7 +250,9 @@ static inline void writeq(u64 val, unsigned long addr) | |||
| 250 | #define iowrite32 writel | 250 | #define iowrite32 writel |
| 251 | #define iowrite64 writeq | 251 | #define iowrite64 writeq |
| 252 | 252 | ||
| 253 | static inline void memset_io(void *dst, int val, size_t len) | 253 | #if CHIP_HAS_MMIO() || defined(CONFIG_PCI) |
| 254 | |||
| 255 | static inline void memset_io(volatile void *dst, int val, size_t len) | ||
| 254 | { | 256 | { |
| 255 | int x; | 257 | int x; |
| 256 | BUG_ON((unsigned long)dst & 0x3); | 258 | BUG_ON((unsigned long)dst & 0x3); |
| @@ -277,6 +279,8 @@ static inline void memcpy_toio(volatile void __iomem *dst, const void *src, | |||
| 277 | writel(*(u32 *)(src + x), dst + x); | 279 | writel(*(u32 *)(src + x), dst + x); |
| 278 | } | 280 | } |
| 279 | 281 | ||
| 282 | #endif | ||
| 283 | |||
| 280 | /* | 284 | /* |
| 281 | * The Tile architecture does not support IOPORT, even with PCI. | 285 | * The Tile architecture does not support IOPORT, even with PCI. |
| 282 | * Unfortunately we can't yet simply not declare these methods, | 286 | * Unfortunately we can't yet simply not declare these methods, |
