diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-09-09 15:34:13 -0400 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2012-09-21 13:07:26 -0400 |
commit | 0f81bd438bed6af47a01a97d5ecbb23a7e478de6 (patch) | |
tree | 68b0e659341e30fe337de9b7963f092945c90803 | |
parent | 1f5e6c639e25de9f059ea0e0181a5baeb3b3f4bf (diff) |
ARM: Dove: allow PCI to be disabled
Allow PCI support for Dove to be disabled. Some platforms do not have
anything connected to the PCIe ports, so requiring PCI support to be
built into the kernel just wastes space, and presents a lot more config
options than are necessary.
However, select USB_ARCH_HAS_EHCI so that we can still have EHCI
support.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
-rw-r--r-- | arch/arm/Kconfig | 3 | ||||
-rw-r--r-- | arch/arm/mach-dove/Makefile | 4 | ||||
-rw-r--r-- | arch/arm/mach-dove/common.h | 4 |
3 files changed, 8 insertions, 3 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 2f88d8d97701..95041b9937dc 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -573,11 +573,12 @@ config ARCH_MVEBU | |||
573 | config ARCH_DOVE | 573 | config ARCH_DOVE |
574 | bool "Marvell Dove" | 574 | bool "Marvell Dove" |
575 | select CPU_V7 | 575 | select CPU_V7 |
576 | select PCI | ||
577 | select ARCH_REQUIRE_GPIOLIB | 576 | select ARCH_REQUIRE_GPIOLIB |
578 | select GENERIC_CLOCKEVENTS | 577 | select GENERIC_CLOCKEVENTS |
578 | select MIGHT_HAVE_PCI | ||
579 | select NEED_MACH_IO_H | 579 | select NEED_MACH_IO_H |
580 | select PLAT_ORION | 580 | select PLAT_ORION |
581 | select USB_ARCH_HAS_EHCI | ||
581 | help | 582 | help |
582 | Support for the Marvell Dove SoC 88AP510 | 583 | Support for the Marvell Dove SoC 88AP510 |
583 | 584 | ||
diff --git a/arch/arm/mach-dove/Makefile b/arch/arm/mach-dove/Makefile index fa0f01856060..5e683baf96cf 100644 --- a/arch/arm/mach-dove/Makefile +++ b/arch/arm/mach-dove/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | obj-y += common.o addr-map.o irq.o pcie.o mpp.o | 1 | obj-y += common.o addr-map.o irq.o mpp.o |
2 | 2 | obj-$(CONFIG_PCI) += pcie.o | |
3 | obj-$(CONFIG_MACH_DOVE_DB) += dove-db-setup.o | 3 | obj-$(CONFIG_MACH_DOVE_DB) += dove-db-setup.o |
4 | obj-$(CONFIG_MACH_CM_A510) += cm-a510.o | 4 | obj-$(CONFIG_MACH_CM_A510) += cm-a510.o |
diff --git a/arch/arm/mach-dove/common.h b/arch/arm/mach-dove/common.h index 6432a3ba864b..1a233404b735 100644 --- a/arch/arm/mach-dove/common.h +++ b/arch/arm/mach-dove/common.h | |||
@@ -26,7 +26,11 @@ void dove_init_irq(void); | |||
26 | void dove_setup_cpu_mbus(void); | 26 | void dove_setup_cpu_mbus(void); |
27 | void dove_ge00_init(struct mv643xx_eth_platform_data *eth_data); | 27 | void dove_ge00_init(struct mv643xx_eth_platform_data *eth_data); |
28 | void dove_sata_init(struct mv_sata_platform_data *sata_data); | 28 | void dove_sata_init(struct mv_sata_platform_data *sata_data); |
29 | #ifdef CONFIG_PCI | ||
29 | void dove_pcie_init(int init_port0, int init_port1); | 30 | void dove_pcie_init(int init_port0, int init_port1); |
31 | #else | ||
32 | static inline void dove_pcie_init(int init_port0, int init_port1) { } | ||
33 | #endif | ||
30 | void dove_ehci0_init(void); | 34 | void dove_ehci0_init(void); |
31 | void dove_ehci1_init(void); | 35 | void dove_ehci1_init(void); |
32 | void dove_uart0_init(void); | 36 | void dove_uart0_init(void); |