All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] vexpress64: compile Juno PCIe conditionally
@ 2015-10-20  6:05 Linus Walleij
  2015-10-20  8:07 ` Ryan Harkin
  2015-10-20 15:38 ` Tom Rini
  0 siblings, 2 replies; 13+ messages in thread
From: Linus Walleij @ 2015-10-20  6:05 UTC (permalink / raw)
  To: u-boot

Only compile in PCIe support if the board really uses it. Provide
a stub for the init function if e.g. FVP is being built.

Cc: Liviu Dudau <Liviu.Dudau@foss.arm.com>
Cc: Ryan Harkin <ryan.harkin@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 board/armltd/vexpress64/Makefile | 3 ++-
 board/armltd/vexpress64/pcie.c   | 2 --
 board/armltd/vexpress64/pcie.h   | 4 ++++
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/board/armltd/vexpress64/Makefile b/board/armltd/vexpress64/Makefile
index a35db401b684..b4391a71249a 100644
--- a/board/armltd/vexpress64/Makefile
+++ b/board/armltd/vexpress64/Makefile
@@ -5,4 +5,5 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 
-obj-y	:= vexpress64.o pcie.o
+obj-y	:= vexpress64.o
+obj-$(CONFIG_TARGET_VEXPRESS64_JUNO)	+= pcie.o
diff --git a/board/armltd/vexpress64/pcie.c b/board/armltd/vexpress64/pcie.c
index 7b999e8ef40b..311c4500e3ff 100644
--- a/board/armltd/vexpress64/pcie.c
+++ b/board/armltd/vexpress64/pcie.c
@@ -191,7 +191,5 @@ void xr3pci_init(void)
 
 void vexpress64_pcie_init(void)
 {
-#ifdef CONFIG_TARGET_VEXPRESS64_JUNO
 	xr3pci_init();
-#endif
 }
diff --git a/board/armltd/vexpress64/pcie.h b/board/armltd/vexpress64/pcie.h
index 14642f4f5c43..55b276d6af11 100644
--- a/board/armltd/vexpress64/pcie.h
+++ b/board/armltd/vexpress64/pcie.h
@@ -1,6 +1,10 @@
 #ifndef __VEXPRESS64_PCIE_H__
 #define __VEXPRESS64_PCIE_H__
 
+#ifdef CONFIG_TARGET_VEXPRESS64_JUNO
 void vexpress64_pcie_init(void);
+#else
+static inline void vexpress64_pcie_init(void) {}
+#endif
 
 #endif /* __VEXPRESS64_PCIE_H__ */
-- 
2.4.3

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-11-17 14:33 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-20  6:05 [U-Boot] [PATCH] vexpress64: compile Juno PCIe conditionally Linus Walleij
2015-10-20  8:07 ` Ryan Harkin
2015-10-20  9:05   ` Ryan Harkin
2015-10-20 15:38 ` Tom Rini
2015-10-21 11:00   ` Ryan Harkin
2015-10-21 12:50     ` Tom Rini
2015-10-21 13:16       ` Ryan Harkin
2015-11-13 13:38         ` Ryan Harkin
2015-11-13 13:39         ` Ryan Harkin
2015-11-16  9:46           ` Ryan Harkin
2015-11-16 18:03             ` Tom Rini
2015-11-16 18:16               ` Ryan Harkin
2015-11-17 14:33                 ` Linus Walleij

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.