]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(st-uart): correctly fill BRR register
authorYann Gautier <yann.gautier@foss.st.com>
Mon, 28 Feb 2022 16:29:49 +0000 (17:29 +0100)
committerYann Gautier <yann.gautier@st.com>
Fri, 4 Mar 2022 13:55:18 +0000 (14:55 +0100)
commitaf7775ab535138ff49643f749110dca143d4122c
tree8d7a7728bcd85849660b221156fa620aa1a98436
parentb298d4df5efc5d7a350dc10ca10b85a91d4d46e0
fix(st-uart): correctly fill BRR register

To get the nearest divisor for BRR register, we use:
Divisor =  (Uart clock + (baudrate / 2)) / baudrate
But lsl was wrongly used instead of lsr to have the division by 2.

Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
Change-Id: Iedcc3ccdb4cf8268012e82a66df2a9ec48fc1d79
drivers/st/uart/aarch32/stm32_console.S