From mboxrd@z Thu Jan 1 00:00:00 1970 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.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT 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 BCEE5C433EF for ; Wed, 8 Sep 2021 00:00:09 +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 D7E1161164 for ; Wed, 8 Sep 2021 00:00:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D7E1161164 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com 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 88FEB832FB; Wed, 8 Sep 2021 01:59:53 +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="Nxb151d6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6C25883306; Wed, 8 Sep 2021 01:59:49 +0200 (CEST) Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) (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 6D19D8323A for ; Wed, 8 Sep 2021 01:59:40 +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-qt1-x836.google.com with SMTP id u4so390444qta.2 for ; Tue, 07 Sep 2021 16:59:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=46Ff6DXnPhnhpLOpPuoqbPtFXloThXqssAgjfYcbqz4=; b=Nxb151d6zGyTlo8mOPE92qnjwX85P7y/Cv3SeuGkFr1Exup+pupBoq4A74Vg7tvoO2 0qn1BFEmggsnWBg9VJmJQMWx9O9NpsAK/mqpdESQGC9uKKrglmPlieQumEXTOgCzrVkt wBaz1wqKFBwGNbL8xy86akiZg2BEjruZrOH+b41P9DqklPlq1PtSg3c+gajGoK4gq8IF Q8fmBxLDO/D6GO/bqaP2LDXkZPSZUNHiCA77MEonjndp+8l4E7SOyzRI9lpzddyK5rGg l+0gjRlxVLOi0x3BAhX+M+/xsyjoXvSqXokIvwS/d1hmX4laTii5/6bmGr4P0gk4Z1yO Cudg== 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=46Ff6DXnPhnhpLOpPuoqbPtFXloThXqssAgjfYcbqz4=; b=FldDLNR4SIyYXL465eQgv59fWPrmIZpfouwMDE91BBimHQlQgCkHD/RrlNNtOpa+PO 3pSd09rJDYAGDzn0HWTKxTpiKpsJPN2SZzHIBbE5xU7sctR8z54Sn8fBWgJVlJwNZQfC 0zAZeUHwEkNo2eabyzQY61vxXoWCytTiFrZelkifShDEMbefv8qr2iFXPML1wTX3FylN LYLjpElUkJam5BpSmwOCznLzS3UC4tlZXFh5LgPuKbdukEeMEog85EZg9gfSeP4CB5/Y zktdUff4vmAN6Yu/CBvDVXJRTbxYw8/UhU+toneehLxmK5vio2nYydgiHgxNg+Jp37iW cT+A== X-Gm-Message-State: AOAM530qKcVQHAA30+jxIox0yhUK8c5XFF55YEInXgH0dGpriQnpJHYo tac+CbFtG0IR/CvhA8x4+mmB5uWqx2M= X-Google-Smtp-Source: ABdhPJwyZBB6QPgMjEhm/pFdqkReFnBvBnOLZrYYPQ+Zuv4uYUIOguKYbDrWCfphAWEEIVWn+PiDcQ== X-Received: by 2002:a05:622a:118f:: with SMTP id m15mr1067005qtk.107.1631059178900; Tue, 07 Sep 2021 16:59:38 -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 d78sm460351qkg.92.2021.09.07.16.59.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Sep 2021 16:59:38 -0700 (PDT) From: Alexandru Gagniuc To: u-boot@lists.denx.de, uboot-stm32@st-md-mailman.stormreply.com, patrick.delaunay@foss.st.com Cc: Alexandru Gagniuc , patrice.chotard@foss.st.com, etienne.carriere@linaro.org Subject: [PATCH v2 02/11] stm32mp1: Add support for baudrates higher than 115200 Date: Tue, 7 Sep 2021 18:59:24 -0500 Message-Id: <20210907235933.2798330-3-mr.nuke.me@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210907235933.2798330-1-mr.nuke.me@gmail.com> References: <20210907235933.2798330-1-mr.nuke.me@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 */ -- 2.31.1