Message ID | 20200422135235.14756-9-peng.fan@nxp.com |
---|---|
State | Accepted |
Commit | a07bcec403a22f6b848cff06c8094f1da7bc23e1 |
Delegated to: | Stefano Babic |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: 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=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector2 header.b=q8IEeOmm; dkim-atps=neutral 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 RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 496hF04JwKz9sSd for <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2020 23:32:20 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5EFA18006D; Wed, 22 Apr 2020 15:31:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="q8IEeOmm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AAA4981C62; Wed, 22 Apr 2020 15:30:32 +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=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-am5eur02on062c.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe07::62c]) (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 CBE5481A26 for <u-boot@lists.denx.de>; Wed, 22 Apr 2020 15:30:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=peng.fan@nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DbtBsi1w0u9aLJcthdF9/Kd621M6OuW3FrsiS2ge+iIJMuVavTpTlYK1ogEj2tgqT7Aw2Tb/UJLhJXv+36xG4TURQJWxPEmfJ6THFCMyggra/b7zoYmOeHCsCbhSluY4eCVBlVzSIuuku6qLbXcFPJ6a6X3gKiTBLYqQcxLgDlHKZtpyDMPHPB8QgtoYVV8+btiQmhxj/uDL3HplhMuRsU/MzL6Fs7XywjVHP4Bbs+HCCDpBPhvtLBqlrECTd9V5aZhMHy9GjoQ+PdAQQrbfXAYYGPvNVMZHPWgfLFQ7sTg1SQ26hUSO9coeSGphaIA9eSG2c4g1mucB0JGNOFtyCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cGwi/S6gZLraeWvk9tjyUsdVdSqh0uD4slK0600Y5Ww=; b=Y+2NvTlZEa1h1AWwF90rbCA+wh30zTbCfm0UfxYF+gqBt89uXoDYxA8mDI4+xQtmnkyZiMXh7taUzEZgRWrRgurH6vXfxQnEnaRp8zlno6dn+VRDApfeH16lTSeoh2tuzmp6Bwa9uwI6g/olFSUHfFX1ds2zn+8PJTQo/7MBpyqMP/AIncDn2D898APo7OokQIouTkE60mnGvyMxEMNuhCylyrzDAIAwpd50cfBNDkymRnnGZEThj2juN64V/4ZmmgwWxbC1iP4R74LNt3MGblE+OSYOSCKpe3f6q1PdhvK3/V7+19fJ9dlB5MAKCVfqdINTUXrn03+B1qWxFEE66w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cGwi/S6gZLraeWvk9tjyUsdVdSqh0uD4slK0600Y5Ww=; b=q8IEeOmmQSwoaPFJ2WQHKKSyK6Olg4hMXlF301fL7JHlb7XDpXZ+j0QbIpQElI/I817JsDqolDKqCMC0WoQmS475GiSSnXFK+v2lCcnkeweZXEvu2TDB9GwkZ9jhxCWhLrfudRoXwi2TGbIlMHotE3rFj6UeNH+02n1KtGb8Qe0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peng.fan@nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB6PR0402MB2806.eurprd04.prod.outlook.com (2603:10a6:4:97::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2921.29; Wed, 22 Apr 2020 13:30:13 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d17b:d767:19c3:b871]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d17b:d767:19c3:b871%6]) with mapi id 15.20.2921.030; Wed, 22 Apr 2020 13:30:13 +0000 From: Peng Fan <peng.fan@nxp.com> To: sbabic@denx.de, festevam@gmail.com Cc: u-boot@lists.denx.de Subject: [PATCH 09/24] imx8m: acquire ATF commit hash Date: Wed, 22 Apr 2020 21:52:20 +0800 Message-Id: <20200422135235.14756-9-peng.fan@nxp.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20200422135235.14756-1-peng.fan@nxp.com> References: <20200422135235.14756-1-peng.fan@nxp.com> Content-Type: text/plain X-ClientProxiedBy: SG2PR06CA0190.apcprd06.prod.outlook.com (2603:1096:4:1::22) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from linux-ljuv.ap.freescale.net (119.31.174.71) by SG2PR06CA0190.apcprd06.prod.outlook.com (2603:1096:4:1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.13 via Frontend Transport; Wed, 22 Apr 2020 13:30:12 +0000 X-Mailer: git-send-email 2.16.4 X-Originating-IP: [119.31.174.71] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 68c516d6-7793-4439-f6f6-08d7e6c14982 X-MS-TrafficTypeDiagnostic: DB6PR0402MB2806: X-Microsoft-Antispam-PRVS: <DB6PR0402MB28066E66A7CC8132942A514888D20@DB6PR0402MB2806.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:7; X-Forefront-PRVS: 03818C953D X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(396003)(366004)(346002)(39860400002)(136003)(376002)(8676002)(956004)(16526019)(6512007)(186003)(36756003)(52116002)(81156014)(6486002)(1076003)(4326008)(66476007)(66556008)(5660300002)(66946007)(2616005)(478600001)(4744005)(316002)(6666004)(44832011)(26005)(2906002)(8936002)(86362001)(6506007)(32563001); DIR:OUT; SFP:1101; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9W0kI3+yyHAf3LIKaRx0r9yjmI09qg5DlCnPhg/Bli2qkCOGX05RR1HrPgzBN2ndbpi3sjRNy9e4Q0wKhb5oD+6uEDUsnT4aqmSFdYxiJqkqjdNuCBYlVtvoVYK107A1bMqIsGc5+KdzHwyIbaO9sDFutmXlHwufWQLh4JDOQPlThF8MCUEajho8tT+SZpVLtb9JeNEBZPPM5X7D7hrhyqOdzwnSKaKeF2GRQOSITFP6v6EiUAppbraLMzExDe84jrTucLCGpRrxLZ4heEnnib/pznb0teWtyR6JMHbb+fhZ0IDlzFpfA+zfNj8G43gWRF29otKhXsptfhcQt2ITmvTBGigd9SgyzoJPSyynfgW8Fi1bWBBRrZXMERdiYlVL7mwqauEQHpKrIEFdP/aibHXKUAkkxfg73hhlGCpph2L7fdvJ7lX5fn5SHYijUXZaKHtFrE//t2QCxDzFI5NIli1PYy4fJSm9AB6Mmno8JF0xDI4RNH7j75nNkyUgOBF7 X-MS-Exchange-AntiSpam-MessageData: Ib9oeyaAQg2Hx2N4UPqYRPDMZkz8/Cz2DZ9auGXqPtBHvdGJqcG7C8hu2Y8MaZTmeGJBRZvodCJ+2F+DgPSPxP8qEBKfhhn/tMTpa75I9oDj9/LbQfGOyZUtknd5rn1tnTeG2NEXmb9RkYQT+RDmpA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 68c516d6-7793-4439-f6f6-08d7e6c14982 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2020 13:30:13.5939 (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: /24K1O92LW3J8KntVkJvrDKcllUpMyn14zu+nduOE4kgYxDE2k7GQkbaiwQzoTQ1QZM/STD0YbpEIWSoAR+NJA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0402MB2806 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 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.102.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
[01/24] imx: fix cpu_type helper
|
expand
|
diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index 871179509c..8b6be7bc19 100644 --- a/arch/arm/mach-imx/imx8m/soc.c +++ b/arch/arm/mach-imx/imx8m/soc.c @@ -425,3 +425,27 @@ void reset_cpu(ulong addr) } } #endif + +#if defined(CONFIG_ARCH_MISC_INIT) +static void acquire_buildinfo(void) +{ + u64 atf_commit = 0; + + /* Get ARM Trusted Firmware commit id */ + atf_commit = call_imx_sip(IMX_SIP_BUILDINFO, + IMX_SIP_BUILDINFO_GET_COMMITHASH, 0, 0, 0); + if (atf_commit == 0xffffffff) { + debug("ATF does not support build info\n"); + atf_commit = 0x30; /* Display 0, 0 ascii is 0x30 */ + } + + printf("\n BuildInfo:\n - ATF %s\n\n", (char *)&atf_commit); +} + +int arch_misc_init(void) +{ + acquire_buildinfo(); + + return 0; +} +#endif
Acquire ATF commit hash when booting U-Boot to make user easy to know the ATF version. Signed-off-by: Peng Fan <peng.fan@nxp.com> --- arch/arm/mach-imx/imx8m/soc.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)