[PATCH] ppc32: 3/2 HDPU platform fix PCI bus 1 enumeration

Brian Waite waite at skycomputers.com
Fri Mar 18 03:21:48 EST 2005


Lets try this again....

Signed-off-by: Brian Waite <waite at skycomputers.com>
Add the proper bus enumeration code that was missing for bus 1.

===== arch/ppc/platforms/hdpu.c 1.2 vs 1.3 =====
--- 1.2/arch/ppc/platforms/hdpu.c       Thu Mar 17 10:42:34 2005
+++ 1.3/arch/ppc/platforms/hdpu.c       Thu Mar 17 11:07:38 2005
@@ -260,6 +260,17 @@
        ppc_md.pci_swizzle = common_swizzle;
        ppc_md.pci_map_irq = hdpu_map_irq;

+       mv64x60_set_bus(&bh, 0, 0);
+       bh.hose_a->first_busno = 0;
+       bh.hose_a->last_busno = 0xff;
+       bh.hose_a->last_busno = pciauto_bus_scan(bh.hose_a, 0);
+
+       bh.hose_b->first_busno = bh.hose_a->last_busno + 1;
+       mv64x60_set_bus(&bh, 1, bh.hose_b->first_busno);
+       bh.hose_b->last_busno = 0xff;
+       bh.hose_b->last_busno = pciauto_bus_scan(bh.hose_b,
+               bh.hose_b->first_busno);
+
        ppc_md.pci_exclude_device = mv64x60_pci_exclude_device;

        hdpu_cpustate_set(CPUSTATE_KERNEL_MAJOR | CPUSTATE_KERNEL_INIT_REG);



-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20050317/fd025968/attachment.pgp 


More information about the Linuxppc-embedded mailing list