Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp9462231ybl; Wed, 25 Dec 2019 22:57:17 -0800 (PST) X-Google-Smtp-Source: APXvYqwdmfjVfOhW9H3dO4pL6JfWIUhFd9HBmNYp9EDnqsuotrrQnYYBtGH7eoWU2umuy/YEIFWJ X-Received: by 2002:a05:6830:1116:: with SMTP id w22mr49914732otq.216.1577343437802; Wed, 25 Dec 2019 22:57:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577343437; cv=none; d=google.com; s=arc-20160816; b=rzce5UigEejMWPr+d2otGbaH8qhuyGNS6FxQaQKY03dBZ3rFgLHG8HEfqNV9yTl/GB qDOR4YyPIADnJlXXe63SGY+UknZubQby5wqXEQMBKVcR7BCAtYI7kuVIzT30VETxSP8I ih20uPGGwJzFkKxLbNrCVZz2LGZzCapg3vStKaVBHTUHzWEgUWDbcRPjIVKCVq7O0iaa 9igDR1m5OfGZ+zYbh40DZutmJI6ST00liclEtN81McFfieXvLuPQQcoylsft56BDEONZ FHeNAS0evM3v1Mg+3aOqxYpj8M24Zf6BWEj6bg8nv4NGff/0RWiUHZCs8xrH61RCw5Zt OdHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=rfjtILOeiE6K3NMTJinSR+sBvwPja1Wgh6+X3QxsgGY=; b=bXSxgvRNeedn/coB3+qHJXkmmzRBslC6hUGddCibssYcWk9Lsv2mTGZsBlUjHm5z6D xDs2EQqY5PS2mSVKYINmTIL5J/xymhGn70u6yvsVb8BFBk4ZXH5HgGkjatXcCgcC9Oce Sjbfy2CLEKBwdMqFxtrJVxGc6uvKZHQZLD8WDrEmrAqicNUyNk+cddkUpDop5a4Vrxfy lL0vLlEhNx++DSHuiTEYAd0JdHbf+jq2BbzS/mfPgMJUu7L6j62den5cg6GaFvHQ3fN/ BPsuV9uPOCck0lc4MBarezzZeWosQumy9BOn/fbKh8wRYZJEcoBJT8yDeQtyvF9K6/QA CJsg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h24si9956886oie.151.2019.12.25.22.57.06; Wed, 25 Dec 2019 22:57:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726472AbfLZG4F (ORCPT + 99 others); Thu, 26 Dec 2019 01:56:05 -0500 Received: from inva020.nxp.com ([92.121.34.13]:59632 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726236AbfLZG4F (ORCPT ); Thu, 26 Dec 2019 01:56:05 -0500 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 78D541A163E; Thu, 26 Dec 2019 07:56:03 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 8E5F71A0BFA; Thu, 26 Dec 2019 07:55:58 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 48DE7402B3; Thu, 26 Dec 2019 14:55:52 +0800 (SGT) From: Anson Huang To: rjw@rjwysocki.net, viresh.kumar@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Linux-imx@nxp.com Subject: [PATCH 2/2] cpufreq: imx-cpufreq-dt: Add i.MX8MP support Date: Thu, 26 Dec 2019 14:52:47 +0800 Message-Id: <1577343167-16376-2-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1577343167-16376-1-git-send-email-Anson.Huang@nxp.com> References: <1577343167-16376-1-git-send-email-Anson.Huang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add i.MX8MP cpufreq DT support for speed grading and market segment check. Signed-off-by: Anson Huang --- drivers/cpufreq/imx-cpufreq-dt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/imx-cpufreq-dt.c b/drivers/cpufreq/imx-cpufreq-dt.c index 85a6efd..912e93d 100644 --- a/drivers/cpufreq/imx-cpufreq-dt.c +++ b/drivers/cpufreq/imx-cpufreq-dt.c @@ -35,7 +35,7 @@ static int imx_cpufreq_dt_probe(struct platform_device *pdev) if (ret) return ret; - if (of_machine_is_compatible("fsl,imx8mn")) + if (of_machine_is_compatible("fsl,imx8mn") || of_machine_is_compatible("fsl,imx8mp")) speed_grade = (cell_value & IMX8MN_OCOTP_CFG3_SPEED_GRADE_MASK) >> OCOTP_CFG3_SPEED_GRADE_SHIFT; else @@ -54,7 +54,8 @@ static int imx_cpufreq_dt_probe(struct platform_device *pdev) if (of_machine_is_compatible("fsl,imx8mm") || of_machine_is_compatible("fsl,imx8mq")) speed_grade = 1; - if (of_machine_is_compatible("fsl,imx8mn")) + if (of_machine_is_compatible("fsl,imx8mn") || + of_machine_is_compatible("fsl,imx8mp")) speed_grade = 0xb; } -- 2.7.4