From patchwork Fri May 19 10:43:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1783726 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.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=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=Hgff4FRN; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=s2ZXSA+0; dkim-atps=neutral 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 ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QN3TD2cPzz20dX for ; Fri, 19 May 2023 20:47:44 +1000 (AEST) 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 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();