RTDM driver for Xilinx Zynq PS UART
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
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.candrt_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.htmland look at the simple RTDM example here:
xenomai-2.6.3/examples/rtdm/driver-apiThis mailing-list thread also looks informative:
http://www.xenomai.org/pipermail/xenomai/2010-August/021220.htmlAny advice would be appreciated.
Thanks,
-Jeff
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.candrt_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.