From patchwork Fri Mar 19 07:57:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 404749 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1142587jai; Fri, 19 Mar 2021 00:31:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyt6sDlnlsSBt2OwSmj82uQNrQkCZFwMPio7IdtoP/J4wl8B2VHYr1CdMUAOS38Nun8DXhp X-Received: by 2002:a17:906:1155:: with SMTP id i21mr2788788eja.218.1616139101542; Fri, 19 Mar 2021 00:31:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616139101; cv=pass; d=google.com; s=arc-20160816; b=a9R8W0AOEGOxOi7q0kC1Ydahyz3sEGRkK9VhKiXij7V6+Q3sAS+8C2BlL8HvLUoNEu 87LcYsZu6zzS3J4sHnfLL/xVxV4+2j+FweBSzY7+3GLlHTWdo/I7IeQB3e5q0boQV11t Us7yzL/+z18gbffX/nvu5ALQW8e3KyorndY/pjOp/C4R2CCWA9wDPuRodXAah2vWuZvo SOtSh7VpoUBwWvXoMYn9QXU12s1DzoniIYRFb4cO5w09wyOnVTKDd4Y4ASe187Ud+dG5 WyE+dnkAzJEo4DGOnMjeSj4BNidnpIsspRhPyvhnQ/DwtCvYpabdFtTqV6aa8Vp0Bqxs eIfg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=y4WO38fgJ8diluNNq0K20Fo4Bytx4s1YiozloVua9wk=; b=I1sMq41YiGHoQDMe0oc2H6B3Dx43GnKjf3r/YceP44brR4i6sHRfmuKjIz5bO/sUIp y3fJkscOkmH8NEwMvdG6UFSf5ugl/RbKeOdFg54braYnOfv8weDrIRrhVh20JmjST+0E 6yHiLL5/79fxScQUW+F53s4gmqWR3Y4opssqjl1BGf2yKKxP7DJSGnbDNr1xP5ILmiAI r2sAUmDzlJnYewxBt6C8QAeVGpoBfISff4XEjCABjytUGtxzuSBx8zpo/lzubTIFlFkj tggVX0sHRlvYV0Hh8ZfEFZHlYhTF8bUUGXDbhzlfyXwbcptd+Y6yL7xm5hMTCXMAeOvf WwTA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=G6sI+VJh; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id y10si3469495ejw.185.2021.03.19.00.31.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 00:31:41 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=G6sI+VJh; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9BD518296B; Fri, 19 Mar 2021 08:28:45 +0100 (CET) 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 (1024-bit key; unprotected) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="G6sI+VJh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A09FA828BC; Fri, 19 Mar 2021 08:27:45 +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=-0.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on062e.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe02::62e]) (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 D7A0182909 for ; Fri, 19 Mar 2021 08:27:35 +0100 (CET) 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=arcselector9901; d=microsoft.com; cv=none; b=TbDxP//tJqbuYjtc0hZWRBIkiY9mRvFNZ+/lkD2Iy9ocSOD2dvbc8jiex+yQGEOKFka14xKWGUCLCJg0tkzFv1x8Iq1LrZfRIYyXChfEIq6vG1Ax12lTiFhfGnwUBpc4AwHr74IqfDGTkkPAiBqp3g2tFBTGi4KCHpnbCCs0mFirVHBWW/4HeAmlDSS3Zmjsfzczhhx7my7LdgfHuZ/2duGrXGva/+WWTiai1y2kcZRfUs/0SLP+oIJcF5F38sKoUtxj2/vMRPPUJO/27L21zmd4xxVjJOQj0tsnmhv/QwJGCwTkllu84XbdI0W47LttKoaIbLWrxX8/p6VHkEIOSw== 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=y4WO38fgJ8diluNNq0K20Fo4Bytx4s1YiozloVua9wk=; b=D+MyE1vkZEo3UrUCnSTmPZDmc5lNYgGOFQrJfpWNcp/QINz3nEcVR6/3OtEv3fmIrMZPVfb67ZFfzzPX4MLVtoEtmHMmqdP8wIpB1GkJ/UKRW9WRfkc5XEQw2d0VSJG2m1UZTXExCghXc+E+TAhcuQb281glC26UxBUCM6D1ae2LwOSMgceR1tjC0Mc1azyR+J5wFDD5eRBnUxtxCurvjEHvn4syNiHvTKTScOPYLEHC7c4erv3PSLkf2wbb5yW1e5purafdXX5S50GAElkLR/AHVglSRTLXZcU1baT575A3XbhPb7mCjBQVCq8w/q1pZv5wapJMgIP/s1+nlgIL7g== 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=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=y4WO38fgJ8diluNNq0K20Fo4Bytx4s1YiozloVua9wk=; b=G6sI+VJh5LBVMJgLtGoRDGuNiPGcM0C4gYFsJ3Rn7G/ucj1iH/aUwq3pq/8alfqUVTv0XpRQvVYZC5fa8gi/mpA2wrMrVzV7tuIjm+NCcbL+RX4gVHDzlmSYKOLgsdnYXEo+ewCHHAKCsgs9xdMQSLp3QnN0nYynZi49Y50JdO4= Authentication-Results: denx.de; dkim=none (message not signed) header.d=none; denx.de; dmarc=none action=none header.from=oss.nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB8PR04MB6714.eurprd04.prod.outlook.com (2603:10a6:10:10e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18; Fri, 19 Mar 2021 07:27:32 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d58c:d479:d094:43d0]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d58c:d479:d094:43d0%9]) with mapi id 15.20.3933.032; Fri, 19 Mar 2021 07:27:32 +0000 From: "Peng Fan (OSS)" To: sbabic@denx.de, festevam@gmail.com Cc: u-boot@lists.denx.de, uboot-imx@nxp.com, Peng Fan , Ye Li , Alice Guo Subject: [PATCH 23/26] arch: mach-imx: imx8m: fix unique_id read error for imx8mp Date: Fri, 19 Mar 2021 15:57:15 +0800 Message-Id: <20210319075718.14181-24-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210319075718.14181-1-peng.fan@oss.nxp.com> References: <20210319075718.14181-1-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: MA1PR01CA0170.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a01:d::20) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from linux-1xn6.ap.freescale.net (119.31.174.71) by MA1PR01CA0170.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a01:d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18 via Frontend Transport; Fri, 19 Mar 2021 07:27:29 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 43220d80-adae-476b-8ef4-08d8eaa8754f X-MS-TrafficTypeDiagnostic: DB8PR04MB6714: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:962; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Oa5NolusLF7ejfP7pY0YIUPbtXKgkp7FUcwrHDJJhiOBT7vwz7xua8EhuFq1nzPrmvU6G+ZQTKZQXJiInVPZGaOyeQ5pR8tp6PBCEB7c+sLY4b37th16dZTRy7jWI6aj0ZuaOZGNDqP9XiQWENV1pukewIh0RMD1c0u2U89OW6QbKKUHgqn4FEAjpr8Mkz+Y4mzcLeRMYW0iwpocYqbmUpiqEXjEyn60x3bgZ8QosTDjCOYyYd4t+j/JSTi0hsQXB8YE9VqN8xGmNVQ6ix2D5l6waJBRWCi8m4fdflN3tEAqCB79ahoeuKhyR1II34+YhOWf/7bSLOwHn6eoqS135COi3+vRAZ+4NjHrbXKFNU8gDVvcR94ZBccXKvab+iL+6siQEiVXYeDPRRConPTWGxA8njwwBcZnowimGd/DdVRH6kFVKsk5lwGDhFTWz+UcQED8jSnVwJxxy/zLqTKmSWfTyoRmqXIQEvu+Ufzpl8L6FmURKWcl/0ygbWJRYt3zrjTwt6sw2bSn7YCrGyRvhCCJH9M2y0hec52u+StojGQ3Sj6vqCr+D78eXPhqQWL9RUMUte56Z0m0U0+g3rOG9REJsvTNser46xbAanA8FCzxKozXhRWhvoDWRQAwNk6kVAxH768b9iho4Let29XWUIA5RoyGJqPrFJ8QI+TgDPM3xTVaeSLQZDK7irrFSLIL 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; SFS:(4636009)(366004)(346002)(136003)(376002)(39860400002)(396003)(66946007)(478600001)(52116002)(8936002)(6506007)(38100700001)(186003)(83380400001)(6512007)(86362001)(2616005)(6666004)(6486002)(8676002)(66556008)(26005)(66476007)(2906002)(16526019)(5660300002)(4326008)(956004)(316002)(1076003)(54906003)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: lCJoLGoJlxS+dtGNMn20YVlYENVqFVqCUn3GYST2ze1R6BeWJAEhe9JvNeN7aSsTm/en9ANItuFdhV9luZDA52jMQtajRSbpsAej/h0Y1es8GTkk4S081N/kL7f+CGsisU8XbGWGAxpuU/CYNa/NgEdRKxRekbQPbMthrWjVsoGroz+/3+/gTvITi2+h+tRud2SS1zY8tYFnwbp/Vyo3Gp5feGddzgIUEICrKoX+lyDAi1iSdWb+TrzdF6xYLBOJfjTaTCmiF9UinZeD81eNqGptpFzvc8O8dSLoivgSc/6NSP0GShSIpsJfXrbk1ZOFMmrGySmYFDVYcFLJJ37N1qzbnsD1tUa6Xcuc0aOZafbtlurDE01GufV/IAjkaC0HCjMqHpBpPpTA5z2cqBkfX9hs1NEnF1+EIpjmpUIT2Af7Clxb/l1I5Ko1qnRtqst8fKtmZDpqeAkYPPhg8Eba1Xi0mGKqwpawFTV1Ib+eyasn5YBljDrLfzP03pq2HyOuMxZMHA6bBPt3trnnWsk4goC2P4BW4PzeQZEXQpjmHYGqhx6sdIwFV4jyZluA14+HgIk6OC2mMa9JFsttBu1gw6gXsTFTGtNHh9B2A3zhniWOVzZeDCuGy7gs6lRSqIQOYVmDVxo8Qh7orGJS7LtIkJpXjUHE17VRLpFFnsnf/JJ8tJkZ5SpmunAO8OTTQvuJ1LW2I14wXkRMOviT7xp9JD3uKgtClUfn3fUTkv5gP+QkDTmX1nMRs69X8vFZVvtSavu2Z4HRj5NJ2VNSfBw/8quTwGYg+U8T98upKk+NQue94qhs+g3TLpfXIfRHIdPk8lgYfy2Qvo9h1cKM9BR5jgGvDcDDkFIOm6wfMeLvN77nnVWqb1EZDvw2tuFykyTgTrlNN10gHBZS3M7YNgd+Ijh9yzrhNY6xMZVZ4+gw0zcSn6w2QVASv2TyYiyGaBOuIUk1BNWyYdt2R3e6++R4CQCItzQYRX7R9BU7oZuktFTcxoqX4uziwHMBgswjVLJglpRD8ryiaZtvnldHHeG1lvf3HwNjxCuIVu5GmXTbBGZvYbQ6HIhL6z0D44PIl8kNdWD1aZ9otPlVHEOuHchCRFkljIEJ5BQirCM3RaBrilTSP6sdRjDtfVkJHe31NGYgo2Su4LHLdUx9R8iVUh8sQFEJ6B00i9ctBOUVDnEr9f2J0SuQHRYTS01TROE8o23EEuvkCtaH48KwktNE9TI2liLhxsUcM3mEtpe2CLrJ+zy6N6ZaOPykX7oBxp//8aZOve6PhywELMa9zmxQA55+q3p/mu23quvsqnzFAIfcz1xiO1RjatuCM+sObIDOObNzU4jY+JS+oUh1rWdyQuV4PA== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 43220d80-adae-476b-8ef4-08d8eaa8754f X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Mar 2021 07:27:31.9797 (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: HcOI2ty+SJyDdThTZzEinY0PbC+WFfYiDICWsufAvXBSKeKam+zWX4ggDkzFK30QBMsB1iLmwKG8wRF5M5ZsEA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6714 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.4 at phobos.denx.de X-Virus-Status: Clean From: Peng Fan The value of Unique ID in uboot and kernel is different for iMX8MP: serial#=02e1444a0002aaff root@imx8mpevk:/sys/devices/soc0# cat soc_uid D699300002E1444A The reason is that Fuse Addresses of Unique ID of iMX8MP are 0x420 and 0x430. Reviewed-by: Ye Li Signed-off-by: Alice Guo Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/imx-regs.h | 11 +++++++++++ 1 file changed, 11 insertions(+) -- 2.30.0 diff --git a/arch/arm/include/asm/arch-imx8m/imx-regs.h b/arch/arm/include/asm/arch-imx8m/imx-regs.h index 3f50014618..49bac8c1fa 100644 --- a/arch/arm/include/asm/arch-imx8m/imx-regs.h +++ b/arch/arm/include/asm/arch-imx8m/imx-regs.h @@ -120,6 +120,16 @@ struct ocotp_regs { } bank[0]; }; +#ifdef CONFIG_IMX8MP +struct fuse_bank0_regs { + u32 lock; + u32 rsvd0[7]; + u32 uid_low; + u32 rsvd1[3]; + u32 uid_high; + u32 rsvd2[3]; +}; +#else struct fuse_bank0_regs { u32 lock; u32 rsvd0[3]; @@ -128,6 +138,7 @@ struct fuse_bank0_regs { u32 uid_high; u32 rsvd2[7]; }; +#endif struct fuse_bank1_regs { u32 tester3;