Skip to content

Commit

Permalink
MIPS: Loongson64: Enlarge IO_SPACE_LIMIT
Browse files Browse the repository at this point in the history
It can be very big on LS7A PCH systems.

Signed-off-by: Jiaxun Yang <[email protected]>
Signed-off-by: Thomas Bogendoerfer <[email protected]>
  • Loading branch information
FlyGoat authored and tsbogend committed Jul 28, 2020
1 parent 6d0068a commit 21a379a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 0 additions & 2 deletions arch/mips/include/asm/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@

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

#define IO_SPACE_LIMIT 0xffff

/*
* On MIPS I/O ports are memory mapped, so we access them using normal
* load/store instructions. mips_io_port_base is the virtual address to
Expand Down
4 changes: 4 additions & 0 deletions arch/mips/include/asm/mach-generic/spaces.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

#include <asm/mipsregs.h>

#ifndef IO_SPACE_LIMIT
#define IO_SPACE_LIMIT 0xffff
#endif

/*
* This gives the physical RAM offset.
*/
Expand Down
3 changes: 1 addition & 2 deletions arch/mips/include/asm/mach-loongson64/spaces.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
#define PCI_IOSIZE SZ_16M
#define MAP_BASE (PCI_IOBASE + PCI_IOSIZE)

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

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

0 comments on commit 21a379a

Please sign in to comment.