full 32bit ioremap
Subsystems (2)
Ralf,
I've attached a patch to add full 32 bit ioremap support for mips. It's basically x86 ioremap with a couple of small changes. I've tested it on one board and it works fine, although some driver modifications were necessary since the minimum ioremap size is 0x1000. I realize no other boards require ioremap beyond 0x2000 0000 at this time, but others may benefit from it in the future. The default is to not use it, so nothing needs to be changed in any of the boards supported, except the defconfig file.
Pete
Documentation/Configure.help +8 -0
@@ -229,6 +229,14 @@ If unsure, say "off". +MIPS 32bit ioremap support +CONFIG_MIPS_32BIT_IOREMAP + If you want to be able to remap I/O devices on any 32 bit physical + address, say Y. Without this feature, I/O devices MUST reside on + a physical address less than 0x2000 0000. Do NOT say Y unless + you're absolutely sure you know what this feature is and what + are the implications for device drivers. + Normal PC floppy disk support CONFIG_BLK_DEV_FD If you want to use the floppy disk drive(s) of your PC under Linux,
arch/mips/config.in +1 -0
@@ -232,6 +232,7 @@ if [ "$CONFIG_CPU_ADVANCED" = "y" ]; then bool ' ll/sc Instructions available' CONFIG_CPU_HAS_LLSC bool ' Writeback Buffer available' CONFIG_CPU_HAS_WB + bool ' Enable full 32 bit ioremap' CONFIG_MIPS_32BIT_IOREMAP else if [ "$CONFIG_CPU_R3000" = "y" ]; then if [ "$CONFIG_DECSTATION" = "y" ]; then
arch/mips/mm/Makefile +1 -0
@@ -12,6 +12,7 @@ export-objs += umap.o obj-y += extable.o init.o fault.o loadmmu.o +obj-$(CONFIG_MIPS_32BIT_IOREMAP) += ioremap.o obj-$(CONFIG_CPU_R3000) += r2300.o obj-$(CONFIG_CPU_R4300) += r4xx0.o obj-$(CONFIG_CPU_R4X00) += r4xx0.o
arch/mips/mm/ioremap.c +180 -0
180 lines not on this page · raw message
include/asm-mips/io.h +2 -0
@@ -133,6 +133,7 @@*/ extern unsigned long isa_slot_offset; +#ifndef CONFIG_MIPS_32BIT_IOREMAP /* * readX/writeX() are used to access memory mapped devices. On some * architectures the memory mapped IO stuff needs to be accessed
@@ -165,6 +166,7 @@extern inline void iounmap (void *addr) { } +#endif /* * XXX We need system specific versions of these to handle EISA address bits