Skip to content

Commit 9d48cc0

Browse files
committed
m68k/nommu: stop using GENERIC_IOMAP
There is no need to go through the GENERIC_IOMAP wrapper for PIO on nommu platforms, since these always come from PCI I/O space that is itself memory mapped. Instead, the generic ioport_map() can just return the MMIO location of the ports directly by applying the PCI_IO_PA offset, while ioread32/iowrite32 trivially turn into readl/writel as they do on most other architectures. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 976bf3a commit 9d48cc0

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

arch/m68k/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ config M68K
1818
select DMA_DIRECT_REMAP if M68K_NONCOHERENT_DMA && !COLDFIRE
1919
select GENERIC_ATOMIC64
2020
select GENERIC_CPU_DEVICES
21-
select GENERIC_IOMAP if HAS_IOPORT
21+
select GENERIC_IOMAP if HAS_IOPORT && MMU
2222
select GENERIC_IRQ_SHOW
2323
select GENERIC_LIB_ASHLDI3
2424
select GENERIC_LIB_ASHRDI3

arch/m68k/include/asm/io_no.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,6 @@ static inline void writel(u32 value, volatile void __iomem *addr)
123123
#define PCI_IO_SIZE 0x00010000 /* 64k */
124124
#define PCI_IO_MASK (PCI_IO_SIZE - 1)
125125

126-
#define HAVE_ARCH_PIO_SIZE
127-
#define PIO_OFFSET 0
128-
#define PIO_MASK 0xffff
129-
#define PIO_RESERVED 0x10000
130126
#define PCI_IOBASE ((void __iomem *) PCI_IO_PA)
131127
#define PCI_SPACE_LIMIT PCI_IO_MASK
132128
#endif /* CONFIG_PCI */

0 commit comments

Comments
 (0)