* [U-Boot] [PATCH] arm: zynq: zybo z7: fix SPL uart init bitrate
@ 2020-01-20 1:32 Luis Araneda
2020-01-20 6:50 ` Michal Simek
0 siblings, 1 reply; 2+ messages in thread
From: Luis Araneda @ 2020-01-20 1:32 UTC (permalink / raw)
To: u-boot
From: Milan Obuch <u-boot@dino.sk>
The board uses 100 MHz clock for UART bitrate generator,
but is configured as 50 MHz on defconfig.
This produces wrong console output.
The first message, "Debug uart enabled" is received as:
"������b"
Fix the issue by configuring the correct clock for the
UART baudrate generator
Signed-off-by: Milan Obuch <u-boot@dino.sk>
Signed-off-by: Luis Araneda <luaraneda@gmail.com>
---
This changes were originally sent by Milan Obuch using a diff format.
As he didn't know how to properly send git patches to the mailing list,
I converted them to a git commit, rephrased the commit message and added
the Signed-off-by tags.
Milan Obuch then review and approved the current state of the patch.
Tested on a zybo z7-20 board by me
configs/zynq_zybo_z7_defconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configs/zynq_zybo_z7_defconfig b/configs/zynq_zybo_z7_defconfig
index 7129e2b5f3..f41d6574f7 100644
--- a/configs/zynq_zybo_z7_defconfig
+++ b/configs/zynq_zybo_z7_defconfig
@@ -5,7 +5,7 @@ CONFIG_SYS_TEXT_BASE=0x4000000
CONFIG_SPL_STACK_R_ADDR=0x200000
CONFIG_SPL=y
CONFIG_DEBUG_UART_BASE=0xe0001000
-CONFIG_DEBUG_UART_CLOCK=50000000
+CONFIG_DEBUG_UART_CLOCK=100000000
CONFIG_DEBUG_UART=y
CONFIG_DISTRO_DEFAULTS=y
CONFIG_SYS_CUSTOM_LDSCRIPT=y
--
2.25.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] arm: zynq: zybo z7: fix SPL uart init bitrate
2020-01-20 1:32 [U-Boot] [PATCH] arm: zynq: zybo z7: fix SPL uart init bitrate Luis Araneda
@ 2020-01-20 6:50 ` Michal Simek
0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2020-01-20 6:50 UTC (permalink / raw)
To: u-boot
On 20. 01. 20 2:32, Luis Araneda wrote:
> From: Milan Obuch <u-boot@dino.sk>
>
> The board uses 100 MHz clock for UART bitrate generator,
> but is configured as 50 MHz on defconfig.
>
> This produces wrong console output.
> The first message, "Debug uart enabled" is received as:
> "������b"
>
> Fix the issue by configuring the correct clock for the
> UART baudrate generator
>
> Signed-off-by: Milan Obuch <u-boot@dino.sk>
> Signed-off-by: Luis Araneda <luaraneda@gmail.com>
> ---
>
> This changes were originally sent by Milan Obuch using a diff format.
> As he didn't know how to properly send git patches to the mailing list,
> I converted them to a git commit, rephrased the commit message and added
> the Signed-off-by tags.
>
> Milan Obuch then review and approved the current state of the patch.
>
> Tested on a zybo z7-20 board by me
>
> configs/zynq_zybo_z7_defconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/configs/zynq_zybo_z7_defconfig b/configs/zynq_zybo_z7_defconfig
> index 7129e2b5f3..f41d6574f7 100644
> --- a/configs/zynq_zybo_z7_defconfig
> +++ b/configs/zynq_zybo_z7_defconfig
> @@ -5,7 +5,7 @@ CONFIG_SYS_TEXT_BASE=0x4000000
> CONFIG_SPL_STACK_R_ADDR=0x200000
> CONFIG_SPL=y
> CONFIG_DEBUG_UART_BASE=0xe0001000
> -CONFIG_DEBUG_UART_CLOCK=50000000
> +CONFIG_DEBUG_UART_CLOCK=100000000
> CONFIG_DEBUG_UART=y
> CONFIG_DISTRO_DEFAULTS=y
> CONFIG_SYS_CUSTOM_LDSCRIPT=y
>
Applied.
M
--
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200120/a8b0ef4b/attachment.sig>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-20 6:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-20 1:32 [U-Boot] [PATCH] arm: zynq: zybo z7: fix SPL uart init bitrate Luis Araneda
2020-01-20 6:50 ` Michal Simek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox