summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/include
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2019-09-01 23:55:49 -0700
committerMax Filippov <jcmvbkbc@gmail.com>2019-09-02 00:09:30 -0700
commit982792f45894878b9ec13df81e6e02209b34cb11 (patch)
tree346ad24785f653c5b555b9eeda4ce73a3deeb020 /arch/xtensa/include
parent09f8a6db20e6ed8eab1b2b23d09d2458f6e15062 (diff)
downloadlinux-982792f45894878b9ec13df81e6e02209b34cb11.tar.gz
linux-982792f45894878b9ec13df81e6e02209b34cb11.tar.bz2
linux-982792f45894878b9ec13df81e6e02209b34cb11.zip
xtensa: virt: move PCI root complex to KIO range
Move PCI configuration space, MMIO and memory to the KIO range to free vmalloc area and use static TLB to access them. Move MMIO to the beginning of KIO and define PCI_IOBASE as XCHAL_KIO_BYPASS_VADDR to match it. Reduce number of supported PCI buses to 0x3f so that ECAM window fits into first 64MB of the KIO. Reduce size of the PCI memory window to 128MB so that it fits into KIO. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/include')
-rw-r--r--arch/xtensa/include/asm/io.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/io.h b/arch/xtensa/include/asm/io.h
index da3e783f896b..988e08530a5c 100644
--- a/arch/xtensa/include/asm/io.h
+++ b/arch/xtensa/include/asm/io.h
@@ -21,6 +21,7 @@
#define IOADDR(x) (XCHAL_KIO_BYPASS_VADDR + (x))
#define IO_SPACE_LIMIT ~0
+#define PCI_IOBASE ((void __iomem *)XCHAL_KIO_BYPASS_VADDR)
#ifdef CONFIG_MMU