[PATCH 5/5] PCI fixes for the MPC8641 Rev 2.0 silicon and Rev1.02hardware

Zhang Wei-r63237 Wei.Zhang at freescale.com
Fri May 18 20:20:21 EST 2007


For support rev 1.0 boards, you can only remove the
pci at 00:pci at 00:interrupt-map sector. The pci driver can use
pci at 8000:interrupt-map for irq mapping.

Such as below:

diff --git a/arch/powerpc/boot/dts/mpc8641_hpcn.dts
b/arch/powerpc/boot/dts/mpc8641_hpcn.dts
index 260b264..04626b1 100644
--- a/arch/powerpc/boot/dts/mpc8641_hpcn.dts
+++ b/arch/powerpc/boot/dts/mpc8641_hpcn.dts
@@ -297,6 +297,12 @@
 				interrupts = <49 2>;
 				interrupt-parent = <&mpic>;
 			};
+			uli1575: uli1575 at 100 {
+				reg = <0 0 0 0 0>;
+				pci_bridge at 200 {
+					reg = <0 0 0 0 0>;
+				};
+			};
 
 		};

Cheers,
Wei
> > On May 17, 2007, at 11:03 AM, Wade Farnsworth wrote:
> > 
> > > On Thu, 2007-05-17 at 10:50 +0800, Zhang Wei-r63237 wrote:
> > >> Hi,
> > >>
> > >> If you add below sector to pci at 8000, please remove the 
> interrupt-map
> > >> sector from pci at 8000.
> > >
> > > Correct me if I'm wrong, but I think if the interrupt-map 
> for pci at 8000
> > > is removed then the pci devices on the revision 1.0 board 
> will not get
> > > the correct interrupts.  I don't currently have a rev 1.0 to test
> > > though.  Can someone with a rev 1.0 HPCN board confirm this?
> > 
> > If I'm understanding things this might best be handled by two  
> > different dts.  Is this because of board changes or chip/silicon  
> > changes?
> > 
> > - k
> > 
> 
> Yes.  On rev 1.0 boards, all of the devices on the south bridge are on
> bus 0, while on rev 1.02, the devices on the southbridge are on bus 2.
> 
> I'd like to use the same dts for both rev's if possible.  But if there
> is a reason why they shouldn't, I suppose I could create a 
> separate dts.
> 
> --Wade
> 
> 



More information about the Linuxppc-dev mailing list