From patchwork Thu Aug 26 21:42:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Gagniuc X-Patchwork-Id: 1521385 X-Patchwork-Delegate: patrice.chotard@st.com 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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=F6vkPdv0; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 4GwbtD39b6z9sSs for ; Fri, 27 Aug 2021 07:42:44 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 75BCF8321D; Thu, 26 Aug 2021 23:42:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="F6vkPdv0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C4D9983216; Thu, 26 Aug 2021 23:42:24 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9384583210 for ; Thu, 26 Aug 2021 23:42:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mr.nuke.me@gmail.com Received: by mail-oi1-x234.google.com with SMTP id 6so6617084oiy.8 for ; Thu, 26 Aug 2021 14:42:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ema+Nx1gQzYsyMRkUkrb8dKeiu34AdyPL5lBP5zMJYA=; b=F6vkPdv0AfKsFTydoI9qq6rTdx7Hp+Br+2IgeyQWblEtCPCsLhlqm0pfXXj2nK+J4C tARsg9yOtjeGH9+05jYjyZFLIzXOIkpED5A8H36B5tkVMnlEmrRUZ3nWad/TGhhjhP7a MCk5ni6uVLUXQ5rulCZTfHJqFOG65tf+DHkDQAVWElOhEipACkowBDOo/jJDP7AGOLem w5RSgxP2E32gJkglL1i/OhRcGxOgSW+pO0mbIhQBFpqNCaIFIl8s9M6j2XTu6xd9z1mU NgfPtIFWYE0Vj4wDuMXzU1bA+OEhdiKTnC5CHwMXQTDmoQOvVi2E3j0Dytugulrlu0hz eFaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ema+Nx1gQzYsyMRkUkrb8dKeiu34AdyPL5lBP5zMJYA=; b=gGIYsFxY70knna7L5fHjhqqMMwnQB72Hfa1YMjwiwSUDAL7hLL8fdcpr2DrRSuoRij ur5sBSTtAqn1j9bXojtu1fcXX05Wkc5C0VS5R0Ndxvvq3QxxBACdxQGjIsNX5XPB5n3/ CTUjZ/IbndqgiKWHJuDNa22Yu0fbiL1IO8H5QLlPzoQ2hvuYPuNTWVXvw0b2E2bHZHhW f+nDAl/FX+QJSh2Ionlm0ERREut3uIG80j5TIjV3qvBN0TK4Jv0mbLaSM8qGaKnK1TJo uom7H9+qK6jvs7VAW9JZYx/haZiuGF8SMBTD5l7tGWYwbaTNJ+96Mpzm2Txv5yB4deFh kr7w== X-Gm-Message-State: AOAM530GPgXweCFULKAGAYDrCkJaAHh331JVf8uje2K/G8nJV7TpIYmu JtaQVosDFeB+PNHhrQL56fhc3pzcxDE= X-Google-Smtp-Source: ABdhPJxFU8b51CkaeXHmtVIf01NCGGNQrEC/zlKLnY3+if/ZkpaD64GdUohTm78UUuRTR5UrkQsqiw== X-Received: by 2002:a05:6808:20aa:: with SMTP id s42mr12645450oiw.37.1630014133707; Thu, 26 Aug 2021 14:42:13 -0700 (PDT) Received: from nuclearis3.lan (c-98-195-139-126.hsd1.tx.comcast.net. [98.195.139.126]) by smtp.gmail.com with ESMTPSA id 14sm858852otl.78.2021.08.26.14.42.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Aug 2021 14:42:13 -0700 (PDT) From: Alexandru Gagniuc To: u-boot@lists.denx.de Cc: patrick.delaunay@foss.st.com, marex@denx.de, Alexandru Gagniuc Subject: [PATCH 01/10] stm32mp1: Add support for baudrates higher than 115200 Date: Thu, 26 Aug 2021 16:42:00 -0500 Message-Id: <20210826214209.254461-2-mr.nuke.me@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210826214209.254461-1-mr.nuke.me@gmail.com> References: <20210826214209.254461-1-mr.nuke.me@gmail.com> MIME-Version: 1.0 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 The UART can reliably go up to 2000000 baud when connected to the on-board st-link. Unfortunately u-boot will fall back to 115200 unless higher rates are declared via CONFIG_SYS_BAUDRATE_TABLE. Signed-off-by: Alexandru Gagniuc Reviewed-by: Patrick Delaunay --- include/configs/stm32mp1.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/configs/stm32mp1.h b/include/configs/stm32mp1.h index b372838be8..9fcd60285a 100644 --- a/include/configs/stm32mp1.h +++ b/include/configs/stm32mp1.h @@ -16,6 +16,10 @@ #define CONFIG_ARMV7_SECURE_MAX_SIZE STM32_SYSRAM_SIZE #endif +#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, \ + 230400, 460800, 921600, \ + 1000000, 2000000 } + /* * Configuration of the external SRAM memory used by U-Boot */