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 1A532C432BE for ; Wed, 11 Aug 2021 14:18:08 +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 B892961058 for ; Wed, 11 Aug 2021 14:18:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B892961058 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 3FAA082D90; Wed, 11 Aug 2021 16:18:04 +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=1628691485; bh=wl4ybUpkjqm5ltVUv4avodyoo0BHA4BL/YJoec0dPpk=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=au84RbNtNB4hbRGqOlss9kKwvVJ/n43/j+9dcle6uuCBgH3He3I5TOYG9WGO1ZzKY xX29kk8xzoZIdPJ6CaNM3CLllsG4281YThJpjAJoY9H25f74+3o07bc+IfvZY+wZEN 5cpf79nSdIyNQmDGiUSJWu2gDWIF2ip9hQKojg/HOvNjcp4LQrEpAEnu8IC2XYO0+6 ZJJqnKwVQGEJ6gmRZIayAsbG3utLamrBj50TRWLrONl0eWpXX2vjykIgrrXPDj/ocK 96w6QYfVczveNuM0dCaoCLVhDcqFZY4MYq24STV+CQw0Zaq9H2eAkNuw1kF5RV3P6N mpzpq4Agx0uog== Received: by phobos.denx.de (Postfix, from userid 109) id 1102582D90; Wed, 11 Aug 2021 16:18:02 +0200 (CEST) Received: from mout-u-204.mailbox.org (mout-u-204.mailbox.org [91.198.250.253]) (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 C7E2D82D7C for ; Wed, 11 Aug 2021 16:17:57 +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 smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (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-204.mailbox.org (Postfix) with ESMTPS id 4GlBjx4tWmzQk3R; Wed, 11 Aug 2021 16:17:57 +0200 (CEST) Received: from smtp2.mailbox.org ([80.241.60.241]) by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173]) (amavisd-new, port 10030) with ESMTP id iiDALPkZks9S; Wed, 11 Aug 2021 16:17:54 +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: <732643bb-10da-80ea-3414-e2c4158fe07f@denx.de> Date: Wed, 11 Aug 2021 16:17:53 +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: 9EC2A1847 X-Rspamd-UID: e7e3f4 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 Reviewed-by: Stefan Roese 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