linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Legacy ISA registers/interrupts in PCI device tree node
@ 2007-07-16  7:53 Gerhard Pircher
  2007-07-16  8:59 ` Matt Sealey
  2007-07-16 12:40 ` Segher Boessenkool
  0 siblings, 2 replies; 6+ messages in thread
From: Gerhard Pircher @ 2007-07-16  7:53 UTC (permalink / raw)
  To: linuxppc-dev

Hi,

I wonder, if there is a recommended way to specify ISA register addresses
and interrupts for a PCI device (unlike for a PCI2ISA bridge)?
The device in question is the integrated IDE controller of the VIA686B
southbridge, which works in compatible/legacy mode and thus uses interrupts
14 and 15 of the i8259 PIC. Should the fdt contain this information or
should I hardcode the values in the platform setup code?

Thanks!

Regards,

Gerhard
-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Legacy ISA registers/interrupts in PCI device tree node
  2007-07-16  7:53 Legacy ISA registers/interrupts in PCI device tree node Gerhard Pircher
@ 2007-07-16  8:59 ` Matt Sealey
  2007-07-16 21:35   ` Benjamin Herrenschmidt
  2007-07-16 12:40 ` Segher Boessenkool
  1 sibling, 1 reply; 6+ messages in thread
From: Matt Sealey @ 2007-07-16  8:59 UTC (permalink / raw)
  To: Gerhard Pircher; +Cc: linuxppc-dev

Gerhard,

You could do a LOT worse than check the Pegasos.

-- 
Matt Sealey <matt@genesi-usa.com>
Genesi, Manager, Developer Relations

Gerhard Pircher wrote:
> Hi,
> 
> I wonder, if there is a recommended way to specify ISA register addresses
> and interrupts for a PCI device (unlike for a PCI2ISA bridge)?
> The device in question is the integrated IDE controller of the VIA686B
> southbridge, which works in compatible/legacy mode and thus uses interrupts
> 14 and 15 of the i8259 PIC. Should the fdt contain this information or
> should I hardcode the values in the platform setup code?
> 
> Thanks!
> 
> Regards,
> 
> Gerhard

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Legacy ISA registers/interrupts in PCI device tree node
  2007-07-16  7:53 Legacy ISA registers/interrupts in PCI device tree node Gerhard Pircher
  2007-07-16  8:59 ` Matt Sealey
@ 2007-07-16 12:40 ` Segher Boessenkool
  2007-07-16 13:29   ` Gerhard Pircher
  1 sibling, 1 reply; 6+ messages in thread
From: Segher Boessenkool @ 2007-07-16 12:40 UTC (permalink / raw)
  To: Gerhard Pircher; +Cc: linuxppc-dev

> I wonder, if there is a recommended way to specify ISA register  
> addresses
> and interrupts for a PCI device (unlike for a PCI2ISA bridge)?

The PCI binding describes the required way to do this.

> The device in question is the integrated IDE controller of the VIA686B
> southbridge, which works in compatible/legacy mode and thus uses  
> interrupts
> 14 and 15 of the i8259 PIC. Should the fdt contain this information

Yes, it should, even if you don't use this in the Linux
kernel yet.

> or should I hardcode the values in the platform setup code?

No.


Segher

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Legacy ISA registers/interrupts in PCI device tree node
  2007-07-16 12:40 ` Segher Boessenkool
@ 2007-07-16 13:29   ` Gerhard Pircher
  2007-07-16 15:05     ` Segher Boessenkool
  0 siblings, 1 reply; 6+ messages in thread
From: Gerhard Pircher @ 2007-07-16 13:29 UTC (permalink / raw)
  To: Segher Boessenkool; +Cc: linuxppc-dev


-------- Original-Nachricht --------
Datum: Mon, 16 Jul 2007 14:40:48 +0200
Von: Segher Boessenkool <segher@kernel.crashing.org>
An: Gerhard Pircher <gerhard_pircher@gmx.net>
CC: linuxppc-dev@ozlabs.org
Betreff: Re: Legacy ISA registers/interrupts in PCI device tree node

> > I wonder, if there is a recommended way to specify ISA register  
> > addresses and interrupts for a PCI device (unlike for a PCI2ISA
> > bridge)?
> 
> The PCI binding describes the required way to do this.
Hmm, I must reread the PCI binding spec. It didn't seem to contain any
information about this.

> Yes, it should, even if you don't use this in the Linux
> kernel yet.
Well, I still have to wire up the IDE interrupts in the platform setup
code, right?

Gerhard
-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Legacy ISA registers/interrupts in PCI device tree node
  2007-07-16 13:29   ` Gerhard Pircher
@ 2007-07-16 15:05     ` Segher Boessenkool
  0 siblings, 0 replies; 6+ messages in thread
From: Segher Boessenkool @ 2007-07-16 15:05 UTC (permalink / raw)
  To: Gerhard Pircher; +Cc: linuxppc-dev

>>> I wonder, if there is a recommended way to specify ISA register
>>> addresses and interrupts for a PCI device (unlike for a PCI2ISA
>>> bridge)?
>>
>> The PCI binding describes the required way to do this.
> Hmm, I must reread the PCI binding spec. It didn't seem to contain any
> information about this.

You can describe address regions in "reg" that aren't
corresponding to any PCI BAR.  There is also a facility
to describe subtractive decoding (though I don't think
you need this).

>> Yes, it should, even if you don't use this in the Linux
>> kernel yet.
> Well, I still have to wire up the IDE interrupts in the platform setup
> code, right?

Sure, if you want those interrupts to work, anyway ;-)


Segher

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Legacy ISA registers/interrupts in PCI device tree node
  2007-07-16  8:59 ` Matt Sealey
@ 2007-07-16 21:35   ` Benjamin Herrenschmidt
  0 siblings, 0 replies; 6+ messages in thread
From: Benjamin Herrenschmidt @ 2007-07-16 21:35 UTC (permalink / raw)
  To: Matt Sealey; +Cc: linuxppc-dev

On Mon, 2007-07-16 at 09:59 +0100, Matt Sealey wrote:
> You could do a LOT worse than check the Pegasos.

Yes, mimmicing the pegasos will probably work

> Matt Sealey <matt@genesi-usa.com>
> Genesi, Manager, Developer Relations
> 
> Gerhard Pircher wrote:
> > Hi,
> > 
> > I wonder, if there is a recommended way to specify ISA register
> addresses
> > and interrupts for a PCI device (unlike for a PCI2ISA bridge)?
> > The device in question is the integrated IDE controller of the
> VIA686B
> > southbridge, which works in compatible/legacy mode and thus uses
> interrupts
> > 14 and 15 of the i8259 PIC. Should the fdt contain this information
> or
> > should I hardcode the values in the platform setup code?

You may need a fixup like pegasos does because that chip seems to use
14/15 even when in native mode, which is somewhat out of spec.

Cheers,
Ben.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-07-16 21:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-16  7:53 Legacy ISA registers/interrupts in PCI device tree node Gerhard Pircher
2007-07-16  8:59 ` Matt Sealey
2007-07-16 21:35   ` Benjamin Herrenschmidt
2007-07-16 12:40 ` Segher Boessenkool
2007-07-16 13:29   ` Gerhard Pircher
2007-07-16 15:05     ` Segher Boessenkool

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).