Commit 21a379a8 authored by Jiaxun Yang's avatar Jiaxun Yang Committed by Thomas Bogendoerfer

MIPS: Loongson64: Enlarge IO_SPACE_LIMIT

It can be very big on LS7A PCH systems.
Signed-off-by: default avatarJiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent 6d0068ad
...@@ -51,8 +51,6 @@ ...@@ -51,8 +51,6 @@
/* ioswab[bwlq], __mem_ioswab[bwlq] are defined in mangle-port.h */ /* 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 * 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 * load/store instructions. mips_io_port_base is the virtual address to
......
...@@ -14,6 +14,10 @@ ...@@ -14,6 +14,10 @@
#include <asm/mipsregs.h> #include <asm/mipsregs.h>
#ifndef IO_SPACE_LIMIT
#define IO_SPACE_LIMIT 0xffff
#endif
/* /*
* This gives the physical RAM offset. * This gives the physical RAM offset.
*/ */
......
...@@ -11,8 +11,7 @@ ...@@ -11,8 +11,7 @@
#define PCI_IOSIZE SZ_16M #define PCI_IOSIZE SZ_16M
#define MAP_BASE (PCI_IOBASE + PCI_IOSIZE) #define MAP_BASE (PCI_IOBASE + PCI_IOSIZE)
/* Reserved at the start of PCI_IOBASE for legacy drivers */ #define IO_SPACE_LIMIT (PCI_IOSIZE - 1)
#define MMIO_LOWER_RESERVED 0x10000
#include <asm/mach-generic/spaces.h> #include <asm/mach-generic/spaces.h>
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment