mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-02 09:30:43 +09:00
powerpc: p1_p2_rdb: Compile legacy PCIe routines conditionally
Compile the legacy PCIe initialization routines for P1020, P1021, P1024, P1025 and P2020 RDB boards only when DM_PCI is not enabled. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
This commit is contained in:
parent
7a96397801
commit
7e4248c5d8
@ -278,7 +278,7 @@ int checkboard(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_PCI
|
#if defined(CONFIG_PCI) && !defined(CONFIG_DM_PCI)
|
||||||
void pci_init_board(void)
|
void pci_init_board(void)
|
||||||
{
|
{
|
||||||
fsl_pcie_init_board(0);
|
fsl_pcie_init_board(0);
|
||||||
@ -444,7 +444,9 @@ int ft_board_setup(void *blob, bd_t *bd)
|
|||||||
|
|
||||||
fdt_fixup_memory(blob, (u64)base, (u64)size);
|
fdt_fixup_memory(blob, (u64)base, (u64)size);
|
||||||
|
|
||||||
|
#if !defined(CONFIG_DM_PCI)
|
||||||
FT_FSL_PCI_SETUP;
|
FT_FSL_PCI_SETUP;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_QE
|
#ifdef CONFIG_QE
|
||||||
do_fixup_by_compat(blob, "fsl,qe", "status", "okay",
|
do_fixup_by_compat(blob, "fsl,qe", "status", "okay",
|
||||||
|
Loading…
Reference in New Issue
Block a user