From patchwork Wed Sep 16 07:17:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 312158 Delivered-To: patch@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp197901ilg; Tue, 15 Sep 2020 23:53:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcidIzZ0tQZclmOFNZHEjgpw3kfFc6NDySFrGPNIZ0jvRsHv60In/q3NZJiR6LeNADviKq X-Received: by 2002:aa7:d815:: with SMTP id v21mr26588475edq.56.1600239194033; Tue, 15 Sep 2020 23:53:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1600239194; cv=pass; d=google.com; s=arc-20160816; b=NLPQMb5lyza3BNcBc+zBGcSu0Yw/nsMy2QaDRxJKc4cTrfY/PPZwIbrDkwFZLQCGlH 0veZIqND1vZtKpiAV3cglrqNfjesXFV96b2oX7TMfSvrsm5Bmzx2aScStyR/Di/PUvq1 WLv9GADEl46zpnETE6fFKgpagfdOR/f9ZqH5n8jZp6ZmUYI4HhMGB26tqol0GBKIAg8u aB4JPqQQAg10C2YQE/oK01c4Mn1gsTgrMklZrefI2iAF3IhFLpERowJPzyaG1gqCJtjE KxdV2ykwGE/B6FFjRIAtBPoA0K4w8j0f0WHG4/oKtQTo5htto5i+gaTu/OkBajQBG4tE yIWA== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=TtVYaC1B9XwOFGw/rYCpScrzhrelJuL/2nrc5xXLn/k=; b=SPoZTjsleX/IcumCekk0shZDpr76G8NSIkROVDUqZ0m3VdvIDmdYT8ya0058t4tBEP /gElbztbcxRzWKL2jI8ihVH/p375rENMuB/PQl2+3MsClgWG5XyH4jWFWhYq7Jj/WDwy 9GoAe1HZ7A04N2uB4mSiqW2vRq/TLYvmXbGx/wXsg3mF0Um5jOeA2wo9L12JUEXyykl+ MMYUUqcvjiUSBIIqMhgVy6OT0Zgt9AlKjoKXIlSLX1/pqXZ/l5hgb8wWVsLy9JbR6ss0 +UXXDIIbso5gPFvrMkricS7kcxGfaRTyHNgQPxybtWo78WZALP9r4J12DQermGo4FbbK QrvQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=KvD8VWsv; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id v10si11120881edy.425.2020.09.15.23.53.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 23:53:14 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=KvD8VWsv; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (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 89D58822A3; Wed, 16 Sep 2020 08:53:11 +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="KvD8VWsv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5F166822A3; Wed, 16 Sep 2020 08:53:10 +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 EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on0603.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0c::603]) (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 88A52821F8 for ; Wed, 16 Sep 2020 08:53:07 +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=k6EbM/m7kOwRxy1b1nsoy/SLd3y4KrWRdSE29JIssVLE0FStEZpqGa/qHn8nSAIe4trKdl0imUY8FbB4LkFArht1F49H7g0V8KbtXMHP28TkKkSGpJH6p6pn0UN7v2xhie0vx/Vy9XaR1MFX1FzxRy7N/COPnnPIquBo/22lhGN/mVH8LvGU19Vhu56CpdlC2b3dXHQabyWNdz3JZJc+3cIJq7ZckpW5vG2RmWi54JAY24LE8Gk/8ez6kOPU6/8q2a0TZiyZhwYy6VwBTFHoO81lbG6fI8r0yr8sOvXKC6BiCLoP1rIja9bT/sBgjowzoKNPzcblPZRSVqgL/evEEQ== 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=TtVYaC1B9XwOFGw/rYCpScrzhrelJuL/2nrc5xXLn/k=; b=DRvBA32s1APMuTcPOAebL8zUYy3g5OWZg+X8blb1IZrWziIiqc6IQE85AbHVH6QgcCssS7+yy8N/vV2bfEsAZhFlJkOxCvclTVA1w2meu6qgrhpD0CvjHaOSWZFt+/E+mhuHyl8LuHfePro06jV2JDCY0iw8uMbd3tAX/qoNAIORyKlJgcpUDLzuPaLjInTJTZJ8e6eghipEkLiYYcYlkXTHrrpX2EEpXs4TC0EdTz8+IWn6sfvxIgiLok7QWgcbPUUqt72MkhqkBpvM2mLArjFhKjHG+2tWuxmX/lCiBUnFPmgvD80FwlfQ338Qkq31aoiBW3bb/45cuTPOHKYxNQ== 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=TtVYaC1B9XwOFGw/rYCpScrzhrelJuL/2nrc5xXLn/k=; b=KvD8VWsvszeU1sF6z6Y2ypal3ArfpyuAbnWVr/S9vfK6SpGp9H5EObOasbZhhQJMZu4Qc5f/JCx7xamQuuj5lXJjhsyn+ZuBatTs6PAlNhWeXNGVQOY5E82ID3T2yB/WztjihGNxPW5CzD2IN1hospvsfOm4MjJppvujou8Wjb4= Authentication-Results: denx.de; dkim=none (message not signed) header.d=none;denx.de; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB7PR04MB4762.eurprd04.prod.outlook.com (2603:10a6:10:16::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Wed, 16 Sep 2020 06:53:06 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::39ff:13b4:4f28:1413]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::39ff:13b4:4f28:1413%10]) with mapi id 15.20.3370.019; Wed, 16 Sep 2020 06:53:06 +0000 From: peng.fan@nxp.com To: sbabic@denx.de, festevam@gmail.com Cc: uboot-imx@nxp.com, u-boot@lists.denx.de, Peng Fan , Ye Li Subject: [PATCH 1/5] imx7: ccm: correct target interface num Date: Wed, 16 Sep 2020 15:17:18 +0800 Message-Id: <20200916071722.28772-1-peng.fan@nxp.com> X-Mailer: git-send-email 2.28.0 X-ClientProxiedBy: SG2PR06CA0230.apcprd06.prod.outlook.com (2603:1096:4:ac::14) 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 SG2PR06CA0230.apcprd06.prod.outlook.com (2603:1096:4:ac::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.11 via Frontend Transport; Wed, 16 Sep 2020 06:53:03 +0000 X-Mailer: git-send-email 2.28.0 X-Originating-IP: [119.31.174.71] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: d9b807f8-dc40-47f4-07e5-08d85a0d29eb X-MS-TrafficTypeDiagnostic: DB7PR04MB4762: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:883; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GjrUvz1EtVGM2ELBnJ9OBAvZM9kyD3UsLG2jGsok/cui1e9VGUiOZ+7997eGljknDCjOJtdRk0HsQnOTalyAD0mzkqDmO0S8A0Lkwq7Cq7R++lndk5cHZS7et+98PPZW4FQbJLmzjcYIbO9chjFtOmrBo2r9fw36j1FcIVt9wv5sNEv4sbPw1shoOkPQsXFVMgcG8rfAXuyQgNLCVkmxmlIMhyAYl89qxgdtZS0INk5Cu2PMG7hO3UdszdAYVxo/J/m8yo2+rHtjKkiDp+L7RByI+SGmBXGFFckR6ct2XBGWFCPE6JqAx9rBkeNaeQIi4OZOOE5MsIfMVlqbNkpAJg== 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)(2906002)(6666004)(16526019)(83380400001)(498600001)(186003)(4744005)(4326008)(36756003)(6506007)(5660300002)(1076003)(6486002)(26005)(8936002)(66946007)(956004)(9686003)(2616005)(8676002)(86362001)(66476007)(6512007)(66556008)(52116002)(54906003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: uV0stnhyCtH6/WhOzkU5iWCcFfLRMOwZcqC99cVhLprEEFgeF/z7WqAgnukVQnMQ2jaCqWh8s229HTayxHD4kkURxG1xfzrtPb0l1q8XtpZTacKIRqCOyFav66LZ1uImssTYDLo8Bdek72/QhV7P3MEO+4pFAz+jCMZrSC2dHTiV3YeTER9WG1xeqI/9e6i6iocSDJkTIkAMahv8HUcrvjNr3FVwrYxUM1T9sZ80xf6F7Kz27+x0y88Ma+ZlBcGqtdOojQAFHm362NbCKgn6y4eNcQfPccnfDedSqHBY4gTFr6rotWFA2gfnzJ0CuR+WpvwHpJp4SMAm9B+ZsET4o1lTMhKfeYNjdsGEqUeWDEYIi+l1PfjD2BEAbndk4TXRrt4f6y7OEIJLzYnnWjtalGnKhHcB/RWlSqS+DajETG1SEJlZ51D9eS9tZCSQVFYERe/wiC1VcYqY+LKH0hYt2YhhAKRmEA1ysYi4Svb3pZzm6gXRV30Qk36UiJ91XEkLMgLsqF+hN2is8tMPaCp4opQuyLcLnGbG5vTZav0uisOE8ckX3Q4Ch0UmqIVS7/DT3Jadqx3WQNdWgjE+Hl6wPJ5obv9Ua5Oi6Cu4titgjPmJYjzszHtGTfUNbSY3h/g7ZuGcd18vuRaB+ZrKM5xBGA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d9b807f8-dc40-47f4-07e5-08d85a0d29eb X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2020 06:53:06.1986 (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: qh4GMHxzn/UcxMTMCoIuvZbcbP410tyC04FIXqWVTOfxET+OIBlraeJzMTx6CQFDDSyGAU/xLhVmUHlWLEmWlg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4762 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.3 at phobos.denx.de X-Virus-Status: Clean From: Peng Fan According to i.MX 7Dual Applications Processor Reference Manual, Rev. 1 The target interface CCM root index ranges [0,124], so the number should be 125. Reported-by: Coverity 18045 Signed-off-by: Peng Fan Reviewed-by: Ye Li --- arch/arm/include/asm/arch-mx7/crm_regs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.28.0 diff --git a/arch/arm/include/asm/arch-mx7/crm_regs.h b/arch/arm/include/asm/arch-mx7/crm_regs.h index f3515fab03..bfa68a9d2a 100644 --- a/arch/arm/include/asm/arch-mx7/crm_regs.h +++ b/arch/arm/include/asm/arch-mx7/crm_regs.h @@ -57,7 +57,7 @@ struct mxc_ccm_reg { uint32_t reserved_0[4092]; struct mxc_ccm_ccgr ccgr_array[191]; /* offset 0x4000 */ uint32_t reserved_1[3332]; - struct mxc_ccm_root_slice root[121]; /* offset 0x8000 */ + struct mxc_ccm_root_slice root[125]; /* offset 0x8000 */ }; From patchwork Wed Sep 16 07:17:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 312159 Delivered-To: patch@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp198022ilg; Tue, 15 Sep 2020 23:53:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOI7TJ5i7eHm/w5UXcFdC6/4TIvPtXQ5TbGUez0FsZulTco3li0/iw/CZ72nj/Sna6Nezu X-Received: by 2002:a17:906:faec:: with SMTP id lu44mr23533450ejb.527.1600239207038; Tue, 15 Sep 2020 23:53:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1600239207; cv=pass; d=google.com; s=arc-20160816; b=tbECoxfATgibEDPJQpmJY+H50gnhsqBuEnvXwDI8Sss5t+B2a/KUWybqKCMewdfvPk cDQR90pcbHVgi2E38wHG67DQXKXunvgrkxykae0iQUyZeRkv91poPgquFJRxYU2Tm9uf rxMFNa1Qtlfz8KJmPs3gkgaaQKUqAblUfoTZ9ffITGx0VmUI9pFbqpEQgc0pllicj/yB Yrh/JgMfDfP04+IWV/6g7isaHhsoWCNYskskJTykO2Qz3NK43/E428OUrf/efsR/igaj rGbt74hnQYlLiD4DHk1AMvxriXGRX/TTOb6Ypk3y2EFQuVKS3o+qNzXReHJwvtiwWYin kauQ== 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=M7v4yKlGJ7+8uTiruxuCPbJOA1Of7jSPdDSOmk/7OWU=; b=V8nG8mMYWe/P45C2kRQEKFEI+3sP36IxebfCB6keKEvRyQ3qhBIhryPBtfxdSsB5mZ OmPpyPpVV970o4AndVKdbq8I1OhWkbUMZ5rZJnh89gTR7/nAMUyiAyLNmQuEaCQJVoup nsbbLRlP/CEFNSZ1eoXilHreUP+sASBri17tpD6w/Myi0urq1OB42on5H5UarinnF1+D hgklEbi4WDh/fZ8QkJuZDUSU++sH0sHIJkNuAkwR0my9yTJITInKchXrvHKeheMP9OI6 A09k5NWequsM9iufrPUSbRD20yAvMV1iZZnKmP77CzFf1R/AZQcnpVSqAN5amy8N1nGM vsDg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=IgTl+NTN; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=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=pass (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 yd22si12679196ejb.346.2020.09.15.23.53.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 23:53:27 -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=@nxp.com header.s=selector2 header.b=IgTl+NTN; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=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=pass (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 F064882304; Wed, 16 Sep 2020 08:53:14 +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="IgTl+NTN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A0704821F8; Wed, 16 Sep 2020 08:53:13 +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 EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on20620.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::620]) (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 C814A821F8 for ; Wed, 16 Sep 2020 08:53:10 +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=BPk31mYIeJ4tphnCGnERz7AhEpqdOyvOJrxO6ET3G/VS4YA7bf8eGz0TUFjtzMILatIwmekDSO/6Td3ncUMMHl+vhzg9JHhyGogkw0GJzdWY9u8HsE/Cxo5pUPj5FZRKJjrTemcyVqIuWZrLSehB1JIO0rek6z0J9UFiFJDwYhN82c0n52TmCFkrg+11tf2hXpSpIjtUxDNoGe71EONQlq4WLVCsRJOY0q1sX56rHFdJ/6bRlJY0W1QuweMWDIWUSvCL5Njs3rnF4P6e0Wqcvb1wY+GHPUP5VwPqkrFG2bnNqz30hV8/sDBBj9mkNwBqTZf/edDnGg7soTyuU7+c5A== 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=M7v4yKlGJ7+8uTiruxuCPbJOA1Of7jSPdDSOmk/7OWU=; b=QzgHQYj7dvEtwIAmD2e9uJfvAB6MnaNrvUrI3ccSo+wb62sG0ANJdqYibD1psPgYAb/9Uzc8T6/WUvnWGnOGSwYOhLIKOSLmS1EEwJJvL7LFaxEFYlq6ucp2hQAEwK4SGqDpmnqV7RtFK9T8FPsr5jId8ImHyEacpxdzYzhneN3hU0YcG8bmO0ILdgVDZX64MIVg0vvUJbzuzrptANYWWKg0X1S4kz8M+3fZDQvucRh96BgnWQNpyqxSZ9pgoFqJgsJrgz3GE3dy7IVAwBhSSruVJfgGwo+FEyqZtFlaobQJyUTA7o7BWquGVoZr98YDh6syijjaa1smScm97pSnLA== 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=M7v4yKlGJ7+8uTiruxuCPbJOA1Of7jSPdDSOmk/7OWU=; b=IgTl+NTNuvEqeB19Rckuhbi2Hx8kGajYhMABSq6H0bQifelxgwFO1ICLSI1AWUgi5jzerPaPA4VUws2jfGNbFtzo2bMUUgH3i3Nq3NBQLDvrT6yYQTQ6uH+xdYs0MKvflNRiXxWvf35A6FysStvv2ZZrBp5+dmVt7sdISHEHEsQ= Authentication-Results: denx.de; dkim=none (message not signed) header.d=none;denx.de; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB7PR04MB4762.eurprd04.prod.outlook.com (2603:10a6:10:16::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Wed, 16 Sep 2020 06:53:09 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::39ff:13b4:4f28:1413]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::39ff:13b4:4f28:1413%10]) with mapi id 15.20.3370.019; Wed, 16 Sep 2020 06:53:09 +0000 From: peng.fan@nxp.com To: sbabic@denx.de, festevam@gmail.com Cc: uboot-imx@nxp.com, u-boot@lists.denx.de, Peng Fan , Ye Li Subject: [PATCH 2/5] imx8mq: fix FRAC_PLL_REFCLK_SEL_MASK Date: Wed, 16 Sep 2020 15:17:19 +0800 Message-Id: <20200916071722.28772-2-peng.fan@nxp.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200916071722.28772-1-peng.fan@nxp.com> References: <20200916071722.28772-1-peng.fan@nxp.com> X-ClientProxiedBy: SG2PR06CA0230.apcprd06.prod.outlook.com (2603:1096:4:ac::14) 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 SG2PR06CA0230.apcprd06.prod.outlook.com (2603:1096:4:ac::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.11 via Frontend Transport; Wed, 16 Sep 2020 06:53:06 +0000 X-Mailer: git-send-email 2.28.0 X-Originating-IP: [119.31.174.71] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 4308a60c-30c9-4d40-6155-08d85a0d2bcc X-MS-TrafficTypeDiagnostic: DB7PR04MB4762: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:514; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ysUuWAaWop/vCSMqytujU3946lv994zDhNbVxMW8w2nSp0vH074S95R9v6sEdFJw9KAuMZfakY4Sa2S7YtYeGnvCOOvwjTzuRuRBvpRgpOC2N9jfP2w4ARkdmWLMz8f9IAdhlbr5M+2+qAA50MpxXtzuqSBiHXtf7ETSzziPwDlTZjXs1Ub0DVG2smX5eyNEJi3EriKmlfNnS92zFtFQguV5uu+8gpLjId+JLIPjKPfc2w7hMoEl7sY2wIH1W5SchfEDCcA9ynL/Fd9ATxveCWH7bAhItAXmU1mhGbRFcQ5UMPIsaj07L8C/3RLFQ7xrk2LtuRO7X/7zDH2rRnEUvp9YFfdGy45F3XE9jsASh5yr6EU4ctxXb6HG+7uican7 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)(2906002)(6666004)(16526019)(83380400001)(498600001)(186003)(4744005)(4326008)(36756003)(6506007)(5660300002)(1076003)(6486002)(26005)(8936002)(66946007)(956004)(9686003)(2616005)(8676002)(86362001)(66476007)(6512007)(66556008)(52116002)(54906003)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 1uQ7bVA45KA22d7Qnv0wy6cAUUXBhwO9b05eWw85N89mWV8lM/9LRCwCNlvFne986zvOauJenU6gvL9ZNPA0dJdJEsRBhRiA62YZ7+Jmz/UPAjT8EbeaHAsBc4jmJ85izDnE8JgdYQybIBcP8FVOt+38EQpy5dJin0zmzUfwHwzYZcz6fFyb5zPc+KNkUcUKD/39fvq9o17776SsVX73tF1qisvxpRSlfxeqGxeAWtMfHS3daVeHLXp9QKHFPtA6XjdZa81oYxaHlOITQJAhAxoXVN/ojL6omvqxUKpJdkUO2EqcI+WQVn5yj7w+xXjGMH35WZ/fz12FXNRPPetLBS/2PG4S9Dp4We6cddNM57hEIHoVt9Umx/txi1Cacp6md+PFLa/Mq+/U0nDMgE3fYD0vbEqxj/NqfK3OTqug1MUiRvVzYEwQ5dDIu2HPFNfj3TZC+CA2OjJEzYxNJSIbmlNWptmWOVY9x4zkRPa3WV7b2CoAy4faDPn2wqdCZVlHXDNa0JLuIASgUClyhx2OV0SX6fubVXUd+whHBoi41XguuKZKyHTJ9QC+ub3KYKc7icWtTVNsE1tL1g/nmhIqAoV7YkX2GqHGOTU3T8l1pq8+znFhizpA32fe4F+IQTbokxFnUMYLA9El/A8C7JIBHQ== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4308a60c-30c9-4d40-6155-08d85a0d2bcc X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2020 06:53:09.2992 (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: zsxU3eYY4MgUr1b7xWq6Skwu4dr1qHkIPdQRuse6WJvtKo8aWV1vtk2ftY7Ipq1CAaZEP7Zzguka3ps/jUQUiw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4762 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.3 at phobos.denx.de X-Virus-Status: Clean From: Peng Fan Coverity reported dead code, however it is FRAC_PLL_REFCLK_SEL_MASK was wrongly set. Reported-by: Coverity 10045172 Signed-off-by: Peng Fan Reviewed-by: Ye Li --- arch/arm/include/asm/arch-imx8m/clock_imx8mq.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.28.0 diff --git a/arch/arm/include/asm/arch-imx8m/clock_imx8mq.h b/arch/arm/include/asm/arch-imx8m/clock_imx8mq.h index 742cbf3bf8..7109d334fa 100644 --- a/arch/arm/include/asm/arch-imx8m/clock_imx8mq.h +++ b/arch/arm/include/asm/arch-imx8m/clock_imx8mq.h @@ -316,7 +316,7 @@ enum clk_src_index { #define FRAC_PLL_LOCK_MASK BIT(31) #define FRAC_PLL_CLKE_MASK BIT(21) #define FRAC_PLL_PD_MASK BIT(19) -#define FRAC_PLL_REFCLK_SEL_MASK BIT(16) +#define FRAC_PLL_REFCLK_SEL_MASK (0x3 << 16) #define FRAC_PLL_LOCK_SEL_MASK BIT(15) #define FRAC_PLL_BYPASS_MASK BIT(14) #define FRAC_PLL_COUNTCLK_SEL_MASK BIT(13) From patchwork Wed Sep 16 07:17:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 312160 Delivered-To: patch@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp198117ilg; Tue, 15 Sep 2020 23:53:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdC0AYD+8b6RnNsKFQGZyq/E8CbBSts1/XaGxXsf8pE6MtSYFQF3L+XHl5zpUm1xIYOV6g X-Received: by 2002:a17:906:e918:: with SMTP id ju24mr23254375ejb.442.1600239218483; Tue, 15 Sep 2020 23:53:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1600239218; cv=pass; d=google.com; s=arc-20160816; b=mYBK1zwQnd2c5HkShGYiMpPBYqkuPzN3+WdmyNXdeFtjI99yNuGYO0lgRkQ6lkI5AO LHbDLo2OIlMLmoxPOGt59jxLvxas8xH9Z7fviewpZTSzmgNbHja4CHK8iW3cRn9OReuS RNdwCW8nN7JFD26hZtdaLhSPar398kwdNMJA/6YY9nEKiOy/t/Nqo/lWaN+UR2qgJyQD iIGKb7tARsO0znl90+kKxV9BxrZZX+gCdPnCGy+9tfugLr4/YDcKSDEtVUj0MDUUMAIE QmvdZuX2BypNuX4ZKSgJl+2bycvUy9WsHCup/PCa9itqooeEYGaVLsEPh6sK7S9knaaJ xZDA== 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=0Lz9Gt030HKEjlVPFyagPBURXXb2Mthe+1NGbD4X1I0=; b=wyO0O9ox1mjA5SsudDOdrcMLcBXdQYDl1MqRhC5MsKgipKOEj5KwDAhuW5ykggGd21 XGIprHzsux+hBVPL4yJVO2Tl2o5gWrv41Xi5ioICO1DklTlyLPlmqGxU/vlp2ck1gai5 U87DTvMpCzvzjPSYjVjxRwAAAaxKfRS7O00SNziY0WiHsBD60danCAOOK69paDSFdEiU ymT1IdR29gglW0zrdf/C9SzgdWmgXQGC3X8IKO5UqeSjlZbBNOl1WE3eZ1lC8bpECLBB MEYjYhsnwBoEwCQHG6Ywm4WkejS1Dx1eneQ1GyKUT/TIIq8ttuYhwTGgrhT4Aq6cO/IV 2pkg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=V0P65KO1; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=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=pass (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 a8si10379263ejs.101.2020.09.15.23.53.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 23:53:38 -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=@nxp.com header.s=selector2 header.b=V0P65KO1; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=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=pass (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 6250282324; Wed, 16 Sep 2020 08:53:19 +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="V0P65KO1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CD92882320; Wed, 16 Sep 2020 08:53:17 +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 EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on20603.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::603]) (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 BEA5A821F8 for ; Wed, 16 Sep 2020 08:53:14 +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=au/Lg6jwoJKePNxSvnmAY3g5JxEg5eKMfUZUKfegcLQ7GeS8CMWY4gFLcsQtrHAJxeyJX0nwWcnKyzP9iwSyiw/X+mWze6haJ6eY1nMVKeg6tme1VbgHYIMQ+pwVT0GOqE/O6LOasetqhQhCLDRq0OCkcFgCDl9lCpG2HXW1n0+QDoYFtqnyoE5d6tSX8kQXzEThv0pYZ98eQnXoFUpOph+qASNx5IFbJ8rLcmM/EvuJoL8hqtEQqp1M4CxyAwGpzYOhXQdX9cDpedI1YzYl/hRM5LfBUX/A4YDHO+je3F3/TetXHMUIxjqK0s1iz4KHxO3sOvJF+PIzPdGWYuQI6g== 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=0Lz9Gt030HKEjlVPFyagPBURXXb2Mthe+1NGbD4X1I0=; b=EikmQm0wE7/vcz+nac9aELorx4uAcNWiFmYts6tN8P9ru74jmi5ityBOVyA1zOMlKAiJGaWPuHEYuaVUNU5OaVbcRz/7fvyWkUn6SPKnT/naBuMUBb4aC2DlSXwVxF7p1mUIlwt7pVdcxg/d7VpiSo4MCXmsvrxzlbZPxRsOwTYmqOUySmJxr2dywOSCHDZ6tTPyZqmTOKHIAVXm6ubtyg22/ruq3isAluR6RSkq6X9CKj4ijEujnRIbAalncti8TJBBMIaMJrqILjKjPHO1JxhLgGCfoif+IuplhsAPE1wJKoOXa4sYjOo+YkZCa6jQMXCNL/FVzCUtlLqIBlMDhw== 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=0Lz9Gt030HKEjlVPFyagPBURXXb2Mthe+1NGbD4X1I0=; b=V0P65KO1UjQ0x5W0cKg4FoPDOyUgbg5lq9QYjZt5U7XYGuK1emN3d01paD+YmIOtBi9FON8rSj5w33UCdUx2/whRFfUuLUsLkw0X+3oAhpJNjJ8k6aefZ3+CMp9d7+CBL3J4J3PFzAqlBpzT9wq9BtstmISaeiu1+nh17K2cnC0= Authentication-Results: denx.de; dkim=none (message not signed) header.d=none;denx.de; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB7PR04MB4762.eurprd04.prod.outlook.com (2603:10a6:10:16::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Wed, 16 Sep 2020 06:53:12 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::39ff:13b4:4f28:1413]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::39ff:13b4:4f28:1413%10]) with mapi id 15.20.3370.019; Wed, 16 Sep 2020 06:53:12 +0000 From: peng.fan@nxp.com To: sbabic@denx.de, festevam@gmail.com Cc: uboot-imx@nxp.com, u-boot@lists.denx.de, Peng Fan , Ye Li Subject: [PATCH 3/5] imx8mq: fix SSCG_PLL_REFCLK_SEL_x Date: Wed, 16 Sep 2020 15:17:20 +0800 Message-Id: <20200916071722.28772-3-peng.fan@nxp.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200916071722.28772-1-peng.fan@nxp.com> References: <20200916071722.28772-1-peng.fan@nxp.com> X-ClientProxiedBy: SG2PR06CA0230.apcprd06.prod.outlook.com (2603:1096:4:ac::14) 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 SG2PR06CA0230.apcprd06.prod.outlook.com (2603:1096:4:ac::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.11 via Frontend Transport; Wed, 16 Sep 2020 06:53:09 +0000 X-Mailer: git-send-email 2.28.0 X-Originating-IP: [119.31.174.71] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 47c989a7-579a-4894-1b36-08d85a0d2d94 X-MS-TrafficTypeDiagnostic: DB7PR04MB4762: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:913; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jRKEMtMAx/lADpPxU1+J+MkdbQfsmjTvSD3b1oTYuZniIprD8kczTOQpqtYhNc6slrb7oX+9gnR/1NDwoOaddwIxjr2T/5dsuMU5szGk1ZmE6LExh/QXikwi+7pCKURI79F5//a7sjiC3iaiZMr93SK+UPLuqF/liYQqsBj39K3nl4bhwiq5ZO2ljOx61gBFa0NrYWDtHTASQFDkJlBmhSKsjIg+FktZjO/W0ra/nYKRPwM5qkd8O6ka3EOxz24SA1cGEz/6xS9qMHcF8P73++QIDVz8WtDe6nf0MFWrlmpxUsXO+EMrCF/OXYpCSUTeWDVUPVK7iD/VIZoQUbZcxKJanZn7Pqd2eBTQeB2a8J0VJXImdv0t1pJSRc/WnEKF 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)(2906002)(6666004)(16526019)(83380400001)(498600001)(186003)(4326008)(36756003)(6506007)(5660300002)(1076003)(6486002)(26005)(8936002)(66946007)(956004)(9686003)(2616005)(8676002)(86362001)(66476007)(6512007)(66556008)(52116002)(54906003)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: sv7WgAi92eTTXMCLhmCRwSYGG/Y43BHNcw6SHLSNm57y6nXTVMFc10+syb3j6AzLVpzBWZ8YRpPsZ+1sZbs4Z7Q08JUBf4m1JnWNW4vc2mmtmvXOP3nTF9WJTIl8TLL9CGw0/nM42dsgzs79ySptmOEv6kBQHmdJHGE6aAoZ4byxkkrFyWEf0IZIEl9jZXTdWri7PXEOMS4zcD5axh/58o/jytTGDMnZvvkse7vISN8rvyeovOF2fW+1DQd6JRb3LgNlIr0GYTOeZmf9nVEKqqF3awSLZheGJR7U8H3rgp/Lb5q7wXD0trnG/pE9YO95kje+ErQ1hp0JivnTstWQgHxQXUxxQgyATY9frmzYI2jOGWO+pkzIBSTNZmDRddFgSKSp5dUSXfyREs9wseXLuYlFTixLbVc+2t4Fd8Vs1T23jzpaXSqXzqB57fSn1juyJj/4RD00qrJzDKaJ68YCqIxRvhpyb9BboIZDGRzconyErATvls588hO1cftxu21RM9FpGi67wYJrQa1iV2RduOzlAyNxH+Y81MS5qaFnEGPcZprP8etudzb7u6EmyQWJYcHQDKwOa+mmB4iJw65J3mbzFLBN8fecG8FY3WQl2rIZai1C8LMhDD317cjG6tS+CJDAfVVb/kD2rPMKSQpx/g== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 47c989a7-579a-4894-1b36-08d85a0d2d94 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2020 06:53:12.3228 (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: aGsNIT/+WGAd2U3CvlgbVpoVu9zL/o6aKGxvRy4Tzuu6P4MD/cUnXTSxihhZatjkOlA7LS30Eo/Jpir47RWoWA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4762 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.3 at phobos.denx.de X-Virus-Status: Clean From: Peng Fan Fix SSCG_PLL_REFCLK_SEL_x, the offset starts from 0, not 16 Reported-by: Coverity 3448860 Signed-off-by: Peng Fan Reviewed-by: Ye Li --- arch/arm/include/asm/arch-imx8m/clock_imx8mq.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.28.0 diff --git a/arch/arm/include/asm/arch-imx8m/clock_imx8mq.h b/arch/arm/include/asm/arch-imx8m/clock_imx8mq.h index 7109d334fa..340a61e55b 100644 --- a/arch/arm/include/asm/arch-imx8m/clock_imx8mq.h +++ b/arch/arm/include/asm/arch-imx8m/clock_imx8mq.h @@ -358,10 +358,10 @@ enum clk_src_index { #define SSCG_PLL_LOCK_SEL_MASK BIT(3) #define SSCG_PLL_COUNTCLK_SEL_MASK BIT(2) #define SSCG_PLL_REFCLK_SEL_MASK 0x3 -#define SSCG_PLL_REFCLK_SEL_OSC_25M (0 << 16) -#define SSCG_PLL_REFCLK_SEL_OSC_27M BIT(16) -#define SSCG_PLL_REFCLK_SEL_HDMI_PHY_27M (2 << 16) -#define SSCG_PLL_REFCLK_SEL_CLK_PN (3 << 16) +#define SSCG_PLL_REFCLK_SEL_OSC_25M (0) +#define SSCG_PLL_REFCLK_SEL_OSC_27M (1) +#define SSCG_PLL_REFCLK_SEL_HDMI_PHY_27M (2) +#define SSCG_PLL_REFCLK_SEL_CLK_PN (3) #define SSCG_PLL_SSDS_MASK BIT(8) #define SSCG_PLL_SSMD_MASK (0x7 << 5) From patchwork Wed Sep 16 07:17:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 312162 Delivered-To: patch@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp198219ilg; Tue, 15 Sep 2020 23:53:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzi9wCkFiH21i40OLkwKAsiU4Ip6yw4KpXGBgiFomnKKTxPLcG9BDS3+ROPQGYTI8pZuG2N X-Received: by 2002:a05:6402:1451:: with SMTP id d17mr25643247edx.48.1600239230333; Tue, 15 Sep 2020 23:53:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1600239230; cv=pass; d=google.com; s=arc-20160816; b=SJ3oRLLScEa5i+1dfqH5nqgs5Gv4pR0/Ds26Ylm0vIwZWveeijSQcjH35EH0f/ZzVJ MEimIPXz21g8/J7vh8VV35zYuWmkU513Mz+0fcL2M90sjplmmRuZ8zqlvc7XOfIsXp/V znNrbWJ/8vYaOKCSjbX1A/JlR7ReXx4x4otYj4VzY4QVHEGraeMhrtLWSDX3Ldl/Ul8W FjUy/N2T1pPa/kOsWQgLy1q9gZx73d+qTq5J4Zm92pFePol/Adftx+QOh2tvkb3ypHhP EbkGqGgr9sIO2AZ67XbG/mGl/leYyVmUyrE4mPZfexWHtTjAOvqlXEhLaexm0cDffspF ww/Q== 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=f3EwO84pLEIsY/lM0edX6Yv/DJkSzJbsfBi9tu8vz8w=; b=VjG5Ceep12XTVTblQkPfPHUCvSKK0XzUWh1iekBK0shBetZPNcd9zLHdLqIUguXUxu Qja2/KZCPsEG/iygzHHfpgZnW4OXXeTXQGcEYtqWe7tl4QD4yFKpFFtcythpebopQpow AyFMmYzoOJpz4rMueiceoFFrj8ILmDnGBgd5DYd5fyRk6xnp0m2tYTGSfUQ59J/VsvzK ZrtqOjQ6DhBUesnR7IFDoKSwZMWAztlAKr05f+JY9SeUuWnr4BOCCU0ujqTMxeWQt2D2 2AWYeeW8E64zkfhDls+5etk9EQCnRxIcFYb7l4+oeQMwWXCm586jEq++z9Su7mq8Vjn2 q93g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=YAzQIiHj; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id mj21si10920090ejb.271.2020.09.15.23.53.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 23:53:50 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=YAzQIiHj; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (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 69E1A8231E; Wed, 16 Sep 2020 08:53:23 +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="YAzQIiHj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1FF1482334; Wed, 16 Sep 2020 08:53:20 +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 EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on20623.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::623]) (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 5CF0A82319 for ; Wed, 16 Sep 2020 08:53:17 +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=RiGn7X17WUr/xXJ1A5nOaM5YNqJVxeSnF3mpD3su0UQ2ShTl7HuVv7NPp1rCNaWuxwKKmdNlk4YFk5/EeHC1txNDv1Zc6Ex5M3jL8ZXL/y1YCMkLvJrChXGbTzNSDoboHMISx4VE9pmpZI+BmdAuLrzMaydXUJBGH008MVzRKObamkWTeT2fVX1qkFY8WFaThHZHx9t7tgP1qdovSbmLvPMuP65BT7o0tVkk2EX8py1sw/l43aTp1qk/cUB0XkwvzuR3C3pwJtc6oPrbH6+r/nxAjfJNezp9FwWwImfCBwLjWV9YwhhyP7ggo8FM4sH2XMLmSbNEocb42zzooGJX7g== 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=f3EwO84pLEIsY/lM0edX6Yv/DJkSzJbsfBi9tu8vz8w=; b=DhpSihkXbJ0KDorK5XVGau9phCi+iuV9IglZFj1m8Q1vkI9y1HeqtE6cBQ93aYD2nPmWVlL8YeyktraZlt6AoVkcxx3PEW3WUK498KgKpyDDvwUrSD9rQewgpMvD/D2JBehgu21J2OAQB4LImJxRarvzeuqmaFboTylg9LYGNdPcO0UwV2Hiys3g4v+2bZRT7+eiH4mZmGFrGugTKGRLIOOdqA1YTXH3h5Ix4/XhudTeVVMC9Qlv7S4L5XXzRB8kVVCAYoojsK2/8gNK1i5CagKYBtekrQrPX/UTZMq4dZTWPXj52f5ay60zZtasDeHllwAx2Mh+BpydqpQLhCuEPA== 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=f3EwO84pLEIsY/lM0edX6Yv/DJkSzJbsfBi9tu8vz8w=; b=YAzQIiHj8m0Jwj8Bb84YZSnz9NeC4IPI8lY1tBBITNG+qmeT1umOZp9Eflg5zcnOSejz05UCrwqwOK79ox5QRgCU37Eq9KMo3w/XRdZXzD/DQVg2YTAYwc4OeI8F8KLJST2ritbz9u07c0JmxEmdrtBwlEJ+HpZbCsDljZEOc3M= Authentication-Results: denx.de; dkim=none (message not signed) header.d=none;denx.de; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB7PR04MB4762.eurprd04.prod.outlook.com (2603:10a6:10:16::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Wed, 16 Sep 2020 06:53:15 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::39ff:13b4:4f28:1413]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::39ff:13b4:4f28:1413%10]) with mapi id 15.20.3370.019; Wed, 16 Sep 2020 06:53:15 +0000 From: peng.fan@nxp.com To: sbabic@denx.de, festevam@gmail.com Cc: uboot-imx@nxp.com, u-boot@lists.denx.de, Peng Fan Subject: [PATCH 4/5] imx8m: clock_imx8mm: add missed return Date: Wed, 16 Sep 2020 15:17:21 +0800 Message-Id: <20200916071722.28772-4-peng.fan@nxp.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200916071722.28772-1-peng.fan@nxp.com> References: <20200916071722.28772-1-peng.fan@nxp.com> X-ClientProxiedBy: SG2PR06CA0230.apcprd06.prod.outlook.com (2603:1096:4:ac::14) 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 SG2PR06CA0230.apcprd06.prod.outlook.com (2603:1096:4:ac::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.11 via Frontend Transport; Wed, 16 Sep 2020 06:53:12 +0000 X-Mailer: git-send-email 2.28.0 X-Originating-IP: [119.31.174.71] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 81194f96-2cbc-4a81-d16d-08d85a0d2f4b X-MS-TrafficTypeDiagnostic: DB7PR04MB4762: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:296; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: btFyOwYQrHQ7hR8P90CtbZWmoiT3/KyEjuiSyCn5fGJtMz3+sImEbQ2XpePVYoh+nblxOmAl0o3QcpX90fIIvmu0qczGXvIrKw2pj+nFQdcpnfAfGL+9QsOCd9uFwWMb7f7p8m2PHBQuwkGcTEra05WxI8L5aLNncCKJpWw5bQFNEiPwd2va+aRjhHFKPgT5dhcRUyH7OJxYjdOIblT1cjDFwUPotGC3idKGAsjWCBc1A8cqvnO5tdwBRcFkUTK1wNARwmwxKozqMTXOl6bhMp6i+U6UQAo8yUNfCbVf02L1kSxhNKxmthD7bJXZ7BxqJNf+ZTL5R9Tq/7ojl9vuWISUhhQpXM/8KvwYIKVaMd7G3BZhHhY2ZM3zeLVkaZad 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)(2906002)(6666004)(16526019)(83380400001)(498600001)(186003)(4744005)(4326008)(36756003)(6506007)(5660300002)(1076003)(6486002)(26005)(8936002)(66946007)(956004)(9686003)(2616005)(8676002)(86362001)(66476007)(6512007)(66556008)(52116002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: H1avbiXIzAsvfcEsFqI5VUg/gjl0QZmxvisYAcnpBEui+I0U2QF1PacV49a92qKI0HVjSNg5FG1u/U7CyfmpQHw7U9V1sjZEycCZKvte1LlQ+2c5tayqHn3fdk/FK8EUM5VkHXarMuDvR9Yv0R6ek/beeBPENLWhdLdYNgJ2aSM7d0oUF3uOeJWDjYHuxUs8ymHzBrpk6adGvSMxfso1qXZLCa4RiV9+u3Fl0Ou63+JHOBm0LikmdARFX65D2tEJskfmlIcmbArGndZ4wtpkbz5NYdlEaS2GdEZxLg9HJWp+5SaYt9FggAYAOYcYD8KyU6AfhW4Sd0h/jExf0zH1ttmsCxTka3siwUF6/u4k3uK/v3gYzayLCTr0qx3YoH6C/7AgckejsZ2ZOUc6nxXBsk7pMtYRmYM2dTLAHDTzF+Vawm5A2lBRJd3Sg3Wzb3e2gBJiLdL5NMY3xGrmn0c3UAOoJrn9MinpYeXo33fqOiK9V8atuSuKFWQp9UvB2Xy56m1LszkB9+mEklCk1UiUCLPRHqfZgv+7G0RaEGTiz7Dfmg5DV88XoabS5tfoNGNOO8o76kE/ULTO2+wmwt+/NjwVsljwQBX7Ue2OYTB6g4b4kBJgKbAdjrL5rbaB1m9BHy+hA82ze50BzUH05gitLg== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 81194f96-2cbc-4a81-d16d-08d85a0d2f4b X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2020 06:53:15.1865 (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: iaeJE+Gt8Wk92Mt7x6qoX0qHx56IxgBB5btM0bpfb+8nN82OONVZH4WagYDc/cawM0J9ERQmd+dlgvZnIRGXjg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4762 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.3 at phobos.denx.de X-Virus-Status: Clean From: Peng Fan Add missed return Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/clock_imx8mm.c | 1 + 1 file changed, 1 insertion(+) -- 2.28.0 diff --git a/arch/arm/mach-imx/imx8m/clock_imx8mm.c b/arch/arm/mach-imx/imx8m/clock_imx8mm.c index 3610f5b2fc..9dde11cded 100644 --- a/arch/arm/mach-imx/imx8m/clock_imx8mm.c +++ b/arch/arm/mach-imx/imx8m/clock_imx8mm.c @@ -360,6 +360,7 @@ void init_clk_ecspi(u32 index) clock_enable(CCGR_ECSPI2, 0); clock_set_target_val(ECSPI2_CLK_ROOT, CLK_ROOT_ON | CLK_ROOT_SOURCE_SEL(0)); clock_enable(CCGR_ECSPI2, 1); + return; case 2: clock_enable(CCGR_ECSPI3, 0); clock_set_target_val(ECSPI3_CLK_ROOT, CLK_ROOT_ON | CLK_ROOT_SOURCE_SEL(0)); From patchwork Wed Sep 16 07:17:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 312163 Delivered-To: patch@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp198304ilg; Tue, 15 Sep 2020 23:54:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxve+5ubws/ceOEMTFuTq4refyrqVcNOG1hJaoDuoXathC+oAuSXFUzbbX5oR9RE9dyJHt/ X-Received: by 2002:a17:907:417c:: with SMTP id oe20mr23226836ejb.322.1600239240351; Tue, 15 Sep 2020 23:54:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1600239240; cv=pass; d=google.com; s=arc-20160816; b=k7QJp4orCGBBV6EAY8kyx/Yik/MqNunDmm4zrFjn/qR/LRbDweL2e9TQjSp28YAmWI Qm0TZAVUw4bj8gpRbDErWGt7fcXPD5J6rEEk0AvK4pE6CYsRcRJ4wdrnW6UGAPtU+HOr E6BansuU5mOnMWXVARBx11wWCnez4T6VMejuZQViY0bK1lfpmuCyvwdNRglKsGqXkzT1 bsNZKcWZwS/XjpwOwqLuhpaTr8QWRKkuTNwZXj2mFwxSZ7SydfMD9RhIlLwRwdZzcfnF IPCmzO8FiIYhcCtREOab15opbgWdkT8hFZPVX1klyKKHn2zHgSBcqcs6ha9kns/e+a4i kSqQ== 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=krWl1UELqvKqNYS6MB0PAMzfnUmIttfnb83tloGiY1E=; b=r73ql8bxO199aFNdrz3/ttd9zhUqYvBl7cVfFLpoXNI0EYQGTrBKME4qs7Jn6QjlVD HLdxlmJ2fGhhzgmYppB7fVx4FcOkPjkNORdD+rpzbjj3fbnioZHnP0vTTikcGa34UD64 uMLve58ywIouuwArYiTd4ujmy0HedqgN4pozPrLFHhHNwrN6JihI9J1Oj4fZgEMVXIPg vMlSLgH46eKKdjab5e11Z0sNrnTD0/nLmNFkW/rz03YCjSrRzU9cYaILB/phM/EYHrhq ISFXkqNSDdgCceiFYKi5H3rmvtoCqgrjpXmqljmzYJqEiI4x+X19tPvg0kWL4pSewAbt evwg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=QneW1vFU; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id w15si11738466edf.56.2020.09.15.23.54.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 23:54:00 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=QneW1vFU; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (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 0A58382337; Wed, 16 Sep 2020 08:53:28 +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="QneW1vFU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7E7F98231E; Wed, 16 Sep 2020 08:53:22 +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 EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on20616.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::616]) (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 4B0E482320 for ; Wed, 16 Sep 2020 08:53:19 +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=djO21+Nhlw1MBJLwR6fBNXRS6lOZmMyUC2sS9BlaVi669IE91qqavghTwBmcOG5Y4ecWj8sSlsvrsizk5RaWS2VRSfxOk7IpfXJYxYdPQEU87CgDe3Mexj5Z5RC+W5ZWR2/S+r8tdsJGNPVp1713A9iuNRmeEy7KYDXvj/Z+YqWC//Yu+14FRaaJ+ETwp4scO+XdsgFXPB6P4XFloeLmwTllqPt0oC1zImnhE7z7R0tYYFW3lwc77jJ+7f0rS4kOQV1nkjVqL2V6LygCn5W55g3jlVf0897iQYovss2a0W8OjYl8P3uuJmvsO8YwU8LjcrNd4WimNS0uRNAHzHP2BQ== 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=krWl1UELqvKqNYS6MB0PAMzfnUmIttfnb83tloGiY1E=; b=kLHAR6NvXQiUU1BhTzhPaCiJxMNDgpSUTbrfXWQrosdgavNFcP/4bBXNn91Q5M27ysQKsce/QkRfhTfLufVfSxfBrypcwWieTKFDCmbvBcB93Eta2EGYjyq8mGyvZJUvnNGpV7N8h1ImrYII84xP/fEGrJGBG7MkddMDtC8HdfayTr1GmcYtPHfoghz8ZwSD8G21vJmiHq9P4rfuqdBm0miDcB3KyHP9UzuS1LFdCGXHHDRS9ATFEu6PlBIWF0juNqxLeO1n3oe4c6uXeeAA/p8pPiaNDxKRwTROfTQBjs1ejkhEa1v/r2lmtWzYzRsHUuy0aevBxVkl87ajV3HDVA== 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=krWl1UELqvKqNYS6MB0PAMzfnUmIttfnb83tloGiY1E=; b=QneW1vFUDSgwvUXF6KA4OuZDA+3TQJihkEZekD+pnrr9ANMwguPoE6QbfwAblY8bMswXTJ3EIiUfOwkcvQOXMvNMXcGIWXk/RFran+LfFeOhFmbWtIJ5c5gCWmvWLcfPdxKUbAGvyuDJyZbgd4eQfOGcx40TqEPVuGISRuTDVOQ= Authentication-Results: denx.de; dkim=none (message not signed) header.d=none;denx.de; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB7PR04MB4762.eurprd04.prod.outlook.com (2603:10a6:10:16::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Wed, 16 Sep 2020 06:53:18 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::39ff:13b4:4f28:1413]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::39ff:13b4:4f28:1413%10]) with mapi id 15.20.3370.019; Wed, 16 Sep 2020 06:53:18 +0000 From: peng.fan@nxp.com To: sbabic@denx.de, festevam@gmail.com Cc: uboot-imx@nxp.com, u-boot@lists.denx.de, Peng Fan , Ye Li Subject: [PATCH 5/5] imx8mp: Remove parts MIMX8ML7 and MIMX8ML5 support Date: Wed, 16 Sep 2020 15:17:22 +0800 Message-Id: <20200916071722.28772-5-peng.fan@nxp.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200916071722.28772-1-peng.fan@nxp.com> References: <20200916071722.28772-1-peng.fan@nxp.com> X-ClientProxiedBy: SG2PR06CA0230.apcprd06.prod.outlook.com (2603:1096:4:ac::14) 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 SG2PR06CA0230.apcprd06.prod.outlook.com (2603:1096:4:ac::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.11 via Frontend Transport; Wed, 16 Sep 2020 06:53:15 +0000 X-Mailer: git-send-email 2.28.0 X-Originating-IP: [119.31.174.71] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 9b9d3485-d08f-455c-7538-08d85a0d311d X-MS-TrafficTypeDiagnostic: DB7PR04MB4762: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2657; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: B0XgioGnN+mv9W0xlpshdrQnny2ZJfAlOIcAAz9UQhh6iki/aCwjStLqeqGuhwlpRyOvaQosOrdPh0CkcPsjwOsKAfm6F6wLylh5efPDzcbV0O5IBCPKaJpfL8fXhjqM2ctyg7DLosYQrmy/WHA9wn2awyOUxuibgO8buDVbQf9j3/nOwbvZlwmqvZoHqzWi2wMvMAaNXNuaEyAphRZataIMkQCpSzIfwf223+erCYU/yKuJKBqNik7myjsirmXH7ZF/eqWU9awdxPWHPBnBW/fPxbG4PR6NN1HRNK3P31RzxRqN/wJpYbWUBz8l68xuPZHFmd5+W7tichPNvAT4J3y0fw1EAmCGII1CTvUtrv4TRm+hOwPWb3tWkYmd9iW+ 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)(2906002)(6666004)(16526019)(83380400001)(498600001)(186003)(4326008)(36756003)(6506007)(5660300002)(1076003)(6486002)(26005)(8936002)(66946007)(956004)(9686003)(2616005)(8676002)(86362001)(66476007)(6512007)(66556008)(52116002)(54906003)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: XKrZug2z2N0vj2qTXBOMx+eCJ0PtCNiK7T+dc6MrX9SBvaXLtxHHeEnZ4a1P/U/jmfY5WBBGBqdqWfT77t1YvyS1zYVY9MnQ6jcAkVJGpBb/LjUYJRJ/6cMYSXJRqrfWynXrxW03tpuXnIoohX9KPElMGVI0svkPXLsegbLwrv7kV/LvZXmTU1oa1+1kqrd6bR4/d3zOmRMYP09cj9PXkbkdH/HA8aaoxcckoP3uq83d3Jin2fM68Vow7JwfH9T/lZNbvw7CmYtGF1nrot97fEN7ikFOWw915vkziu/Q5VvmCyu6oimeiFuo4wUG141WZr/YUHjq+YLWnlQNgyt5E9mM/k+pw31sjNQuEeBIK5KTohEOg9b0Frp+lzW6epi8xFik84dYz0L1brRb0PrH9OroY7NrvKGcJIFnk1LlXaso1Lolez9m/qddnmzHT0yKFYyevT3GhLALt0azVadI78FZzNIb6XjZhUSUQyCJGiq7jfAopSwXczviSXvmTRDrwwig2YBVKlcsH1QWMsDNPXZRoAm+niymOEHmIhpeEgqRvJvlvH88iT4zzTQf8l4SQM8NWRR9Wn9vVKEHKDHlvp151viePESGx8FeIArdP3/n2Eg3W6k/uyq4I8vEFbNmdpggdLKp53PH/4qseltzEA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9b9d3485-d08f-455c-7538-08d85a0d311d X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2020 06:53:18.1292 (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: 1lViJJFHcEbKNSJAvyTbJ/RWLY6o/c6aUKMM0C3deKgJef7v3rO2MHzNx1HSlNZgHsRdglMtEB2krk67+yFx2A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4762 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.3 at phobos.denx.de X-Virus-Status: Clean From: Peng Fan Latest datasheet revE has removed MIMX8ML7D/5D/7C/5C parts, so update u-boot to remove decoding and support for those parts. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx/cpu.h | 2 -- arch/arm/include/asm/mach-imx/sys_proto.h | 5 +---- arch/arm/mach-imx/cpu.c | 4 ---- arch/arm/mach-imx/imx8m/soc.c | 12 ++++-------- 4 files changed, 5 insertions(+), 18 deletions(-) -- 2.28.0 diff --git a/arch/arm/include/asm/arch-imx/cpu.h b/arch/arm/include/asm/arch-imx/cpu.h index 75ff991248..f37fe21446 100644 --- a/arch/arm/include/asm/arch-imx/cpu.h +++ b/arch/arm/include/asm/arch-imx/cpu.h @@ -41,9 +41,7 @@ #define MXC_CPU_IMX8MNDL 0x8f /* dummy ID */ #define MXC_CPU_IMX8MNSL 0x181 /* dummy ID */ #define MXC_CPU_IMX8MP 0x182/* dummy ID */ -#define MXC_CPU_IMX8MP7 0x183 /* dummy ID */ #define MXC_CPU_IMX8MP6 0x184 /* dummy ID */ -#define MXC_CPU_IMX8MP5 0x185 /* dummy ID */ #define MXC_CPU_IMX8MPL 0x186 /* dummy ID */ #define MXC_CPU_IMX8MPD 0x187 /* dummy ID */ #define MXC_CPU_IMX8QXP_A0 0x90 /* dummy ID */ diff --git a/arch/arm/include/asm/mach-imx/sys_proto.h b/arch/arm/include/asm/mach-imx/sys_proto.h index 15d1cba8e7..5f0c1ae218 100644 --- a/arch/arm/include/asm/mach-imx/sys_proto.h +++ b/arch/arm/include/asm/mach-imx/sys_proto.h @@ -67,13 +67,10 @@ struct bd_info; #define is_imx8mndl() (is_cpu_type(MXC_CPU_IMX8MNDL)) #define is_imx8mnsl() (is_cpu_type(MXC_CPU_IMX8MNSL)) #define is_imx8mp() (is_cpu_type(MXC_CPU_IMX8MP) || is_cpu_type(MXC_CPU_IMX8MPD) || \ - is_cpu_type(MXC_CPU_IMX8MPL) || is_cpu_type(MXC_CPU_IMX8MP7) || \ - is_cpu_type(MXC_CPU_IMX8MP6) || is_cpu_type(MXC_CPU_IMX8MP5)) + is_cpu_type(MXC_CPU_IMX8MPL) || is_cpu_type(MXC_CPU_IMX8MP6)) #define is_imx8mpd() (is_cpu_type(MXC_CPU_IMX8MPD)) #define is_imx8mpl() (is_cpu_type(MXC_CPU_IMX8MPL)) -#define is_imx8mp7() (is_cpu_type(MXC_CPU_IMX8MP7)) #define is_imx8mp6() (is_cpu_type(MXC_CPU_IMX8MP6)) -#define is_imx8mp5() (is_cpu_type(MXC_CPU_IMX8MP5)) #define is_imx8qxp() (is_cpu_type(MXC_CPU_IMX8QXP)) diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c index fe8d5947cc..4a175cb86f 100644 --- a/arch/arm/mach-imx/cpu.c +++ b/arch/arm/mach-imx/cpu.c @@ -102,12 +102,8 @@ const char *get_imx_type(u32 imxtype) return "8MP Dual[3]"; /* Dual-core version of the imx8mp */ case MXC_CPU_IMX8MPL: return "8MP Lite[4]"; /* Quad-core Lite version of the imx8mp */ - case MXC_CPU_IMX8MP7: - return "8MP[7]"; /* Quad-core version of the imx8mp, VPU fused */ case MXC_CPU_IMX8MP6: return "8MP[6]"; /* Quad-core version of the imx8mp, NPU fused */ - case MXC_CPU_IMX8MP5: - return "8MP[5]"; /* Quad-core version of the imx8mp, ISP fused */ case MXC_CPU_IMX8MN: return "8MNano Quad"; /* Quad-core version */ case MXC_CPU_IMX8MND: diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index 8dfc8645fc..9bca5bf972 100644 --- a/arch/arm/mach-imx/imx8m/soc.c +++ b/arch/arm/mach-imx/imx8m/soc.c @@ -343,12 +343,8 @@ static u32 get_cpu_variant_type(u32 type) switch (flag) { case 7: return MXC_CPU_IMX8MPL; - case 6: - return MXC_CPU_IMX8MP5; case 2: return MXC_CPU_IMX8MP6; - case 1: - return MXC_CPU_IMX8MP7; default: break; } @@ -889,16 +885,16 @@ usb_modify_speed: disable_cpu_nodes(blob, 3); #elif defined(CONFIG_IMX8MP) - if (is_imx8mpl() || is_imx8mp7()) + if (is_imx8mpl()) disable_vpu_nodes(blob); - if (is_imx8mpl() || is_imx8mp6() || is_imx8mp5()) + if (is_imx8mpl() || is_imx8mp6()) disable_npu_nodes(blob); - if (is_imx8mpl() || is_imx8mp5()) + if (is_imx8mpl()) disable_isp_nodes(blob); - if (is_imx8mpl() || is_imx8mp7() || is_imx8mp6() || is_imx8mp5()) + if (is_imx8mpl() || is_imx8mp6()) disable_dsp_nodes(blob); if (is_imx8mpd())