[LinuxPPS] AMBA driver
Rodolfo Giometti
giometti at enneenne.com
Fri Jun 20 08:28:35 CEST 2008
On Tue, Jun 10, 2008 at 12:07:52PM +0200, Gerhard Bertelsmann wrote:
> I'm using a Edimax BR-6104KP board to setup a NTP server. The AMBA
> serial code is based on serial core.
> I have added following patch:
Thanks for your contribution!
> --- a/drivers/serial/amba-pl010.c 2008-06-04 22:46:36.000000000 +0200
> +++ b/drivers/serial/amba-pl010.c 2008-06-04 22:46:19.000000000 +0200
> @@ -252,7 +260,7 @@
>
> status = readl(uap->port.membase + UART010_IIR);
> } while (status & (UART010_IIR_RTIS | UART010_IIR_RIS |
> - UART010_IIR_TIS));
> + UART010_IIR_TIS | UART010_IIR_MIS));
> handled = 1;
> }
>
> @@ -454,6 +462,12 @@
> if (UART_ENABLE_MS(port, termios->c_cflag))
> old_cr |= UART010_CR_MSIE;
>
> + if (uap->port.flags & UPF_HARDPPS_CD)
> + {
> + printk(KERN_INFO "Serial: AMBA driver:DCD enable (UART010_CR_MSIE)\n");
> + old_cr |= UART010_CR_MSIE; /* enable interrupts */
> + }
> +
> writel(0, uap->port.membase + UART010_CR);
>
> /* Set baud rate */
As you can see we are trying to modify the LinuxPPS code in order to
get ldisc support. By using this new interface the serial interfaces
will change too, that's why I ask you to wait for the new LinuxPPS
release and then repropose your solution again according to the ldisc
code.
Ciao,
Rodolfo
--
GNU/Linux Solutions e-mail: giometti at enneenne.com
Linux Device Driver giometti at linux.it
Embedded Systems phone: +39 349 2432127
UNIX programming skype: rodolfo.giometti
More information about the LinuxPPS
mailing list