2 Jan 2007 15:32
Re: at91rm9200 ide driver for harddisk
Steven Scholz <steven.scholz <at> imc-berlin.de>
2007-01-02 14:32:01 GMT
2007-01-02 14:32:01 GMT
jonghne <at> 163.com wrote: > I am studying ide driver, I want to use harddisk on at91rm9200 board, the system is linux-2.6.15. Is the main transplanting step as follows: > first use ide_setup_ports(), then use ide_register_hw(). > I cannot find any more information further . You studied drivers/ide/arm? Which information do you need? > Who has some experience and information for transplanting ide harddisk to ARM-linux system? Is there any example and codes? not only for at91rm9200 but for other cpu(like s3c2410 , xscale and so on) is also ok. I am using an HDD with the AT91RM9200. The driver is based on linux/drivers/ide/arm/bast-ide.c Basicly just do the setup of timing and irq pins, fill up a hw_regs_t struct and call ide_register_hw(). Maybe one ioremap() is needed as well. I can send you my (quick & dirty) file. One thing I noticed is that at least with 2.6.14 you can't realy use a GPIO irq for IDE since they are triggered on both edges. Thus for one hdd irq you get to irqs in the ide layer ... -- Steven ------------------------------------------------------------------- List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
RSS Feed