mirror of
https://github.com/CTCaer/hekate.git
synced 2024-11-22 18:06:40 +00:00
bdk: clock: add 3 megabaud support for UART
This commit is contained in:
parent
833a115eb2
commit
12aac3a0fc
1 changed files with 3 additions and 1 deletions
|
@ -157,7 +157,9 @@ int clock_uart_use_src_div(u32 idx, u32 baud)
|
|||
{
|
||||
u32 clk_src_div = CLOCK(_clock_uart[idx].source) & 0xE0000000;
|
||||
|
||||
if (baud == 1000000)
|
||||
if (baud == 3000000)
|
||||
CLOCK(_clock_uart[idx].source) = clk_src_div | UART_SRC_CLK_DIV_EN | 15;
|
||||
else if (baud == 1000000)
|
||||
CLOCK(_clock_uart[idx].source) = clk_src_div | UART_SRC_CLK_DIV_EN | 49;
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue