2 * Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
4 * SPDX-License-Identifier: GPL-2.0+
10 #include <asm/fsp/fsp_support.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)
52 /* call into FspNotify */
53 debug("Calling into FSP (notify phase INIT_PHASE_PCI): ");
54 status = fsp_notify(NULL, INIT_PHASE_PCI);
55 if (status != FSP_SUCCESS)
56 debug("fail, error code %x\n", status);