mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-18 02:44:37 +00:00
![]() The driver currently requires the bit clock divider be hardcoded in devicetree (or use the hardcoded default from apq8016). The bit clock divider is used to derive the baud rate from the core clock: baudrate = clk_rate / csr_div clk_rate is the actual programmed core clock rate which is returned by clk_set_rate(), and this UART driver only supports a baudrate of 115200. We can therefore determine the appropriate value for UARTDM_CSR by iterating over the possible values and finding the one where the equation above holds true for a baudrate of 115200. Implement this logic and drop the non-standard DT bindings for this driver. Tested on dragonboard410c. Tested-by: Robert Marko <robert.marko@sartura.hr> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
||
---|---|---|
.. | ||
8250.txt | ||
altera_jtaguart.txt | ||
altera_uart.txt | ||
bcm2835-aux-uart.txt | ||
mcf-uart.txt | ||
microchip,pic32-uart.txt | ||
msm-geni-serial.txt | ||
mxc-serial.txt | ||
omap_serial.txt | ||
pl01x.txt | ||
qca,ar9330-uart.txt | ||
sandbox-serial.txt | ||
sh.txt | ||
snps-dw-apb-uart.txt | ||
xilinx_uartlite.txt |