Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp993522ybl; Sat, 17 Aug 2019 15:48:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxvyyldmSR0ClhY81CJr2SK1V8+grR5iJgYSeeV1+qto2AWCpJUX8rcohYOVa8HQOLjHxdt X-Received: by 2002:a17:902:7287:: with SMTP id d7mr12326968pll.302.1566082126577; Sat, 17 Aug 2019 15:48:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566082126; cv=none; d=google.com; s=arc-20160816; b=fMixMXsREWX98EN0kOkDf2wstu0BOWsvW+ayIn2QYMp0iXkXSIhedgOT/hFzeQfYzf feQO97S8bQKKmUTHgQYhpx7PiYm4CnPJuePwXlzyGox1Z3O0406fba+dEdZrvPnG9H3D VZWSJesabfc0uuVSIuaEyYAbW1KhD7KdIwVP0C7otQsMGYGzNnBt6V7Fx5xC8uW0bTq5 SCF3CBI4jiu8Opb1wpZtCbGCYvB6beU5qHsOlCVjHyh6qYrVVSFThRgjSk0FOP933YMa rosRUKuoHkvC+vMYrolHVw40eFVNF3II/1mvXikEPoZinrQ8ZkO2ez+uZKSYYwq/2uev Wxlw== 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=TuyFGF1v7lqp3YHdgD7B36l9WKELugfp1FEMRHOhMF8=; b=EtSm1f+hBViahe5vrLXZhKwUbzC4287M3d8ACHWd7DOrsBy5g7zWqyQC9sODRy+lwL xrZ2Cx7rIqtXnIdfmGTtRezK7psPxviGg9p4u5xLeMbnD4kEVXk/V6JLIC8NUbKf5Eyy zGzhiMBAKxPhrNo+hcAKr3n10UQ8whO0/WrPFVauGBVP18Vgyfa4H4J/qu1SQROV9qup ncbCP9tc53bk8qoiKs8ik8Eusw8LQf+nZKbY+wmOs3t3BkYBqLL7DPYRwF+s7scsEJ6b yN0pa9FdzdLqw4rOeRUf17v2ZquiFEmlKcBMeUeddXLG2Ulb509wkSuOSXIGDGm6FL0d Wauw== 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 y34si6956628plb.423.2019.08.17.15.48.22; Sat, 17 Aug 2019 15:48:46 -0700 (PDT) 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 S1726614AbfHQWrH (ORCPT + 99 others); Sat, 17 Aug 2019 18:47:07 -0400 Received: from inva020.nxp.com ([92.121.34.13]:46228 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726591AbfHQWrG (ORCPT ); Sat, 17 Aug 2019 18:47:06 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id B7B131A026D; Sun, 18 Aug 2019 00:47:03 +0200 (CEST) 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 D36DE1A067F; Sun, 18 Aug 2019 00:46:55 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 0F1D140318; Sun, 18 Aug 2019 06:46:45 +0800 (SGT) From: Anson Huang To: robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, mturquette@baylibre.com, sboyd@kernel.org, rjw@rjwysocki.net, viresh.kumar@linaro.org, leonard.crestez@nxp.com, abel.vesa@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH V2 5/6] clk: imx8mn: Improve ARM PLL table to support CPU frequency scaling Date: Sat, 17 Aug 2019 18:28:19 -0400 Message-Id: <1566080900-2539-5-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566080900-2539-1-git-send-email-Anson.Huang@nxp.com> References: <1566080900-2539-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 i.MX8MN supports CPU running at 1.5GHz/1.4GHz/1.2GHz, add missing frequency for ARM PLL table, also add .rate_count assignment which is necessary for searching required PLL rate from the table. Signed-off-by: Anson Huang --- Changes since V1: - Improve commit log, no code change. --- drivers/clk/imx/clk-imx8mn.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers/clk/imx/clk-imx8mn.c index ecd1062..3f1239a 100644 --- a/drivers/clk/imx/clk-imx8mn.c +++ b/drivers/clk/imx/clk-imx8mn.c @@ -42,6 +42,8 @@ enum { static const struct imx_pll14xx_rate_table imx8mn_pll1416x_tbl[] = { PLL_1416X_RATE(1800000000U, 225, 3, 0), PLL_1416X_RATE(1600000000U, 200, 3, 0), + PLL_1416X_RATE(1500000000U, 375, 3, 1), + PLL_1416X_RATE(1400000000U, 350, 3, 1), PLL_1416X_RATE(1200000000U, 300, 3, 1), PLL_1416X_RATE(1000000000U, 250, 3, 1), PLL_1416X_RATE(800000000U, 200, 3, 1), @@ -82,6 +84,7 @@ static struct imx_pll14xx_clk imx8mn_dram_pll = { static struct imx_pll14xx_clk imx8mn_arm_pll = { .type = PLL_1416X, .rate_table = imx8mn_pll1416x_tbl, + .rate_count = ARRAY_SIZE(imx8mn_pll1416x_tbl), }; static struct imx_pll14xx_clk imx8mn_gpu_pll = { -- 2.7.4