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 AF168C48297 for ; Fri, 9 Feb 2024 12:06:02 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AF4E987E7E; Fri, 9 Feb 2024 13:05:07 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gnu.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=gnu.org header.i=@gnu.org header.b="q1xgvOFz"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1BFC987E65; Fri, 9 Feb 2024 11:30:44 +0100 (CET) Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) (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 E164987E60 for ; Fri, 9 Feb 2024 11:30:41 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=othacehe@gnu.org Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rYO9Y-0002kG-3d; Fri, 09 Feb 2024 05:30:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=LXE3Lhr1WOWqbfZN307hYj/cnZvbouGFlQM5pegNXsY=; b=q1xgvOFzFOb1Ln/pYDKE GjLcG1G5Kyadq0Mv4YJfWtCG/6FHZ0Mb1QbWZb4yLS8R88AsTS7ltDTipFkfEg9/RP+pG55+PspIJ qmxknTtkTPr70roGXCnTF1Yje+iS0O4Sr2uNsij8gr/aRrx/g6m0v5FR0eMQZrvwcesyHH6JvACFR pdQUZUb0ZvSJMyWtzXJxTcVF8Nfedwasnc7PMmDaBYRQ71U+g4wmJJ3IeSaYFviQbS6RZCixJ1nv4 UpcWynZJLRXNeqMb1O5Ek2+Riu5M1hQlUzxjo+dfQMcxuWSHGaKzbENg0uMEFACLsUGA1WCk1v6FJ QA5bPCFElvcyxw==; From: Mathieu Othacehe To: Tom Rini , Peng Fan , Shiji Yang , Ye Li , =?UTF-8?q?S=C3=A9bastien=20Szymanski?= , Fabio Estevam , Simon Glass , Mathieu Othacehe Cc: u-boot@lists.denx.de, Mathieu Othacehe Subject: [PATCH v2 2/3] board: imx93_var_som: Probe ELE MU Date: Fri, 9 Feb 2024 11:30:08 +0100 Message-ID: <20240209103009.5463-3-othacehe@gnu.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240209103009.5463-1-othacehe@gnu.org> References: <20240209103009.5463-1-othacehe@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Fri, 09 Feb 2024 13:04:59 +0100 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 Probing the MU is needed to prevent this error in the SPL: ele dev is not initialized Authenticate container hdr failed, return -19, resp 0x0 IND = INVALID ele dev is not initialized Error: release container failed, resp 0x0! IND = INVALID SPL: failed to boot from all boot devices Signed-off-by: Mathieu Othacehe --- board/variscite/imx93_var_som/spl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/board/variscite/imx93_var_som/spl.c b/board/variscite/imx93_var_som/spl.c index 502e599b91a..e6db4eb562b 100644 --- a/board/variscite/imx93_var_som/spl.c +++ b/board/variscite/imx93_var_som/spl.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -114,9 +115,9 @@ void board_init_f(ulong dummy) preloader_console_init(); - ret = arch_cpu_init(); + ret = imx9_probe_mu(NULL, NULL); if (ret) { - printf("Fail to init Sentinel API\n"); + printf("Fail to init ELE API\n"); } else { printf("SOC: 0x%x\n", gd->arch.soc_rev); printf("LC: 0x%x\n", gd->arch.lifecycle); -- 2.41.0