How do I change the baud rate on UART 0 and 1?


Hello there! My name is Andrew.

My application needs a really fast 1 Mbaud UART. I have read the Peripherals Programming Guide and I was actually able to output something via the UART! I saw it on the oscilloscope. However, it only appears to be 10200 baud. How do I change this to 1 Mbaud? Do I change the line of code that I saw on page 14 of the Peripherals Programming Guide?

//core_clock is UART clock.
ret = clk_get_set_enable(cclk, 7372800, 1);


We have some people looking at this and plan to update the Peripherals Programming Guide soon.

While that’s being done, you could try changing the Baud rate using msm_hsl_set_baud_rate()
Refer to kernel/drivers/tty/serial/msm_serial_hs_lite.c and msm_hs_set_bps_locked() of kernel/drivers/tty/serial/msm_serial_hs.c