PCI: consolidate PCI config entry in drivers/pci
There is no good reason to duplicate the PCI menu in every architecture. Instead provide a selectable HAVE_PCI symbol that indicates availability of PCI support, and a FORCE_PCI symbol to for PCI on and the handle the rest in drivers/pci. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Palmer Dabbelt <palmer@sifive.com> Acked-by: Max Filippov <jcmvbkbc@gmail.com> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Paul Burton <paul.burton@mips.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:

committed by
Masahiro Yamada

parent
437f2b8c20
commit
eb01d42a77
@@ -51,9 +51,6 @@ config ARC
|
||||
config ARCH_HAS_CACHE_LINE_SIZE
|
||||
def_bool y
|
||||
|
||||
config MIGHT_HAVE_PCI
|
||||
bool
|
||||
|
||||
config TRACE_IRQFLAGS_SUPPORT
|
||||
def_bool y
|
||||
|
||||
@@ -553,24 +550,7 @@ config FORCE_MAX_ZONEORDER
|
||||
default "12" if ARC_HUGEPAGE_16M
|
||||
default "11"
|
||||
|
||||
menu "Bus Support"
|
||||
|
||||
config PCI
|
||||
bool "PCI support" if MIGHT_HAVE_PCI
|
||||
help
|
||||
PCI is the name of a bus system, i.e., the way the CPU talks to
|
||||
the other stuff inside your box. Find out if your board/platform
|
||||
has PCI.
|
||||
|
||||
Note: PCIe support for Synopsys Device will be available only
|
||||
when HAPS DX is configured with PCIe RC bitmap. If you have PCI,
|
||||
say Y, otherwise N.
|
||||
|
||||
config PCI_SYSCALL
|
||||
def_bool PCI
|
||||
|
||||
source "drivers/pci/Kconfig"
|
||||
|
||||
endmenu
|
||||
|
||||
source "kernel/power/Kconfig"
|
||||
|
@@ -11,7 +11,7 @@ menuconfig ARC_PLAT_AXS10X
|
||||
select DW_APB_ICTL
|
||||
select GPIO_DWAPB
|
||||
select OF_GPIO
|
||||
select MIGHT_HAVE_PCI
|
||||
select HAVE_PCI
|
||||
select GENERIC_IRQ_CHIP
|
||||
select GPIOLIB
|
||||
select AXS101 if ISA_ARCOMPACT
|
||||
|
@@ -11,4 +11,4 @@ menuconfig ARC_SOC_HSDK
|
||||
select ARC_HAS_ACCL_REGS
|
||||
select CLK_HSDK
|
||||
select RESET_HSDK
|
||||
select MIGHT_HAVE_PCI
|
||||
select HAVE_PCI
|
||||
|
Reference in New Issue
Block a user