pl011 UART driver (as used on Raspberry Pi) baud rate divisor
Steven Lawrance
stl at koffein.net
Sun Oct 20 15:26:21 UTC 2013
Hi all,
attached is a small patch to calculate the baud rate divisor for the
pl011 UART. The existing code used hardcoded values which work for a
UARTCLK frequency of 3Mhz and a baud rate of 115200. If my
calculations are correct, the same values should still end up being
set on the RPI but this patch allows it to work on an i.MX233 with a
fixed 24MHz clock frequency and it obeys the values in the FDT.
Is someone able to test it on the Raspberry Pi?
cheers,
--
Steven Lawrance
stl at koffein.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pl011_baudrate.patch
Type: application/octet-stream
Size: 934 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20131020/50cedc51/attachment.obj>
More information about the freebsd-arm
mailing list