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 1EB78C77B7F for ; Fri, 19 May 2023 10:47:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1A5FA86342; Fri, 19 May 2023 12:45:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (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=1684493118; bh=cdcXqEIkHewotUNcTir41WwYLxa4SBzM+y+v85Ju3OY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Hgff4FRNOiA7KE/oax36C+DIV5frfbdHfVDC+DZZWbRWKfevh7g5sRnxYm5Irgmju rxtW37B1Q7bJKCkVNdXd0eho7ZXtnJigEthe6BwBcPy0+6uRw6GWefAoCgFW5nSLx6 TR/EpEop3XkBIsQo+PWBW009UioF9URxFv3QzKND358tZjsJd5TOHTIQKWqsH6DL3o Wy5X+3MUVzgBMBaXf/vI/qxgm7XmGeydSPYFT//mBOVts5FnSh79gdmmI0z7Lmf96O EOflyNNsX26z1+2LsGNI0iEajkQP8qPPAgNsrFMOuMAqJTV6/Jm++MDO2f8s9BsyWl y9inpcJdbHA+w== Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 51A5285EE7; Fri, 19 May 2023 12:44:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493073; bh=cdcXqEIkHewotUNcTir41WwYLxa4SBzM+y+v85Ju3OY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s2ZXSA+0NvP5D+TYpwwKGzM2kDrtg6sAQy3gS9UMPnyLyQKfB66O+Nq770A+CnSdP vNy6QM2gEf2KOnfHf2b6/zoaE2t8JHAVAa39vfeDx1m+zZyxrs2jk7dvNCe62JAG4X KgelaF/WzSzGYYcZnkxfFA7tA/shmS3kHhM1Lp5bwNQJSXez7B32n90IPfv35Ftx7/ oVQtjae7pu4lyDSQCEiLg1A0sd3b3iMXnqMX3oJcUhMDmUwbM6PjZpVC/yGy+wfR3N T8AHkhZEgu3c36wzQlLfbODg88/dvFQF678CwScbPAFaFgDhafSHZ9z98Kx9q37Uwk 7M+LvKgRcKvAA== From: Lukasz Majewski To: Stefano Babic , Fabio Estevam , Tom Rini , u-boot@lists.denx.de, Marek Vasut , NXP u-boot Cc: Lukasz Majewski Subject: [PATCH v1 12/16] arm: mxs: Prevent serial console init when in very early SPL boot code Date: Fri, 19 May 2023 12:43:54 +0200 Message-Id: <20230519104359.2048821-13-lukma@denx.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230519104359.2048821-1-lukma@denx.de> References: <20230519104359.2048821-1-lukma@denx.de> MIME-Version: 1.0 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.8 at phobos.denx.de X-Virus-Status: Clean When DM_SERIAL is enabled on mxs (i.e. imx28) platform, the console early initialization must be postponed until the driver model is correctly setup. Signed-off-by: Lukasz Majewski --- arch/arm/cpu/arm926ejs/mxs/spl_boot.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu/arm926ejs/mxs/spl_boot.c b/arch/arm/cpu/arm926ejs/mxs/spl_boot.c index 763d79e803..5598c552ab 100644 --- a/arch/arm/cpu/arm926ejs/mxs/spl_boot.c +++ b/arch/arm/cpu/arm926ejs/mxs/spl_boot.c @@ -128,8 +128,10 @@ void mxs_common_spl_init(const uint32_t arg, const uint32_t *resptr, mxs_iomux_setup_multiple_pads(iomux_setup, iomux_size); - mxs_spl_console_init(); - debug("SPL: Serial Console Initialised\n"); + if (!CONFIG_IS_ENABLED(DM_SERIAL)) { + mxs_spl_console_init(); + debug("SPL: Serial Console Initialised\n"); + } mxs_power_init(); -- 2.30.2