From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from p15137414.pureserver.info (matrixvision.de [217.160.213.229]) by ozlabs.org (Postfix) with ESMTP id 4C2B6DDEFE for ; Wed, 19 Mar 2008 02:14:38 +1100 (EST) Message-ID: <47DFDC5B.90304@matrix-vision.de> Date: Tue, 18 Mar 2008 16:14:35 +0100 From: Andre Schwarz MIME-Version: 1.0 To: Grant Likely Subject: Re: simple MPC5200B system References: <47DD71D0.2010203@matrix-vision.de> <47DF821B.6090600@matrix-vision.de> <47DF9ABB.2020607@matrix-vision.de> In-Reply-To: Content-Type: multipart/alternative; boundary="------------050204010202090600000405" Cc: linux-ppc list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. --------------050204010202090600000405 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Grant Likely schrieb: > On Tue, Mar 18, 2008 at 4:34 AM, Andre Schwarz > wrote: > >> Grant, >> >> sorry for having troubled you. Looks like the build system has been in an >> invalid state... >> >> After doing a git-pull and "make distclean" + "make mpc5200_defconfig" the >> system is finally up and running. >> > > Heh; I hate it when that happens. :-) > > Congratulations. > > g. > > > Grant, this leads to the next questions ... :-) I've read some discussions about the "interrupt-map" attribute of the pci node. I tried to follow Ben and David in their explanations - obviously I didn't really get it. Looks like there are a lot of people outside who need some enlightenment ... including me, of course. Maybe you can clarify this ? Taken from motionpro.dts ... interrupt-map = ; First parameter seems to be the slot number, i.e. IDSEL line of the PCI device. How is this value coded ? Are these the bits 15..11 of the configuration address ? 2nd + 3rd paramter : no clue ! can you explain ? 4th : seem to be INT_A ... _D of a PCI device. Usually a device uses only INT_A. Do we need 4 entries in any case ? 5th : ok - parent pic 6th ... 8th : IRQ representation of the parent pic, which gives : 6th : 0=CRIT for irq0 pin, 1=MAIN for irq1..3 pins 7th : irq number. 1 for the irq0 pin inside CRIT level. irq1..3 have number 1..3 inside MAIN level. 8th : should be 3 = "level low" which is default for PCI. regards, Andre MATRIX VISION GmbH, Talstraße 16, DE-71570 Oppenweiler - Registergericht: Amtsgericht Stuttgart, HRB 271090 Geschäftsführer: Gerhard Thullner, Werner Armingeon, Uwe Furtner --------------050204010202090600000405 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Grant Likely schrieb:
On Tue, Mar 18, 2008 at 4:34 AM, Andre Schwarz
<andre.schwarz@matrix-vision.de> wrote:
  
 Grant,

 sorry for having troubled you. Looks like the build system has been in an
invalid state...

 After doing a git-pull and "make distclean" + "make mpc5200_defconfig" the
system is finally up and running.
    

Heh; I hate it when that happens.  :-)

Congratulations.

g.


  
Grant,

this leads to the next questions ... :-)

I've read some discussions about the "interrupt-map" attribute of the pci node. I tried to follow Ben and David in their explanations - obviously I didn't really get it.
Looks like there are a lot of people outside who need some enlightenment ... including me, of course.

Maybe you can clarify this ?

Taken from motionpro.dts ...

    interrupt-map = <c000 0 0 1 &mpc5200_pic 0 0 3 // 1st slot
                                 c000 0 0 2 &mpc5200_pic 1 1 3
                                 c000 0 0 3 &mpc5200_pic 1 2 3
                                 c000 0 0 4 &mpc5200_pic 1 3 3

                                 c800 0 0 1 &mpc5200_pic 1 1 3 // 2nd slot
                                 c800 0 0 2 &mpc5200_pic 1 2 3
                                 c800 0 0 3 &mpc5200_pic 1 3 3
                                 c800 0 0 4 &mpc5200_pic 0 0 3>;


First parameter seems to be the slot number, i.e. IDSEL line of the PCI device.
How is this value coded ? Are these the bits 15..11 of the configuration address ?

2nd + 3rd paramter : no clue ! can you explain ?

4th : seem to be INT_A ... _D of a PCI device. Usually a device uses only INT_A. Do we need 4 entries in any case ?

5th : ok - parent pic

6th ... 8th  : IRQ representation of the parent pic, which gives :

    6th : 0=CRIT for irq0 pin, 1=MAIN for irq1..3 pins
    7th : irq number. 1 for the irq0 pin inside CRIT level. irq1..3 have number 1..3 inside MAIN level.
    8th : should be 3 = "level low" which is default for PCI.




regards,
Andre

MATRIX VISION GmbH, Talstraße 16, DE-71570 Oppenweiler - Registergericht: Amtsgericht Stuttgart, HRB 271090 Geschäftsführer: Gerhard Thullner, Werner Armingeon, Uwe Furtner
--------------050204010202090600000405--