4 Jan 2007 04:20
Re: at91rm9200 ide driver for harddisk
<jonghne <at> 163.com>
2007-01-04 03:20:48 GMT
2007-01-04 03:20:48 GMT
Thank you for your reply. I had seen ide/*/cris.c. I don't make sure the step to register my board hardware to ide, and is there some function(like check hardware ,write data to harddisk and read data from harddisk function) that need to be rewrite? Could you please send me your transplantation code? Thank you very much. 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