2 * Copyright 2014 Freescale Semiconductor, Inc.
3 * Layerscape PCIe driver
5 * SPDX-License-Identifier: GPL-2.0+
9 #include <asm/arch/fsl_serdes.h>
12 #include <asm/pcie_layerscape.h>
14 #ifdef CONFIG_OF_BOARD_SETUP
16 #include <fdt_support.h>
18 static void ft_pcie_ls_setup(void *blob, const char *pci_compat,
19 unsigned long ctrl_addr, enum srds_prtcl dev)
23 off = fdt_node_offset_by_compat_reg(blob, pci_compat,
24 (phys_addr_t)ctrl_addr);
28 if (!is_serdes_configured(dev))
29 fdt_set_node_status(blob, off, FDT_STATUS_DISABLED, 0);
32 void ft_pcie_setup(void *blob, bd_t *bd)
35 ft_pcie_ls_setup(blob, FSL_PCIE_COMPAT, CONFIG_SYS_PCIE1_ADDR, PCIE1);
39 ft_pcie_ls_setup(blob, FSL_PCIE_COMPAT, CONFIG_SYS_PCIE2_ADDR, PCIE2);
44 void ft_pcie_setup(void *blob, bd_t *bd)
49 void pci_init_board(void)