Fix the AR933x CPU UART support by using the correct clock when calculating
the UART frequency. Tested: * AR933x (carambola 2 board), UART now works again Approved by: re
This commit is contained in:
parent
c4d0c9d04e
commit
ad5b574375
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=255764
@ -115,8 +115,14 @@ ar933x_chip_detect_sys_frequency(void)
|
||||
u_ar71xx_ahb_freq = freq / t;
|
||||
}
|
||||
|
||||
/* XXX uart should be the refclk, no? */
|
||||
u_ar71xx_uart_freq = u_ar71xx_ahb_freq;
|
||||
/* On the AR933x, the UART frequency is the reference clock,
|
||||
* not the AHB bus clock.
|
||||
*/
|
||||
u_ar71xx_uart_freq = u_ar71xx_refclk;
|
||||
|
||||
/*
|
||||
* XXX check what the watchdog frequency should be?
|
||||
*/
|
||||
u_ar71xx_wdt_freq = u_ar71xx_ahb_freq;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user