From patchwork Thu Jan 9 08:07:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Milan Obuch X-Patchwork-Id: 1220353 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=dino.sk Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47tmS25Zvnz9sNx for ; Fri, 10 Jan 2020 00:00:18 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 16BD1818C5; Thu, 9 Jan 2020 14:00:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=dino.sk Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id C155D81856; Thu, 9 Jan 2020 09:07:37 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mailhost.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7A55A81851 for ; Thu, 9 Jan 2020 09:07:35 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=dino.sk Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot@dino.sk Received: from zeta.dino.sk (fw3.dino.sk [84.245.95.254]) (AUTH: LOGIN milan) by mailhost.netlabit.sk with ESMTPA; Thu, 09 Jan 2020 09:07:34 +0100 id 00E54815.5E16DF46.0000F1EF Date: Thu, 9 Jan 2020 09:07:34 +0100 From: Milan Obuch To: u-boot@lists.denx.de Subject: Zybo Z7 board - fix SPL uart init bitrate Message-ID: <20200109090734.472a7884@zeta.dino.sk> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; i386-portbld-freebsd11.3) MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 09 Jan 2020 14:00:12 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.101.4 at phobos.denx.de X-Virus-Status: Clean Hi, Zybo Z7 board uses 100 MHz clock for UART bitrate generator, in defconfig is 50 MHz listed. This error manifests itself when boot starts, following is seen on console: ������b U-Boot SPL 2019.01 (Jul 17 2019 - 21:36:54 +0200) mmc boot Trying to boot from MMC1 First line is output with wrong bitrate. After changing definition to correct value, boot output starts correctly, now: Debug uart enabled U-Boot SPL 2019.10 (Jan 09 2020 - 08:18:37 +0100) mmc boot Trying to boot from MMC1 (Please ignore version change, I just used this occasion to fix some other issues as well.) Patch to fix this small issue follows. As this is my first contribution to this project, please help me with what could be necessary to do for this fix to be accepted, in order to fit any custom used here... Regards, Milan Tested-by: Luis Araneda --- configs/zynq_zybo_z7_defconfig.orig 2020-01-09 08:16:33.744969000 +0100 +++ configs/zynq_zybo_z7_defconfig 2020-01-09 07:49:33.181891000 +0100 @@ -5,7 +5,7 @@ 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