Skip to contentSkip to conversation

arm: mvebu: a38x: Fix 5200000 baudrate

PATCH In review Pali Rohár 2 participants 2 messages Sep 2, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: mvebu: a38x: Fix 5200000 baudrate

Fix baudrate value 5150000 which was added in commit ead4864fa6cc ("arm:
mvebu: a38x: Define supported UART baudrates").

Exact value for divisor 3 with 250 MHz TCLK is 5208333 baudrate. In above commit I incorrectly rounded it to 5150000 value due to testing with USB-UART hw which incorrectly reported exact value and divisor configured on other other end of UART link.

Fix this value to 520000 baudrate which is more close to the exact hardware value and also has less fraction parts.

Fixes ead4864fa6cc ("arm: mvebu: a38x: Define supported UART baudrates")
---
 include/configs/mv-common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/mv-common.h +1 -1
index 53d7acbb1034..6036bf4fa5d7 100644
@@ -45,7 +45,7 @@
 					  230400, 460800, 500000, 576000, \
 					  921600, 1000000, 1152000, 1500000, \
 					  2000000, 2500000, 3125000, 4000000, \
-					  5150000 }
+					  5200000 }
 #endif
 
 /* auto boot */
Signature · 1 line
2.20.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Pali Rohár

Fix baudrate value 5150000 which was added in commit ead4864fa6cc ("arm:
mvebu: a38x: Define supported UART baudrates").

Exact value for divisor 3 with 250 MHz TCLK is 5208333 baudrate. In above commit I incorrectly rounded it to 5150000 value due to testing with USB-UART hw which incorrectly reported exact value and divisor configured on other other end of UART link.

Quoted 5 lines

Fix this value to 520000 baudrate which is more close to the exact hardware value and also has less fraction parts.

Fixes ead4864fa6cc ("arm: mvebu: a38x: Define supported UART baudrates")

Thanks,
Stefan

Quoted 10 lines
---
  include/configs/mv-common.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/mv-common.h +0 -0
index 53d7acbb1034..6036bf4fa5d7 100644

include/configs/mv-common.h line 51

Quoted 8 lines
include/configs/mv-common.h +1 -1
@@ -45,7 +45,7 @@
  					  230400, 460800, 500000, 576000, \
  					  921600, 1000000, 1152000, 1500000, \
  					  2000000, 2500000, 3125000, 4000000, \
-					  5150000 }
+					  5200000 }
  #endif
 
  /* auto boot */

Viele Grüße,
Stefan

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]