Message ID | 20240919-imx9-update-v2-7-0d798d9e08ad@nxp.com |
---|---|
State | Changes Requested |
Delegated to: | Fabio Estevam |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.a=rsa-sha256 header.s=selector1-NXP1-onmicrosoft-com header.b=u4id0fM2; 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) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4X8GJw6sr0z1y2j for <incoming@patchwork.ozlabs.org>; Thu, 19 Sep 2024 10:16:16 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5AA6589046; Thu, 19 Sep 2024 02:15:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=oss.nxp.com 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=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="u4id0fM2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C92298904E; Thu, 19 Sep 2024 02:15:00 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FORGED_SPF_HELO,SPF_HELO_PASS,T_SPF_PERMERROR autolearn=no autolearn_force=no version=3.4.2 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2060c.outbound.protection.outlook.com [IPv6:2a01:111:f403:260c::60c]) (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 C8EC38905A for <u-boot@lists.denx.de>; Thu, 19 Sep 2024 02:14:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=peng.fan@oss.nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=FB8taYQMyftFdtqt+gFubc6S5hG8M8M5GIpZpYhmjF5cD1cAgXhdbfOQm26UFyfyggo9e36y2EM/UK8v06teNl+aCJI5nkbeEa11q5rzZxIwI2yLI4EqWZIfylG53OXj+UOBf3dmqVobN9x6WY9xfQXmy6AuBk1ue+apb7f04h1Zd7wybMfJYcJvf8vS3QIU86VU86iWefus37N7lYnPCoi3Z7PHyYHMJS6nOrQGE05xHMFEg5ouYHpCj2mIoYYSw2Vang2IF0n/4OYCcI/BamXllODthaNP7owQ7c2b5tIqERwd/u7XOFLn4j9WzXahpK2BtjEEBE/LH81fVfEm5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fAWYs8/lFBucj+HqKf8yBv+NKBLz0G+vMm2i1lNDAAE=; b=BLgYYRlgTgaxjjGIlRssvKMBCqz4pns1aWPKLvHiofy0k59QqP8O9X0LV3GDgYikoDLuBFQAPSSRBYtwFPr8kybmJ9ch79D6XwVWabaYlc4CRH3866HGIvzr6yoV9scwjT3KLbmTqvd9FmpzUmQLMO79J52zGE3thWGTKpU3LigVUweUG1R9RM0QF1p7ShEvIDc1DuY0mPpUZIvNV5WDcfz9Ygo1IsNI+venTDnZqBcZe3wlGXNZlwagqs3oEOxdodgQ8OGUdFGKsqmnnrxqbfplylY8aYxJ/MKvlJugi/q2wwWeL9OoPRuCmQS1ASETpaGZMtOs0R944Gii/No+iQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fAWYs8/lFBucj+HqKf8yBv+NKBLz0G+vMm2i1lNDAAE=; b=u4id0fM2HauvYzEEROfoQNggwPfVqcFgfjO8PE4kRDynTGv8dMpJHgMy26XIXYp8BALGPFu8WP5OGZdxkMc66FxFqpeYEqlzbroOs+dr40k0NRyz2H8784EVhqnx7cx4EJTYfV9o/8WtDzbaqcxAEzKCydN2Rl0dEpSOlvCu0dqMFvze+o1bR2NSKwVwqN3wzJeRAYMnmemyEOaKIYYg2aoVuEpVqmLZfGJISRpXE93sT20BXkGrKe7fXM1bv03rVTkZ090liRjDO6D5zHes6yv++HDzp0cxdz/Vo1XFW0GHse8fOh0o10O+IyRcJn0ojQCeFobzCyVUkR36YGKNeg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) by DU2PR04MB9066.eurprd04.prod.outlook.com (2603:10a6:10:2f1::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.16; Thu, 19 Sep 2024 00:14:57 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%6]) with mapi id 15.20.7982.018; Thu, 19 Sep 2024 00:14:57 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> Date: Thu, 19 Sep 2024 09:18:06 +0800 Subject: [PATCH v2 07/21] imx9: soc: Print ELE information Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240919-imx9-update-v2-7-0d798d9e08ad@nxp.com> References: <20240919-imx9-update-v2-0-0d798d9e08ad@nxp.com> In-Reply-To: <20240919-imx9-update-v2-0-0d798d9e08ad@nxp.com> To: Stefano Babic <sbabic@denx.de>, Fabio Estevam <festevam@gmail.com>, "NXP i.MX U-Boot Team" <uboot-imx@nxp.com> Cc: u-boot@lists.denx.de, Peng Fan <peng.fan@nxp.com> X-Mailer: b4 0.14.1 X-ClientProxiedBy: SG2PR03CA0130.apcprd03.prod.outlook.com (2603:1096:4:91::34) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8459:EE_|DU2PR04MB9066:EE_ X-MS-Office365-Filtering-Correlation-Id: c0e10d3f-3706-4db7-f63a-08dcd84017d6 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|1800799024|52116014|376014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?Ol0JQQ8hP5/PYPzd5D+UuMivwNpG3Ai?= =?utf-8?q?amJmkke9sJrlWYh9WoVY3pl/lVjHnGTGFf5piEqs3WwRSxcCqmu+Up3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-8?q?HJzP3UoimldOsM6kgzCIIc8GIqIlGNd869rOn1uJMeI5+EkxFQoHl522Q0fpQxUJx?= =?utf-8?q?/QO9PYph4bQyWDuX/hWk7qmuc2oK5OThC9+TQnQPAIlniwZaUzXeYbXRv1WyoraDS?= =?utf-8?q?PqzOFIkAK2PcUVkvIei6AmmwA5TqTOakAnvIQ4BB+OKxb5O2XZaW3GZCb0CuH8eg4?= =?utf-8?q?Yh4TuKCmoBHUtIJm44sMLP3gMqgz95zhrwRYsh2LrxLX/s/VKR7M6jg2w9g478wWe?= =?utf-8?q?WUD9kKI6AzvJzzKuRDUuM3VtW2hD+LpE2v4ATxd+3l63hH/YC3Q30tc3sSb8YAslk?= =?utf-8?q?DQ2LHQP9KYvYu21OBJh0aHX9PH2CzkxKNk0aC8Y0lZTPIiA0nMJj+lGmASiq3Z9DT?= =?utf-8?q?nrVX0oKZE8FYXCMbgHionfAGFIOvU6AXww=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB8459.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(52116014)(376014)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?M3Z5VQDWc+PoBQBzVLnJfOoFfBrU?= =?utf-8?q?6aBnoOhL6zEeTMGsua7vhHKm0ci1q3fIyLzNWG4A00O9bNOWuayncH/MOl6axmzQV?= =?utf-8?q?sD/BxO3dBOmXzwWPrVShnujBX3enRctOcT05qXC1pve/KeBkaFWXoCs8CGjSULpDF?= =?utf-8?q?uXjiMiQokLy/6NeKHVVlLzW86AzD+9kCcY3C72bK+oubJqaYQWrnd5Bmv7JyNrcf3?= =?utf-8?q?lV53Ur+o1Hleyc1dp/X2EtmHFJt+4noE/4ojKEozjLMGo5e52//s11m2NoaaeQDAI?= =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?9tzHh3kbqF4ZkthxjijYw/VDkpbjbciugqODZeJ74QS7RDzS6a8utMwup6LFtk8At?= =?utf-8?q?tq37lmSppbcgBAhQNgJd4dMTqQxIioupYnR0dMRc1+acq49CanJjXo+5p1zEq77Uq?= =?utf-8?q?9Gme0rgup4zpstfd5PNPRwtAldMHNzGTW5RvKeGZxWcR17zIOx8ipgfFHikS/CdCh?= =?utf-8?q?icK3ncaocGTfRWbixEVAagYB/tn2BpR7k1uvUzUXlFuZZLC+VqZkKnas0nJf7q7Le?= =?utf-8?q?iGHWg8/11L84BWPRID1RvQMTCjS0grCWSrBJxSAYRJ4EiWkXYrAOR0AZDQ97/By+g?= =?utf-8?q?E0xCu1ZVrs+VJBmAWwxaKuPGvGMhu854QeT/nJJyoMA1wyoU6iWAths3rxKBkqgwx?= =?utf-8?q?2jnc31PgLrfT?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c0e10d3f-3706-4db7-f63a-08dcd84017d6 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2024 00:14:57.0001 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: L0+OIR5blRVSo3DTX9K8ROCOzHviVYwBhlpAs7wLRH8933oDERsEl07EAFZucMOSaTOVXFZbbl8BARN4b5V+tA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB9066 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean |
Series |
imx9: various update
|
expand
|
diff --git a/arch/arm/mach-imx/imx9/soc.c b/arch/arm/mach-imx/imx9/soc.c index 7bc896b74da..0b791568170 100644 --- a/arch/arm/mach-imx/imx9/soc.c +++ b/arch/arm/mach-imx/imx9/soc.c @@ -582,6 +582,39 @@ static int fixup_thermal_trips(void *blob, const char *name) return 0; } +void build_info(void) +{ + u32 fw_version, sha1, res, status; + int ret; + + printf("\nBuildInfo:\n"); + + ret = ele_get_fw_status(&status, &res); + if (ret) { + printf(" - ELE firmware status failed %d, 0x%x\n", ret, res); + } else if ((status & 0xff) == 1) { + ret = ele_get_fw_version(&fw_version, &sha1, &res); + if (ret) { + printf(" - ELE firmware version failed %d, 0x%x\n", ret, res); + } else { + printf(" - ELE firmware version %u.%u.%u-%x", + (fw_version & (0x00ff0000)) >> 16, + (fw_version & (0x0000fff0)) >> 4, + (fw_version & (0x0000000f)), sha1); + ((fw_version & (0x80000000)) >> 31) == 1 ? puts("-dirty\n") : puts("\n"); + } + } else { + printf(" - ELE firmware not included\n"); + } + puts("\n"); +} + +int arch_misc_init(void) +{ + build_info(); + return 0; +} + int ft_system_setup(void *blob, struct bd_info *bd) { if (fixup_thermal_trips(blob, "cpu-thermal"))