2 * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
4 * SPDX-License-Identifier: GPL-2.0+
10 #include <asm/arch/device.h>
12 DECLARE_GLOBAL_DATA_PTR;
14 void board_pci_setup_hose(struct pci_controller *hose)
16 hose->first_busno = 0;
19 /* PCI memory space */
20 pci_set_region(hose->regions + 0,
27 pci_set_region(hose->regions + 1,
33 pci_set_region(hose->regions + 2,
39 pci_set_region(hose->regions + 3,
43 PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
45 hose->region_count = 4;
48 int board_pci_post_scan(struct pci_controller *hose)
53 int pci_skip_dev(struct pci_controller *hose, pci_dev_t dev)
58 * For some unknown reason, the PCI enumeration process hangs
59 * when it scans to the PCIe root port 0 (D23:F0) & 1 (D23:F1).
61 * For now we just skip these two devices, and this needs to
64 if (dev == QUARK_HOST_BRIDGE ||
65 dev == QUARK_PCIE0 || dev == QUARK_PCIE1) {