My driver supports polled and/or interrupt driven use - if you want polled you set the IRQ to -1.Hi :-) Good question. Well I was unaware of the fact that there were other uartlite drivers so you should take mine off that list. Peter's driver is slated for inclusion in the mainline and I am currently in the process of adding a few things to it. For 2.6.17 support you should probably just remove the IRQF_DISABLED flag and change IRQF_SAMPLE_RANDOM to SA_SAMPLE_RANDOM in the request_irq call and it should work. I am unaware of any other important differences between the two releases affecting this driver. Cheers, David On 10/13/06, Robert Corley <rcorley@aegis-inc.net> wrote:All, Based on what was posted recently, it appears that there is more than one uartlite driver floating about. Can someone please inform me of which driver works for which kernel? Here is what I see D. Lynch 2.6.15 polled, (Pico E12 board specific?)
Is only interrupt driven, only supports a regshift of 2.P. Korsgaard 2.6.18 interrupt driven, official lanana.org nodes
David's also has early boot text support.D. Bolcsfoldi 2.6.18 interrupt driven
Yes, I think including anything in the Kernel at the moment is premature. While I wish Peter would have started from something that already existed.patch locations: D. Lynch http://ozlabs.org/pipermail/linuxppc-embedded/2006-January/021592.html P. Korsgaard http://lkml.org/lkml/2006/9/13/71 D. Bolcsfoldi http://ozlabs.org/pipermail/linuxppc-embedded/2006-October/024697.html Comments?
And, lastly, I need a driver for 2.6.17. Can someone point me in the right direction? I have tried Peter's driver but it fails to compile, showing this: CC drivers/serial/serial_core.o CC drivers/serial/uartlite.o drivers/serial/uartlite.c: In function `ulite_startup': drivers/serial/uartlite.c:199: error: `IRQF_DISABLED' undeclared (first use in this function) drivers/serial/uartlite.c:199: error: (Each undeclared identifier is reported only once drivers/serial/uartlite.c:199: error: for each function it appears in.) drivers/serial/uartlite.c:199: error: `IRQF_SAMPLE_RANDOM' undeclared (first use in this function) make[2]: *** [drivers/serial/uartlite.o] Error 1 make[1]: *** [drivers/serial] Error 2 make: *** [drivers] Error 2
_______________________________________________ Linuxppc-embedded mailing list Linuxppc-embedded@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-embedded_______________________________________________ Linuxppc-embedded mailing list Linuxppc-embedded@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-embedded
-- Dave Lynch DLA Systems Software Development: Embedded Linux 717.627.3770 dhlii@dlasys.net http://www.dlasys.net fax: 1.253.369.9244 Cell: 1.717.587.7774 Over 25 years' experience in platforms, languages, and technologies too numerous to list. "Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction." Albert Einstein