Tool/software: Linux
I am working on a custom UART driver for AM3352 that is running on Linux kernel 4.9.28 that comes with TI SDK 4.4. To change the baud rate first the SOFTRESET bit in system configuration register (SYSC) is asserted high then wait for RESETDONE in system status register (SYSS) to go high. After reset is complete new values are assigned to UART_DLL and UART_DLM register. Time take by UART soft reset to complete is not consistent sometimes it varies from 9ms to 250ms. My questions are
1. Why the time to soft reset UART is varying so much? Why soft reset sometimes take more time?
2. Does UART reset is needed to change baud rate?