diff mbox series

[U-Boot,v2] armv8: fsl-layerscape: fix config dependency for layerscape pci code

Message ID 20190530162831.21365-1-alexm.osslist@gmail.com
State Accepted
Delegated to: Prabhakar Kushwaha
Headers show
Series [U-Boot,v2] armv8: fsl-layerscape: fix config dependency for layerscape pci code | expand

Commit Message

Alexandru Marginean May 30, 2019, 4:28 p.m. UTC
Fixes a link error on layerscape platform, linking fails with CONFIG_PCI
set and CONFIG_PCI_LAYERSCAPE unset.

Signed-off-by: Alex Marginean <alexm.osslist@gmail.com>
---
Changes in v2:
	- resent with proper email addresses for freescale/NXP folks

 arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Bin Meng June 2, 2019, 2:24 p.m. UTC | #1
On Fri, May 31, 2019 at 12:29 AM Alex Marginean <alexm.osslist@gmail.com> wrote:
>
> Fixes a link error on layerscape platform, linking fails with CONFIG_PCI
> set and CONFIG_PCI_LAYERSCAPE unset.
>
> Signed-off-by: Alex Marginean <alexm.osslist@gmail.com>
> ---
> Changes in v2:
>         - resent with proper email addresses for freescale/NXP folks
>
>  arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Prabhakar Kushwaha June 19, 2019, 11:43 a.m. UTC | #2
> -----Original Message-----
> From: Alex Marginean <alexm.osslist@gmail.com>
> Sent: Thursday, May 30, 2019 9:59 PM
> To: u-boot@lists.denx.de
> Cc: York Sun <york.sun@nxp.com>; Mingkai Hu <mingkai.hu@nxp.com>;
> Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>; Albert Aribaud
> <albert.u.boot@aribaud.net>; Alex Marginean <alexm.osslist@gmail.com>
> Subject: [PATCH v2] armv8: fsl-layerscape: fix config dependency for layerscape
> pci code
> 
> Fixes a link error on layerscape platform, linking fails with CONFIG_PCI set and
> CONFIG_PCI_LAYERSCAPE unset.
> 
> Signed-off-by: Alex Marginean <alexm.osslist@gmail.com>
> ---

This patch has been applied to fsl-qoriq master, awaiting upstream.

--pk
diff mbox series

Patch

diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fdt.c b/arch/arm/cpu/armv8/fsl-layerscape/fdt.c
index 11117657fe..fabe0f0359 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/fdt.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/fdt.c
@@ -435,7 +435,7 @@  void ft_cpu_setup(void *blob, bd_t *bd)
 	do_fixup_by_path_u32(blob, "/sysclk", "clock-frequency",
 			     CONFIG_SYS_CLK_FREQ, 1);
 
-#ifdef CONFIG_PCI
+#ifdef CONFIG_PCI_LAYERSCAPE
 	ft_pci_setup(blob, bd);
 #endif