Skip to contentSkip to conversation

sparc,leon: support for GRPCI1 PCI host bridge controller

PATCH Applied Daniel Hellstrom 3 participants 4 messages Mar 5, 2013 – Mar 21, 2013 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

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
index 9bff3db..ad5ad8f 100644
@@ -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
index 6cf591b..c90a2a0 100644
@@ -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
maintainer Applied
#2 lore raw
In reply to Daniel Hellstrom

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_errors my be set by the boot loader to enable interrupt on all PCI errors.

Applied to sparc-next

#3 lore raw
In reply to Daniel Hellstrom
Quoted 4 lines · David Miller

From: Sam Ravnborg <[email protected]>
Date: Tue, 5 Mar 2013 21:00:23 +0100

Quoted 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_errors my be set by the boot loader to enable interrupt on all PCI errors.

Applied to sparc-next

Thank you for reviewing applying my patches,

Daniel