UART_INIT_CLOCK not modifying baud_base
Bug #1471743 reported by
Lelek
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Raspbian |
New
|
Undecided
|
Unassigned |
Bug Description
Dear all,
I just realized there is a bug in (probably) kernel and its pl011 driver, regarding bcm2709:
Putting in /boot/config.txt line:
init_uart_
alters the PLL and UART clocks, which can be checked with:
root@xxxxx:~# vcgencmd measure_clock uart
frequency(
But baud_base is not up to par with the clock, it's still reported as 187500:
root@xxxxx:~# setserial -G /dev/ttyAMA0
/dev/ttyAMA0 uart undefined port 0x0000 irq 83 baud_base 187500 spd_normal
Thereby any baud rate being set is invalid. The only workaround to make UART work with 921600 was to set init_uart_clock to 24M and set baud rate of UART to 115200. But it's only a dirty workaround.
To post a comment you must log in.
Tested on Raspberry Pi 2, with stock 3.18 and freshly built 4.0.7 kernels.