From patchwork Thu Feb 8 09:45:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Othacehe X-Patchwork-Id: 1896592 X-Patchwork-Delegate: festevam@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gnu.org header.i=@gnu.org header.a=rsa-sha256 header.s=fencepost-gnu-org header.b=ZhdGbq+B; dkim-atps=neutral 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=patchwork.ozlabs.org) 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 (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TVwnb4Ytjz23hb for ; Thu, 8 Feb 2024 23:11:31 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C67C487E60; Thu, 8 Feb 2024 13:10:35 +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="ZhdGbq+B"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B04AA87E2D; Thu, 8 Feb 2024 10:45:49 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 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 01E3287E01 for ; Thu, 8 Feb 2024 10:45:46 +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 1rY0yV-0003p2-Gw; Thu, 08 Feb 2024 04:45:44 -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=owHdwHlk8zmfw0szkEgMbETbTZc+U9rXz1f++4T/wBE=; b=ZhdGbq+B1EIbNDj0MA8n ZRcosFpZbzpe0PTFTHPeI/JvKax0zRJUhYH6WGgk7lE722xbDchPJuef3GjPAmWOeZ3Ceqymypm/E Vio9apRoIU4wo8R6LcIWOYubP2UAJKNSMOsnbsoAwD5xCQ3gLxB7hge1ffMeYVdNwa04tU3G+yN+Y mufvClKmlIlXNa/h19Y2bc1ElOsWqcMwYilSSNZ8lcfc2u4q+3UvBfGcLlzCZVEW38DL0Ok85a1hS MYB0o6prr4tIES0+BaNLwyPn7h+/BjqNQuXv10ci2krqaUb8rUbKN7pTqgABIHRlfCvlDTOIrfkfn Ve0X0ovpv2YOkw==; From: Mathieu Othacehe To: Tom Rini , Peng Fan , Shiji Yang , Ye Li , =?utf-8?q?S?= =?utf-8?q?=C3=A9bastien_Szymanski?= , Fabio Estevam , Simon Glass , Mathieu Othacehe Cc: u-boot@lists.denx.de, Mathieu Othacehe Subject: [PATCH 1/2] board: imx93_var_som: Probe ELE MU Date: Thu, 8 Feb 2024 10:45:17 +0100 Message-ID: <20240208094518.391-2-othacehe@gnu.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240208094518.391-1-othacehe@gnu.org> References: <20240208094518.391-1-othacehe@gnu.org> MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 08 Feb 2024 13:10:31 +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..0965a2de996 100644 --- a/board/variscite/imx93_var_som/spl.c +++ b/board/variscite/imx93_var_som/spl.c @@ -97,6 +97,7 @@ int power_init_board(void) return 0; } +extern int imx9_probe_mu(void *ctx, struct event *event); void board_init_f(ulong dummy) { int ret; @@ -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); From patchwork Thu Feb 8 09:45:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Othacehe X-Patchwork-Id: 1896593 X-Patchwork-Delegate: festevam@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gnu.org header.i=@gnu.org header.a=rsa-sha256 header.s=fencepost-gnu-org header.b=PcfQuhH2; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TVwnt5fQbz23hb for ; Thu, 8 Feb 2024 23:11:46 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5042087E40; Thu, 8 Feb 2024 13:10:36 +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="PcfQuhH2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CCBF987E01; Thu, 8 Feb 2024 10:45:50 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 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 AE74A87DFB for ; Thu, 8 Feb 2024 10:45:46 +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 1rY0yX-0003pb-IC; Thu, 08 Feb 2024 04:45:45 -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=cpoIPFh596R9NJkDwPxjTNABNxWB0rY2XorzgiXqNZM=; b=PcfQuhH2hUNM/0scZUxP zyb6UrmQaHMPfRHIzMA1aBDEyQ2OYVtPObr7KYDgOzkOdIqrlQXVnviuYq78NKiYP8bzD4C3+Srrp IgQtsYTbGY+pRvdBwP1I9Yu32UmcwLFeh1NqbZjBaYZNjEqQ2Mk6OI2qDPmOD07xtyQz0cdY73YGP OArW+S+qqX9dk5RhTl2BBaI9dWAzlnbYkElrTXwSq4NTJjSm21KlQC9qCQ5j8c0h0F14gMJF+3GnP Y8Il6nHXZp5dVyLOqDab4qypbXdms9ZlAWuZp9fcVS9e+44Cf0eff6nu/OiYAw66x8FAz0KL9e0P3 m6deqyoYT6Ry6g==; From: Mathieu Othacehe To: Tom Rini , Peng Fan , Shiji Yang , Ye Li , =?utf-8?q?S?= =?utf-8?q?=C3=A9bastien_Szymanski?= , Fabio Estevam , Simon Glass , Mathieu Othacehe Cc: u-boot@lists.denx.de, Mathieu Othacehe Subject: [PATCH 2/2] configs: imx93_var_som: Enable AHAB support Date: Thu, 8 Feb 2024 10:45:18 +0100 Message-ID: <20240208094518.391-3-othacehe@gnu.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240208094518.391-1-othacehe@gnu.org> References: <20240208094518.391-1-othacehe@gnu.org> MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 08 Feb 2024 13:10:31 +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 Enable AHAB support in the imx93_var_som configuration. Signed-off-by: Mathieu Othacehe --- configs/imx93_var_som_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imx93_var_som_defconfig b/configs/imx93_var_som_defconfig index cc0c5a79bc1..14922f2a3e2 100644 --- a/configs/imx93_var_som_defconfig +++ b/configs/imx93_var_som_defconfig @@ -12,6 +12,7 @@ CONFIG_IMX_CONFIG="arch/arm/mach-imx/imx9/imximage.cfg" CONFIG_DM_GPIO=y CONFIG_DEFAULT_DEVICE_TREE="imx93-var-som-symphony" CONFIG_SPL_TEXT_BASE=0x2049A000 +CONFIG_AHAB_BOOT=y CONFIG_TARGET_IMX93_VAR_SOM=y CONFIG_OF_LIBFDT_OVERLAY=y CONFIG_SPL_SERIAL=y