From patchwork Wed Oct 16 10:09:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Bansal X-Patchwork-Id: 1177732 X-Patchwork-Delegate: priyanka.jain@nxp.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="iphrrH6t"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46tShc5F0rz9sP7 for ; Wed, 16 Oct 2019 21:09:50 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 928C3C21D9A; Wed, 16 Oct 2019 10:09:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 0C1C9C21C27; Wed, 16 Oct 2019 10:09:37 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B1D74C21C27; Wed, 16 Oct 2019 10:09:35 +0000 (UTC) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70088.outbound.protection.outlook.com [40.107.7.88]) by lists.denx.de (Postfix) with ESMTPS id 3F899C21BE5 for ; Wed, 16 Oct 2019 10:09:35 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c1FOTsMWtGiM6wRmRIqCiOSwL4aVz6i+JWjH/c5N+wB3Odcd/pghiD1eDWg+zhBOlaEM/GzUEwqQ+pXFQXi2GOLDYPNX8DBCeWzRVAM9jcngGZ9TT/JNl/6CVQ5jiGY8rIC0Heb7LelJTPO+AZtjxtFqbWcTV2/56UmlRGyrez59zLIl4BnCvLc8Fr8XXqY1cV9Mp0Nra48/xffq7+OIxinfnL5Rrsw+65MTPtzZ12U4+zOF1hMtt2KNa3CD7MaGoAGcyxydPzqYq/QFNQzFHT5kbhIrFSFQmyfhT1wyr4d0soINS+ffdCeX92A3b0QR2MmvHYbNbOjONNhL9YYQBg== 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=6rcct7zsPCBAFv2ZuAlYsTF5n23FtWnWsgWdUnU6gzo=; b=N3oOl8rlnI8/dDc3F+lYWiOMFKEB78gOz93wEeGcNHw0EkUCQMr2DBGApLbWO1cj6Uqs++uziezsWL9I5hmC9F7s1vJJIfb/mQBf5AgjJpR1/CC4s0GwOAA4FzXolzxNP6pZrpzNn3m3V/ESer+L4TOr/pXvclEP7+TlJHTqLwUC/Hn9wIGvMEtb4mu7f5CRuuVzCHVbVjh1/pDqTKIUAvqRr8ncGTejBAdMJe8KF+gb677Mmj9GVVTA/ykADjpCGx3VrnkV5FtDuTUozvyqwyvBB3Y3pJitQ6iKS8vnM9kxpRjSjBzLo8vG+YPuNcR6aPximboHd9f+IOYhT4NU4Q== 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=6rcct7zsPCBAFv2ZuAlYsTF5n23FtWnWsgWdUnU6gzo=; b=iphrrH6tdKFMZ/K3wW6m1cjdQLzfSiMQ8mxv23PHDZvWDJ6kVpuiMw+SsQAJuEPMttvMs+++Ohdea6N+JkdzHuWE08nJ9BROkAbOkASK9Btgo5iLlCWJr5eU7nk3YNXOT0ZHgQf281u4TlG3jyfUWcOhB1qczpdTtxtESKk8o/s= Received: from VI1PR0401MB2496.eurprd04.prod.outlook.com (10.168.65.10) by VI1PR0401MB2544.eurprd04.prod.outlook.com (10.168.65.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2347.22; Wed, 16 Oct 2019 10:09:33 +0000 Received: from VI1PR0401MB2496.eurprd04.prod.outlook.com ([fe80::b439:8d49:805b:22f4]) by VI1PR0401MB2496.eurprd04.prod.outlook.com ([fe80::b439:8d49:805b:22f4%12]) with mapi id 15.20.2347.023; Wed, 16 Oct 2019 10:09:33 +0000 From: Pankaj Bansal To: Priyanka Jain , Albert Aribaud , Simon Glass Thread-Topic: [PATCH] arm: freescale: ls102xa: add helper Macro to get the SVR Thread-Index: AQHVhAnOwPi8a6/CKUa8axuIAWqpqA== Date: Wed, 16 Oct 2019 10:09:33 +0000 Message-ID: <20191016153119.27599-1-pankaj.bansal@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MAXPR0101CA0033.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:d::19) To VI1PR0401MB2496.eurprd04.prod.outlook.com (2603:10a6:800:56::10) x-mailer: git-send-email 2.17.1 authentication-results: spf=none (sender IP is ) smtp.mailfrom=pankaj.bansal@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [92.120.1.69] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a0d0e1f1-3af7-4467-e0dc-08d75220f0de x-ms-office365-filtering-ht: Tenant x-ms-traffictypediagnostic: VI1PR0401MB2544:|VI1PR0401MB2544: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 0192E812EC x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(376002)(396003)(136003)(346002)(366004)(189003)(199004)(14454004)(316002)(186003)(81156014)(99286004)(486006)(81166006)(50226002)(6512007)(8936002)(2906002)(6506007)(36756003)(476003)(71200400001)(4326008)(71190400001)(86362001)(3846002)(2616005)(386003)(102836004)(8676002)(1076003)(6486002)(26005)(305945005)(25786009)(52116002)(44832011)(7736002)(66476007)(66066001)(54906003)(110136005)(6436002)(6116002)(66946007)(478600001)(66556008)(256004)(64756008)(66446008)(5660300002)(15583001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2544; H:VI1PR0401MB2496.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; 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: GR8k5F1Rzx5GczQLyV7qHUKDeX/oiUNqgucOTx5g6hlH71i9Fr0jNlVrY/MfoFqRwF5aDfwstwShrBuXsuclXbeZsw6Iwdi+MS3LIS8rvRgkYW0QptvEwjyCbrf/3MhApitgl/x3ZOw2Kba3KLwUwa/0+fxkaGe6R2EqMLDnSxByrNHHPPJBN2Lauv/9S4EWFFMjlzBdbJkKsr/Vrh2RAQiuNLIknYL4JxctAqJ0czGuRFIDSkqPGKyueUVOTmWGYamlSnvzn45bEFzfMEEyQ+sMbmyp+iFZh6fGeCxqEGCStlOrkDEnAI4BeuzAOenkfI8qCtPvSHc07PHem5ER1QoWVHqYDqpR6uj2CXuD5kawEbo/ZSAU2Wc5zvIi8kCBQ3LdpUCFO70HlBVupLB6znlGmE2FiYseN6TNHQpgIsc= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a0d0e1f1-3af7-4467-e0dc-08d75220f0de X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Oct 2019 10:09:33.3972 (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: Q7hBwZqOJYBG0gTwleGqIblaHmh0KDsozxBgYsse+nJ3ZTrXcOjdULb7r8sFmn+KTwzsEXW4Qf03R67QV9DBxg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2544 Cc: "u-boot@lists.denx.de" Subject: [U-Boot] [PATCH] arm: freescale: ls102xa: add helper Macro to get the SVR X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" 32 bit System Version Register (SVR) in NXP SOCs contains information about SOC such as: 1. SOC type (bits 8 - 31) 2. SOC Major Revision (bits 4 - 7) 3. SOC Minor Revision (bits 0 - 3) This Macro (SVR_DEV) strips the Major and Minor revision info, so that SOC can be correctly identified. This Macro is borrowed from Macro defined in arch/arm/include/asm/arch-fsl-layerscape/soc.h Additinally this file doesn't contain any valid license. Therefore, add GPLv2+ license in the file. same as arch/arm/include/asm/arch-fsl-layerscape/soc.h Signed-off-by: Pankaj Bansal --- arch/arm/include/asm/arch-ls102xa/soc.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/include/asm/arch-ls102xa/soc.h b/arch/arm/include/asm/arch-ls102xa/soc.h index e69de29bb2..672f126bba 100644 --- a/arch/arm/include/asm/arch-ls102xa/soc.h +++ b/arch/arm/include/asm/arch-ls102xa/soc.h @@ -0,0 +1,6 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright 2019 NXP + */ +#define SVR_DEV(svr) ((svr) >> 8) +