From patchwork Wed May 18 10:58:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1632746 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=monstr-eu.20210112.gappssmtp.com header.i=@monstr-eu.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=FYKtXc2Z; dkim-atps=neutral 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=) 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 (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4L392M2ZzBz9sGF for ; Wed, 18 May 2022 20:58:19 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 02BFA83DEB; Wed, 18 May 2022 12:58:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=monstr.eu 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=monstr-eu.20210112.gappssmtp.com header.i=@monstr-eu.20210112.gappssmtp.com header.b="FYKtXc2Z"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EE5D883961; Wed, 18 May 2022 12:58:11 +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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) (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 74F9983961 for ; Wed, 18 May 2022 12:58:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=monstr.eu Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-ej1-x633.google.com with SMTP id i19so2989590eja.11 for ; Wed, 18 May 2022 03:58:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=X5O6FNd2xYhYXPMAKrbXHvQxiXpGF8ADtxPPVSivpk8=; b=FYKtXc2Zn8PzvsM/hrlxEF06TJbA4wgRXaOIJ8PojlUhuyj8obmvp2Ajxwb+qodJ5F ukNLHqLjYNLmz4zKjZpqZDBSSiWvlyc+74m8ZwLWhHNKI3hZ/LMt7yTObl8qi6OKuYdU zCyoOFlCaeMicUjXkmT7iEGpmJGXcXwMkVmKx1TXD6XIQohyASW+KGb1dBA7zM6R4pSv u1iMtDZzIvVSot5qRlGMXq1t0REYClSPSGpAuNdLRbIiLx9aBui2XWDSF6R2v9J3uVdj JzO4Mnb0/Nzvvwe6JelUGDP5BYsu4rExq6C8YIMA1vKEQ3Jwu22Jg3vmsTIVNPOu6IvY up9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=X5O6FNd2xYhYXPMAKrbXHvQxiXpGF8ADtxPPVSivpk8=; b=JPJRhOvgQyh5z8FFIPg3uUKve3rE/+OZY3JcBEHKaXsQ/iZIE44PMxuigqhwCMlQg8 04muS1ydqOCrKTMQsfFSlsAdxSfiFEszJBlPvjOrBu0LHAiJfmUpfal5j1THPtNlsP63 4ILN1EnV/Xtf2DAEYfoA75JV9lULKXh2AsK7NqQ+lITo4H6hI8hRp2HvvNhfeKkM5eu+ a1QKewlyXuXBrBFgK/7dz8JqFijofIJ9qZ3taNkkvKIDgnpzy3/8DvfoXIduy7qRfw0c opYukDUmgVrz8n7u7YWbWhUB8D8PvH4gVqtLjEFeNaAkDjREDkpPETtIB33TgEHw8caf Wa5w== X-Gm-Message-State: AOAM531FHMxNEGiikN+n4PD0MyJ0vNbAnIXLD87xpxsHzlzFn2S/bZIf uu6ZUapX7Y3HfxNhLfLAnwgXmciHkQA4Qw== X-Google-Smtp-Source: ABdhPJylgHaBlDGDn+WnbPsJWZ8FQhpcy5ksIZFzsWuHhq+E2x+UH1g/DnCK+nmSj8eshPvZqql7zg== X-Received: by 2002:a17:907:2d0e:b0:6f4:e29e:5555 with SMTP id gs14-20020a1709072d0e00b006f4e29e5555mr23784764ejc.552.1652871488889; Wed, 18 May 2022 03:58:08 -0700 (PDT) Received: from localhost ([2a02:768:2307:40d6::f9e]) by smtp.gmail.com with ESMTPSA id d11-20020aa7ce0b000000b00428bb4c952bsm1147416edv.31.2022.05.18.03.58.08 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 May 2022 03:58:08 -0700 (PDT) From: Michal Simek X-Google-Original-From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Cc: Dzmitry Sankouski , Johan Jonker , Kever Yang , Mark Kettenis , Samuel Holland , Sean Anderson , Simon Glass Subject: [PATCH] serial: Setup serial base and freq for zynq/zynqmp Date: Wed, 18 May 2022 12:58:07 +0200 Message-Id: X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.5 at phobos.denx.de X-Virus-Status: Clean Setup default values for debug console, base address and frequency. Signed-off-by: Michal Simek --- drivers/serial/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index 26fa498bbbb7..f9db7860750b 100644 --- a/drivers/serial/Kconfig +++ b/drivers/serial/Kconfig @@ -502,6 +502,8 @@ config DEBUG_UART_BASE depends on DEBUG_UART default 0 if DEBUG_SBI_CONSOLE default 0 if DEBUG_UART_SANDBOX + default 0xff000000 if DEBUG_UART_ZYNQ && ARCH_ZYNQMP + default 0xe0000000 if DEBUG_UART_ZYNQ && ARCH_ZYNQ help This is the base address of your UART for memory-mapped UARTs. @@ -514,6 +516,8 @@ config DEBUG_UART_CLOCK default 0 if DEBUG_SBI_CONSOLE default 0 if DEBUG_UART_SANDBOX default 0 if DEBUG_MVEBU_A3700_UART + default 100000000 if DEBUG_UART_ZYNQ && ARCH_ZYNQMP + default 50000000 if DEBUG_UART_ZYNQ && ARCH_ZYNQ help The UART input clock determines the speed of the internal UART circuitry. The baud rate is derived from this by dividing the input