diff options
author | Stafford Horne <shorne@gmail.com> | 2022-06-12 08:42:33 +0900 |
---|---|---|
committer | Stafford Horne <shorne@gmail.com> | 2022-07-30 05:50:15 +0900 |
commit | ded2ee36313c941f1a12b6f85cde295b575264ae (patch) | |
tree | e9b85fcdb4ac99508d8323040a8059cbe68f9ec9 /arch/openrisc/Kconfig | |
parent | 0757060a438835df82bd8aec40d4abc7dc4c9584 (diff) | |
download | linux-ded2ee36313c941f1a12b6f85cde295b575264ae.tar.gz linux-ded2ee36313c941f1a12b6f85cde295b575264ae.tar.bz2 linux-ded2ee36313c941f1a12b6f85cde295b575264ae.zip |
openrisc: Add pci bus support
This patch adds required definitions to allow for PCI buses on OpenRISC.
This is being tested on the OpenRISC QEMU virt platform which is in
development.
OpenRISC does not have IO ports so we keep the definition of
IO_SPACE_LIMIT and PIO_RESERVED to be 0.
Note, since commit 66bcd06099bb ("parport_pc: Also enable driver for PCI
systems") all platforms that support PCI also need to support parallel
port. We add a generic header to support compiling parallel port
drivers, though they generally will not work as they require IO ports.
Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to 'arch/openrisc/Kconfig')
-rw-r--r-- | arch/openrisc/Kconfig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/openrisc/Kconfig b/arch/openrisc/Kconfig index e814df4c483c..c7f282f60f64 100644 --- a/arch/openrisc/Kconfig +++ b/arch/openrisc/Kconfig @@ -20,8 +20,9 @@ config OPENRISC select GENERIC_IRQ_CHIP select GENERIC_IRQ_PROBE select GENERIC_IRQ_SHOW - select GENERIC_IOMAP + select GENERIC_PCI_IOMAP select GENERIC_CPU_DEVICES + select HAVE_PCI select HAVE_UID16 select GENERIC_ATOMIC64 select GENERIC_CLOCKEVENTS_BROADCAST @@ -32,6 +33,8 @@ config OPENRISC select CPU_NO_EFFICIENT_FFS if !OPENRISC_HAVE_INST_FF1 select ARCH_USE_QUEUED_RWLOCKS select OMPIC if SMP + select PCI_DOMAINS_GENERIC if PCI + select PCI_MSI if PCI select ARCH_WANT_FRAME_POINTERS select GENERIC_IRQ_MULTI_HANDLER select MMU_GATHER_NO_RANGE if MMU |