Skip to contentSkip to conversation

Legacy ISA registers/interrupts in PCI device tree node

DISCUSSION Gerhard Pircher 4 participants 6 messages Jul 16, 2007

lore
Share & tools
lore
#0 lore raw

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

Signature · 2 lines
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
#1 lore raw

Gerhard,

You could do a LOT worse than check the Pegasos.

Signature · 2 lines
Matt Sealey <[email protected]>
Genesi, Manager, Developer Relations
Quoted 14 lines · Gerhard Pircher

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

#3 lore raw
In reply to Gerhard Pircher
Quoted 2 lines

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.

Quoted 3 lines

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.

Quoted 1 line

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

No.

Segher

#4 lore raw

-------- Original-Nachricht --------
Datum: Mon, 16 Jul 2007 14:40:48 +0200
Von: Segher Boessenkool <[email protected]>
An: Gerhard Pircher <[email protected]>
CC: [email protected]
Betreff: Re: Legacy ISA registers/interrupts in PCI device tree node

Quoted 5 lines
Quoted 3 lines

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.

Quoted 2 lines

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

Signature · 2 lines
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
#5 lore raw
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

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).

Quoted 4 lines
Quoted 2 lines

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

#2 lore raw
In reply to Matt Sealey
Quoted 1 line · Matt Sealey

You could do a LOT worse than check the Pegasos.

Yes, mimmicing the pegasos will probably work

Quoted 7 lines

Matt Sealey <[email protected]>
Genesi, Manager, Developer Relations

Quoted 3 lines · Gerhard Pircher

Hi,

I wonder, if there is a recommended way to specify ISA register

Quoted 9 lines

addresses

Quoted 2 lines

and interrupts for a PCI device (unlike for a PCI2ISA bridge)? The device in question is the integrated IDE controller of the

VIA686B

Quoted 1 line

southbridge, which works in compatible/legacy mode and thus uses

interrupts

Quoted 1 line

14 and 15 of the i8259 PIC. Should the fdt contain this information

or

Quoted 1 line

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.