Skip to content

Commit 21a379a

Browse files
FlyGoattsbogend
authored andcommitted
MIPS: Loongson64: Enlarge IO_SPACE_LIMIT
It can be very big on LS7A PCH systems. Signed-off-by: Jiaxun Yang <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 6d0068a commit 21a379a

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

arch/mips/include/asm/io.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@
5151

5252
/* ioswab[bwlq], __mem_ioswab[bwlq] are defined in mangle-port.h */
5353

54-
#define IO_SPACE_LIMIT 0xffff
55-
5654
/*
5755
* On MIPS I/O ports are memory mapped, so we access them using normal
5856
* load/store instructions. mips_io_port_base is the virtual address to

arch/mips/include/asm/mach-generic/spaces.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414

1515
#include <asm/mipsregs.h>
1616

17+
#ifndef IO_SPACE_LIMIT
18+
#define IO_SPACE_LIMIT 0xffff
19+
#endif
20+
1721
/*
1822
* This gives the physical RAM offset.
1923
*/

arch/mips/include/asm/mach-loongson64/spaces.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
#define PCI_IOSIZE SZ_16M
1212
#define MAP_BASE (PCI_IOBASE + PCI_IOSIZE)
1313

14-
/* Reserved at the start of PCI_IOBASE for legacy drivers */
15-
#define MMIO_LOWER_RESERVED 0x10000
14+
#define IO_SPACE_LIMIT (PCI_IOSIZE - 1)
1615

1716
#include <asm/mach-generic/spaces.h>
1817
#endif

0 commit comments

Comments
 (0)