summaryrefslogtreecommitdiff
path: root/arch/x86/cpu/coreboot/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/cpu/coreboot/pci.c')
-rw-r--r--arch/x86/cpu/coreboot/pci.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/x86/cpu/coreboot/pci.c b/arch/x86/cpu/coreboot/pci.c
index 732ca3c..0ddc975 100644
--- a/arch/x86/cpu/coreboot/pci.c
+++ b/arch/x86/cpu/coreboot/pci.c
@@ -25,6 +25,21 @@
* MA 02111-1307 USA
*/
+#include <common.h>
+#include <pci.h>
+#include <asm/pci.h>
+
+static struct pci_controller coreboot_hose;
+
void pci_init_board(void)
{
+ coreboot_hose.first_busno = 0;
+ coreboot_hose.last_busno = 0xff;
+ coreboot_hose.region_count = 0;
+
+ pci_setup_type1(&coreboot_hose);
+
+ pci_register_hose(&coreboot_hose);
+
+ coreboot_hose.last_busno = pci_hose_scan(&coreboot_hose);
}