Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8667BC432BE for ; Wed, 1 Sep 2021 09:07:53 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B3C1260462 for ; Wed, 1 Sep 2021 09:07:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B3C1260462 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 92AAE8327D; Wed, 1 Sep 2021 11:07:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1630487269; bh=DkzoU/CUWu+i1JGzabjFhHTtPyBcS9qOBcirVWVjbas=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=c99j5y9/TcQgvzf6YEPBzgE0KsvobZ4B0fyiaa1mjKrXTLmnx77Mvgys/L62PYdnL PVVFVx7kNj680DbZQTmFevGVOD5qoyJWYwNet8JYJosTotIUoQ5sDhZwfJsojBf1Yn LWotgf/G0Fii3ryhReTUcjwmCAbH6yfg6gUk1qlg85OLtk3+5FEK8rcgfjOp7bLY1D baMOch+IMa+xdP5M1J+Ob8ZcA36rupBC2l7IcWeEeuX+tMOF4Ni/VxNBGqI1dxxnJB J7O4nCKVU2C6E/c1VEEFDsLNy9/ZpqL9MsYuOmbWQp5eFAZnxv60Mgu9LLDdAFviK7 2L4A99g/YW0WA== Received: by phobos.denx.de (Postfix, from userid 109) id 61CF58323A; Wed, 1 Sep 2021 11:07:47 +0200 (CEST) Received: from mout-u-107.mailbox.org (mout-u-107.mailbox.org [91.198.250.252]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6D41A83116 for ; Wed, 1 Sep 2021 11:07:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 4GzyrH29vTzQkW7; Wed, 1 Sep 2021 11:07:43 +0200 (CEST) Subject: Re: [PATCH] arm: mvebu: a38x: Define supported UART baudrates To: =?UTF-8?Q?Pali_Roh=c3=a1r?= Cc: u-boot@lists.denx.de, =?UTF-8?Q?Marek_Beh=c3=ban?= References: <20210811080804.17770-1-pali@kernel.org> From: Stefan Roese Message-ID: Date: Wed, 1 Sep 2021 11:07:40 +0200 MIME-Version: 1.0 In-Reply-To: <20210811080804.17770-1-pali@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 76D6B189C X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.103.2 at phobos.denx.de X-Virus-Status: Clean On 11.08.21 10:08, Pali Rohár wrote: > Define all standard baudrates plus 3 non-standard high speed: > 3125000 4000000 5150000 > > 3125000 matches divisor 5 with 250 MHz TCLK and divisor 4 with 200 MHz TCLK. > 4000000 is the rounded value for divisor 4 with 250 MHz TCLK (3906250) and > divisor 3 with 200 MHz TCLK (4166666). > > 5150000 is the rounded value (5208333) for divisor 3 with 250 MHz TCLK. > Testing showed that rounded value is more stable then exactly calculated. > And it is the highest possible baudrate which is stable on A38x platform. > > Any other baudrate values above 2500000 are unstable, which is reason why > e.g. standard value 3000000 is not defined, and it is needed to use > non-standard value 3125000. > > Tested all defined UART baudrates on Turris Omnia (A38x with 250 MHz TCLK). > > Signed-off-by: Pali Rohár Applied to u-boot-marvell/master Thanks, Stefan > --- > include/configs/mv-common.h | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/include/configs/mv-common.h b/include/configs/mv-common.h > index d61c90a43156..53d7acbb1034 100644 > --- a/include/configs/mv-common.h > +++ b/include/configs/mv-common.h > @@ -39,6 +39,15 @@ > #define CONFIG_SYS_NS16550_COM1 MV_UART_CONSOLE_BASE > #endif > > +#if defined(CONFIG_ARMADA_38X) && !defined(CONFIG_SYS_BAUDRATE_TABLE) > +#define CONFIG_SYS_BAUDRATE_TABLE { 300, 600, 1200, 1800, 2400, 4800, \ > + 9600, 19200, 38400, 57600, 115200, \ > + 230400, 460800, 500000, 576000, \ > + 921600, 1000000, 1152000, 1500000, \ > + 2000000, 2500000, 3125000, 4000000, \ > + 5150000 } > +#endif > + > /* auto boot */ > > /* > Viele Grüße, Stefan -- 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: sr@denx.de