diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2011-05-23 17:04:48 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-06-02 17:32:38 -0400 |
commit | 5d07b7869a48aec43ee0de6413a6657457287b63 (patch) | |
tree | 923edcf1205707046bea47fb0bfd6028484a2b6f /arch/sparc/Kconfig | |
parent | 26893c1368aeb96e06e4f9dce61bbde3351d5e9f (diff) |
sparc32,leon: add GRPCI2 PCI Host driver
The DMA region must be accessible in order for PCI peripheral
drivers to work, the sparc32 has DMA in the normal memory
zone which requires the GRPCI2 to PCI target BARs so that all
kernel low mem (192MB) can be mapped 1:1 to PCI address
space. The GRPCI2 has resizeable target BARs, by default the
first is made 256MB and all other BARs are disabled.
I/O space are always located on 0x1000-0x10000, but accessed
through the GRPCI2 PCI I/O Window memory mapped to virtual
address space.
Configuration space is accessed through the 64KB GRPCI2 PCI
CFG Window using LDA bypassing the MMU.
The GRPCI2 has a single PCI Window for prefetchable and non-
prefetchable address space, it is up to the AHB master
requesting PCI data to determine access type. Memory space
is mapped 1:1.
The GRPCI2 core can be configured in 4 different IRQ modes,
where PCI Interrupt, Error Interrupt and DMA Interrupt are
shared on a single IRQ line or at most 5 IRQs are used. The
GRPCI2 can mask/unmask PCI interrupts, Err and DMA in the control
and check status bits which tells us which IRQ really happended.
The GENIRQ layer is used to unmask/mask each individual IRQ
source by creating virtual IRQs and implementing a IRQ chip.
The optional DMA functionality of the GRPCI2 is not supported
by this patch.
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/Kconfig')
-rw-r--r-- | arch/sparc/Kconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index ec748c4c16ce..730dda1ad143 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig | |||
@@ -538,6 +538,13 @@ config LEON_PCI | |||
538 | depends on PCI && SPARC_LEON | 538 | depends on PCI && SPARC_LEON |
539 | default y | 539 | default y |
540 | 540 | ||
541 | config GRPCI2 | ||
542 | bool "GRPCI2 Host Bridge Support" | ||
543 | depends on LEON_PCI | ||
544 | default y | ||
545 | help | ||
546 | Say Y here to include the GRPCI2 Host Bridge Driver. | ||
547 | |||
541 | source "drivers/pci/Kconfig" | 548 | source "drivers/pci/Kconfig" |
542 | 549 | ||
543 | source "drivers/pcmcia/Kconfig" | 550 | source "drivers/pcmcia/Kconfig" |