Hello All,
i am using IMX6UL Board as per my requirement I need a custom baud rate of 1.8Mbps on a serial port to talk to a device.
by default baud rate is coming as 115200 .
I understand that the UART clock speed is derived from a main clock that is used for CPU and other subsytem. Where do I start looking to change the baud rate for the UART?
Thanks,
Anshul
Hi Anshul
i.MX uart driver supports standard linux serial APIs, one can use for example stty :
serial port - How to set a custom baud rate on Linux? - Stack Overflow
iMX6: UART refuse to set baud rate to 1 Mbps
check dts file for uart clocking linux/arch/arm/boot/dts/imx6ul.dtsi
clocks = <&clks IMXUL_CLK_UART_SERIAL>; ..
described in Figure 18-3. Clock Tree - Part 2 i.MX6UL Reference Manual
http://www.nxp.com/docs/en/reference-manual/IMX6ULRM.pdf
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------