]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/x86/cpu/coreboot/pci.c
x86: coreboot: Tell u-boot about PCI bus 0 when initializing
[karo-tx-uboot.git] / arch / x86 / cpu / coreboot / pci.c
index 732ca3ceaff8fa8e01ed072ba0ea05a122dc947b..0ddc97501b7807ef72c322d0e88ab5e2bf4b9846 100644 (file)
  * 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);
 }