[PATCH] IDE on CHRP LongTrail

Gabriel Paubert paubert at iram.es
Fri Dec 27 03:17:01 EST 2002


Geert Uytterhoeven wrote:
> On Tue, 24 Dec 2002, Geert Uytterhoeven wrote:
>
>>On 24 Dec 2002, Benjamin Herrenschmidt wrote:
>>
>>>On Mon, 2002-12-23 at 23:13, Geert Uytterhoeven wrote:
>>>
>>>>This patch enables the SL82C105 IDE interface in the W83C553 PCI/ISA bridge on
>>>>my CHRP LongTrail.
>>>>
>>>>There are 2 ways to configure the IDE interface:
>>>>  - Legacy mode, using IRQ 14 for the primary channel, and IRQ 15 for the
>>>>    secondary channel
>>>>  - Native mode, using IRQ 32 (OpenPIC IRQ 16) for both channels
>>>>
>>>>Apparently Open Firmware left the IDE interface in legacy mode, while the
>>>>interrupt property of the device pointed to the OpenPIC interrupt. Of course
>>>>this mix of legacy and native mode didn't work well and no interrupts came
>>>>through.
>>>>
>>>>With the patch below, the SL82C105 is configured for native mode and both IDE
>>>>channels work. The patch applies to 2.4.21-pre2 as well, but there IDE seems to
>>>>be broken on PPC in general.
>>>
>>>I'd rather use a pci quirk here... also, why not make this generic to
>>>all PPCs with a W83c553 ? I know the briQ at least will need something
>>>similar.
>>
>>I did not want to touch non-LongTrail code.
>>
>>How is the interrupt routing done on the BriQ? On the LongTrail both legacy
>>mode (ISA IRQ 14/15) and PCI native mode (PCI IRQ connected to OpenPIC) are
>>possible for IDE.
>
>
> Anyone with a BriQ (and preferably working IDE) who can tell us the output of
> `lspci -v' and of `cat /proc/interrupts'?
>
> There are other boards with a W83C553 out there. Gabriel?

There are no IDE connectors on the MVME boards I have, so the W83C553/554
is there but the IDE part is not accessible, unless you are courageous
enough to solder wires directly on the pins of the chip ;-)

	Gabriel.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list