mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
vexpress64: compile Juno PCIe conditionally
Only compile in PCIe support if the board really uses it. Provide a __weak stub for the init function if e.g. FVP is being built. Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org> Acked-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
0ee1a22b6d
commit
bc8d3bc023
3 changed files with 9 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -191,7 +191,5 @@ void xr3pci_init(void)
|
|||
|
||||
void vexpress64_pcie_init(void)
|
||||
{
|
||||
#ifdef CONFIG_TARGET_VEXPRESS64_JUNO
|
||||
xr3pci_init();
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -28,6 +28,13 @@ U_BOOT_DEVICE(vexpress_serials) = {
|
|||
.platdata = &serial_platdata,
|
||||
};
|
||||
|
||||
/* This function gets replaced by platforms supporting PCIe.
|
||||
* The replacement function, eg. on Juno, initialises the PCIe bus.
|
||||
*/
|
||||
__weak void vexpress64_pcie_init(void)
|
||||
{
|
||||
}
|
||||
|
||||
int board_init(void)
|
||||
{
|
||||
vexpress64_pcie_init();
|
||||
|
|
Loading…
Add table
Reference in a new issue