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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 5BA9AC433F5 for ; Fri, 6 May 2022 09:06:29 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B681D83C61; Fri, 6 May 2022 11:06:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org 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=kernel.org header.i=@kernel.org header.b="WaOYJ2Uo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 20293839CE; Fri, 6 May 2022 11:05:49 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 86B1983C10 for ; Fri, 6 May 2022 11:05:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4C4C26207C; Fri, 6 May 2022 09:05:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8DA74C385A8; Fri, 6 May 2022 09:05:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651827934; bh=iejPSaWIMISPoRXom7+Vujb0TgXB0UOyIkcIqwauXkM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WaOYJ2Uo+wfjqtmuiyxdbYjOeFbfsZch41h4HwJBH2IxXJ5vmwMJF2H6jp4ahnDA/ b7s+wNu+V3d2o876PNvmEETjp4aPL+wqV+t2C+9J7nRk48gjdOaM/QVxytU1WTs6tR Wu6T+KlScFX+PKsVCIFTdexGK9d0ghQx9gKitJaAfzvFyORbdsvm12DSsYAT21iPDH l7OXsmVVqD+kpomKjGdnbbwLHZpL9F5gpCoH5Ct6PhoZvEE4sJ2nODaImijcLVGjTF nUaLVuxijNpSkLMX/5lpdMVLZIBhMVJT7mrZXqVp3Qae9jZjHyeHBPhBJJjpNDi2bC 8MFrkbMIk+jNg== Received: by pali.im (Postfix) id 21D501265; Fri, 6 May 2022 11:05:32 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Stefan Roese , Marek Behun Cc: u-boot@lists.denx.de Subject: [PATCH 3/5] serial: Add new config option SPL_DEBUG_UART_BASE Date: Fri, 6 May 2022 11:05:15 +0200 Message-Id: <20220506090517.5935-4-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220506090517.5935-1-pali@kernel.org> References: <20220506090517.5935-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 SPL_DEBUG_UART_BASE is same as DEBUG_UART_BASE, but applies only for SPL. In some cases base address of UART is different in SPL and proper U-Boot. Signed-off-by: Pali Rohár --- drivers/serial/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index 26fa498bbbb7..46726d76b162 100644 --- a/drivers/serial/Kconfig +++ b/drivers/serial/Kconfig @@ -508,6 +508,13 @@ config DEBUG_UART_BASE A default should be provided by your board, but if not you will need to use the correct value here. +config SPL_DEBUG_UART_BASE + hex "Base address of UART for SPL" + depends on SPL && DEBUG_UART + default DEBUG_UART_BASE + help + This is the base address of your UART for memory-mapped UARTs for SPL. + config DEBUG_UART_CLOCK int "UART input clock" depends on DEBUG_UART -- 2.20.1