sparc,leon: support for GRPCI1 PCI host bridge controller
PATCH v4 1/1 sparc,leon: support for GRPCI1 PCI host bridge controller
Some of the GRPCI1 cores does not support detection of all PCI errors, the default is therefore limited PCI error handling. The property all_pci_errors my be set by the boot loader to enable interrupt on all PCI errors.
--- arch/sparc/Kconfig | 11 + arch/sparc/kernel/Makefile | 1 + arch/sparc/kernel/leon_pci_grpci1.c | 724 +++++++++++++++++++++++++++++++++++ 3 files changed, 736 insertions(+), 0 deletions(-) create mode 100644 arch/sparc/kernel/leon_pci_grpci1.c
arch/sparc/Kconfig +11 -0
@@ -500,6 +500,17 @@ config LEON_PCI depends on PCI && SPARC_LEON default y +config SPARC_GRPCI1 + bool "GRPCI Host Bridge Support" + depends on LEON_PCI + default y + help + Say Y here to include the GRPCI Host Bridge Driver. The GRPCI + PCI host controller is typically found in GRLIB SPARC32/LEON + systems. The driver has one property (all_pci_errors) controlled + from the bootloader that makes the GRPCI to generate interrupts + on detected PCI Parity and System errors. + config GRPCI2 bool "GRPCI2 Host Bridge Support" depends on LEON_PCI
arch/sparc/kernel/Makefile +1 -0
@@ -75,6 +75,7 @@ obj-y += dma.o obj-$(CONFIG_PCIC_PCI) += pcic.o obj-$(CONFIG_LEON_PCI) += leon_pci.o obj-$(CONFIG_GRPCI2) += leon_pci_grpci2.o +obj-$(CONFIG_SPARC_GRPCI1)+= leon_pci_grpci1.o obj-$(CONFIG_SMP) += trampoline_$(BITS).o smp_$(BITS).o obj-$(CONFIG_SPARC32_SMP) += sun4m_smp.o sun4d_smp.o leon_smp.o
arch/sparc/kernel/leon_pci_grpci1.c new file +724 -0
724 lines not on this page · raw message
Signature · 1 line
1.7.0.4
Quoted 6 lines · Daniel Hellstrom
Some of the GRPCI1 cores does not support detection of all PCI errors, the default is therefore limited PCI error handling. The property
all_pci_errorsmy be set by the boot loader to enable interrupt on all PCI errors.Signed-off-by Daniel Hellstrom <[email protected]>
From: Sam Ravnborg <[email protected]>
Date: Tue, 5 Mar 2013 21:00:23 +0100
Quoted 8 lines · Daniel Hellstrom
Quoted 6 lines
Some of the GRPCI1 cores does not support detection of all PCI errors, the default is therefore limited PCI error handling. The property
all_pci_errorsmy be set by the boot loader to enable interrupt on all PCI errors.Signed-off-by Daniel Hellstrom <[email protected]>Acked-by Sam Ravnborg <[email protected]>
Applied to sparc-next
Quoted 4 lines · David Miller
From: Sam Ravnborg <[email protected]>
Date: Tue, 5 Mar 2013 21:00:23 +0100Quoted 1 line · Daniel Hellstrom
Quoted 8 lines
Quoted 7 lines
Quoted 6 lines
Some of the GRPCI1 cores does not support detection of all PCI errors, the default is therefore limited PCI error handling. The property
all_pci_errorsmy be set by the boot loader to enable interrupt on all PCI errors.Signed-off-by Daniel Hellstrom <[email protected]>Acked-by Sam Ravnborg <[email protected]>Applied to sparc-next
Thank you for reviewing applying my patches,
Daniel