ARM: cns3xxx: Add support for PCI Express ports
Subsystems (2)
PATCH 1/1 ARM: cns3xxx: Add support for PCI Express ports
This patch adds PCIe support for CNS3xxx-based boards. The support was tested with a directly attached SKY2 NIC, and EHCI USB controller behind the PLX PEX8112 P2P bridge (to make sure that type1 cfg cycles work as expected).
Signed-off-by Anton Vorontsov <[email protected]>
---
Depends on:
* [PATCH v3 0/3] Support for Cavium Networks CNS3xxx machines
http://lists.infradead.org/pipermail/linux-arm-kernel/2010-March/012457.html
* [PATCH] ARM: Add support for PCI domains
http://lists.infradead.org/pipermail/linux-arm-kernel/2010-March/012461.html
arch/arm/Kconfig | 3 +- arch/arm/mach-cns3xxx/Makefile | 1 + arch/arm/mach-cns3xxx/core.c | 30 ++++ arch/arm/mach-cns3xxx/pcie.c | 352 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 385 insertions(+), 1 deletions(-) create mode 100644 arch/arm/mach-cns3xxx/pcie.c
arch/arm/Kconfig +2 -1
@@ -299,6 +299,7 @@ config ARCH_CLPS711X config ARCH_CNS3XXX bool "Cavium Networks CNS3XXX family" select CPU_V6 + select PCI_DOMAINS if PCI select GENERIC_TIME select GENERIC_CLOCKEVENTS select ARM_GIC
@@ -1068,7 +1069,7 @@ config ISA_DMA_API bool config PCI - bool "PCI support" if ARCH_INTEGRATOR_AP || ARCH_VERSATILE_PB || ARCH_IXP4XX || ARCH_KS8695 || MACH_ARMCORE + bool "PCI support" if ARCH_INTEGRATOR_AP || ARCH_VERSATILE_PB || ARCH_IXP4XX || ARCH_KS8695 || MACH_ARMCORE || ARCH_CNS3XXX help Find out whether you have a PCI motherboard. PCI is the name of a bus system, i.e. the way the CPU talks to the other stuff inside
arch/arm/mach-cns3xxx/Makefile +1 -0
@@ -1,2 +1,3 @@ obj-$(CONFIG_ARCH_CNS3XXX) += core.o pm.o +obj-$(CONFIG_PCI) += pcie.o obj-$(CONFIG_MACH_CNS3420VB) += cns3420vb.o
arch/arm/mach-cns3xxx/core.c +30 -0
@@ -60,6 +60,36 @@ static struct map_desc cns3xxx_io_desc[] __initdata = { .pfn = __phys_to_pfn(CNS3XXX_PM_BASE), .length = SZ_4K, .type = MT_DEVICE, + }, { + .virtual = CNS3XXX_PCIE0_HOST_BASE_VIRT, + .pfn = __phys_to_pfn(CNS3XXX_PCIE0_HOST_BASE), + .length = SZ_16M, + .type = MT_DEVICE, + }, { + .virtual = CNS3XXX_PCIE0_CFG0_BASE_VIRT, + .pfn = __phys_to_pfn(CNS3XXX_PCIE0_CFG0_BASE), + .length = SZ_16M, + .type = MT_DEVICE, + }, { + .virtual = CNS3XXX_PCIE0_CFG1_BASE_VIRT, + .pfn = __phys_to_pfn(CNS3XXX_PCIE0_CFG1_BASE), + .length = SZ_16M, + .type = MT_DEVICE, + }, { + .virtual = CNS3XXX_PCIE1_HOST_BASE_VIRT, + .pfn = __phys_to_pfn(CNS3XXX_PCIE1_HOST_BASE), + .length = SZ_16M, + .type = MT_DEVICE, + }, { + .virtual = CNS3XXX_PCIE1_CFG0_BASE_VIRT, + .pfn = __phys_to_pfn(CNS3XXX_PCIE1_CFG0_BASE), + .length = SZ_16M, + .type = MT_DEVICE, + }, { + .virtual = CNS3XXX_PCIE1_CFG1_BASE_VIRT, + .pfn = __phys_to_pfn(CNS3XXX_PCIE1_CFG1_BASE), + .length = SZ_16M, + .type = MT_DEVICE, }, };
arch/arm/mach-cns3xxx/pcie.c new file +352 -0
352 lines not on this page · raw message
Signature · 1 line
1.7.0.3