Skip to contentSkip to conversation

RTDM driver for Xilinx Zynq PS UART

Xenomai Jeff Webb 2 participants 3 messages May 21, 2014 – Jun 13, 2014

lore
Share & tools
lore

Jeff Webb

author
#0 lore raw

Has anyone written an RTDM driver for the Xilinx Zynq PS UART? If not, I assume the best way to obtain one would be to start with the Xilinx-provided linux driver (xilinx_uartps.c) and port it to RTDM. Is there a "HOWTO" or other documentation for the porting process? Without further direction, I was going to compare an existing pair of RTDM drivers (e.g. mpc52xx_uart.c and rt_mpc52xx_uart.c) to see what changes were made and try to do something similar for the Xilinx driver. In the end, I would like to have a driver that is as compatible with the RTDM 16550 driver as much as possible.

I will try to digest the information here:

http://www.xenomai.org/documentation/trunk/html/api/group__rtdm.html
http://www.xenomai.org/documentation/trunk/html/api/group__rtserial.html

and look at the simple RTDM example here:

xenomai-2.6.3/examples/rtdm/driver-api

This mailing-list thread also looks informative:

http://www.xenomai.org/pipermail/xenomai/2010-August/021220.html

Any advice would be appreciated.

Thanks,

-Jeff

author
#1 lore raw
Quoted 1 line · Jeff Webb

Has anyone written an RTDM driver for the Xilinx Zynq PS UART?

From the lack of response, I assume the answer to this question is 'no'. Given that, can someone please comment on what I have written below regarding the process of porting a linux serial driver to RDTM?

Quoted 31 lines

If not, I assume the best way to obtain one would be to start with the Xilinx-provided linux driver (xilinx_uartps.c) and port it to RTDM. Is there a "HOWTO" or other documentation for the porting process? Without further direction, I was going to compare an existing pair of RTDM drivers (e.g. mpc52xx_uart.c and rt_mpc52xx_uart.c) to see what changes were made and try to do something similar for the Xilinx driver. In the end, I would like to have a driver that is as compatible with the RTDM 16550 driver as much as possible.

I will try to digest the information here:

http://www.xenomai.org/documentation/trunk/html/api/group__rtdm.html
http://www.xenomai.org/documentation/trunk/html/api/group__rtserial.html

and look at the simple RTDM example here:

   xenomai-2.6.3/examples/rtdm/driver-api

This mailing-list thread also looks informative:

   http://www.xenomai.org/pipermail/xenomai/2010-August/021220.html

Any advice would be appreciated.

Thanks,

-Jeff

#2 lore raw
Quoted 18 lines · Jeff Webb
Quoted 1 line · Jeff Webb

Has anyone written an RTDM driver for the Xilinx Zynq PS UART?

From the lack of response, I assume the answer to this question is 'no'. Given that, can someone please comment on what I have written below regarding the process of porting a linux serial driver to RDTM?

Quoted 9 lines

If not, I assume the best way to obtain one would be to start with the Xilinx-provided linux driver (xilinx_uartps.c) and port it to RTDM. Is there a "HOWTO" or other documentation for the porting process? Without further direction, I was going to compare an existing pair of RTDM drivers (e.g. mpc52xx_uart.c and rt_mpc52xx_uart.c) to see what changes were made and try to do something similar for the Xilinx driver. In the end, I would like to have a driver that is as compatible with the RTDM 16550 driver as much as possible.

I would rather use the existing drivers to see what ioctls need to be implemented and implement them in the new driver, using the linux code to know how to implement these ioctls.

Signature · 1 line
                                                                Gilles.