mvebu: update to 3.8-rc4
[openwrt.git] / target / linux / mvebu / patches-3.8 / 034-arm_plat_orion_make_common_pcie.patch
1 mvebu is a new-style Orion platform, so it only selects PLAT_ORION,
2 but not PLAT_ORION_LEGACY. It will however need the common PCIe code
3 from plat-orion, so make this code available for PLAT_ORION platforms
4 as a whole, and not only PLAT_ORION_LEGACY platforms.
5
6 We also take this opportunity to build the PCIe code only when
7 CONFIG_PCI is enabled.
8
9 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 ---
11  arch/arm/plat-orion/Makefile |    3 ++-
12  1 file changed, 2 insertions(+), 1 deletion(-)
13
14 --- a/arch/arm/plat-orion/Makefile
15 +++ b/arch/arm/plat-orion/Makefile
16 @@ -4,7 +4,8 @@
17  ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include
18  
19  obj-y                             += addr-map.o
20 +obj-$(CONFIG_PCI)                 += pcie.o
21  
22  orion-gpio-$(CONFIG_GENERIC_GPIO) += gpio.o
23 -obj-$(CONFIG_PLAT_ORION_LEGACY)   += irq.o pcie.o time.o common.o mpp.o
24 +obj-$(CONFIG_PLAT_ORION_LEGACY)   += irq.o time.o common.o mpp.o
25  obj-$(CONFIG_PLAT_ORION_LEGACY)   += $(orion-gpio-y)