aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/sh/boards/Kconfig6
-rw-r--r--arch/sh/include/asm/io.h12
2 files changed, 9 insertions, 9 deletions
diff --git a/arch/sh/boards/Kconfig b/arch/sh/boards/Kconfig
index dcc1af8a2cfe..99e2d47f79f5 100644
--- a/arch/sh/boards/Kconfig
+++ b/arch/sh/boards/Kconfig
@@ -121,7 +121,7 @@ config SH_RTS7751R2D
121 bool "RTS7751R2D" 121 bool "RTS7751R2D"
122 depends on CPU_SUBTYPE_SH7751R 122 depends on CPU_SUBTYPE_SH7751R
123 select SYS_SUPPORTS_PCI 123 select SYS_SUPPORTS_PCI
124 select IO_TRAPPED 124 select IO_TRAPPED if MMU
125 help 125 help
126 Select RTS7751R2D if configuring for a Renesas Technology 126 Select RTS7751R2D if configuring for a Renesas Technology
127 Sales SH-Graphics board. 127 Sales SH-Graphics board.
@@ -145,13 +145,13 @@ config SH_HIGHLANDER
145 bool "Highlander" 145 bool "Highlander"
146 depends on CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785 146 depends on CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785
147 select SYS_SUPPORTS_PCI 147 select SYS_SUPPORTS_PCI
148 select IO_TRAPPED 148 select IO_TRAPPED if MMU
149 149
150config SH_SH7785LCR 150config SH_SH7785LCR
151 bool "SH7785LCR" 151 bool "SH7785LCR"
152 depends on CPU_SUBTYPE_SH7785 152 depends on CPU_SUBTYPE_SH7785
153 select SYS_SUPPORTS_PCI 153 select SYS_SUPPORTS_PCI
154 select IO_TRAPPED 154 select IO_TRAPPED if MMU
155 155
156config SH_SH7785LCR_29BIT_PHYSMAPS 156config SH_SH7785LCR_29BIT_PHYSMAPS
157 bool "SH7785LCR 29bit physmaps" 157 bool "SH7785LCR 29bit physmaps"
diff --git a/arch/sh/include/asm/io.h b/arch/sh/include/asm/io.h
index 0454f8d68059..ef217344afcb 100644
--- a/arch/sh/include/asm/io.h
+++ b/arch/sh/include/asm/io.h
@@ -228,12 +228,6 @@ void __iounmap(void __iomem *addr);
228unsigned long onchip_remap(unsigned long addr, unsigned long size, 228unsigned long onchip_remap(unsigned long addr, unsigned long size,
229 const char *name); 229 const char *name);
230extern void onchip_unmap(unsigned long vaddr); 230extern void onchip_unmap(unsigned long vaddr);
231#else
232#define __ioremap(offset, size, flags) ((void __iomem *)(offset))
233#define __iounmap(addr) do { } while (0)
234#define onchip_remap(addr, size, name) (addr)
235#define onchip_unmap(addr) do { } while (0)
236#endif /* CONFIG_MMU */
237 231
238static inline void __iomem * 232static inline void __iomem *
239__ioremap_mode(unsigned long offset, unsigned long size, unsigned long flags) 233__ioremap_mode(unsigned long offset, unsigned long size, unsigned long flags)
@@ -268,6 +262,12 @@ __ioremap_mode(unsigned long offset, unsigned long size, unsigned long flags)
268 262
269 return __ioremap(offset, size, flags); 263 return __ioremap(offset, size, flags);
270} 264}
265#else
266#define onchip_remap(addr, size, name) (addr)
267#define onchip_unmap(addr) do { } while (0)
268#define __ioremap_mode(offset, size, flags) ((void __iomem *)(offset))
269#define __iounmap(addr) do { } while (0)
270#endif /* CONFIG_MMU */
271 271
272#define ioremap(offset, size) \ 272#define ioremap(offset, size) \
273 __ioremap_mode((offset), (size), 0) 273 __ioremap_mode((offset), (size), 0)