I looked falconide.c, it uses hw_regs_t hw; and ide_hwif_t *hwif. <br>
Is it a good way ?<br><br><div><span class="gmail_quote">2008/9/10, Arnd Bergmann <<a href="mailto:arnd@arndb.de">arnd@arndb.de</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wednesday 10 September 2008, Sergei Shtylyov wrote:<br> > Most probably you can use the existing platform drivers:<br> > drivers/ide/egacy/ide_platform.c or drivers/ata/pata_platform.c.<br> > Create/register a platform device named "pata_platform" with 2 memory<br>
> and 1 IRQ resource, and enable one of those drivers.<br> <br> <br>For new boards using a flattened device tree, it should be enough<br> to add a device node for the pata_of_platform driver.<br> If you need a device specific setup, you should add a new "compatible"<br>
value in the tree and make the driver handle that in whatever<br> way you need.<br> <br><br> Arnd <><<br> </blockquote></div><br>