Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2224290yba; Mon, 22 Apr 2019 02:49:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQIRRZA8UNT/g1uaztyNufpNY3mwFVFj++ff41tAbqYF9TOJ/KvPBZLpahD2CyLw6t6iGm X-Received: by 2002:a63:7f0b:: with SMTP id a11mr16952888pgd.234.1555926589138; Mon, 22 Apr 2019 02:49:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555926589; cv=none; d=google.com; s=arc-20160816; b=Te+Uo9p5zSc0oP5iWBYFtVGcXyP3Sz8KDLI+MJGae4mhHPtrRScuV0/oTAGT1PatDW ESJ4ErqtjYcByJuSIO7Kofv94orjWYgvG0JCsPz28r7+QG/g2ZGxZeUP5H1zxz2tnQQG 6tzn1xLULo5J6+0W89LTb+xiZvi0DegcOoMIiVuT3nhtmR/RO6xWJxXlDxrUJV/E0A+f lhSIdQRw+gwESfphbkBcIBbYfypb7OuCACz/VBMktGgQobXzEThd1Ryhd+gW3DahmPvU qCmz/zSUIIj2F1hwOYuv9nsnwZfpyawA2cNzzuTL3zvrNoLMq3tdukTCC2QSbI8nFGFF JuMw== 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=D7BQuJjDhW58N8A/Ykwxz/LrGksXtaKy5tATIjcfprw=; b=Q1S9Mm3vV93dpsEmEzn/2mHAq5P3c4oFHRXkiPOy2CacFYkRXoNa5BPxkgiyMqYsJp 4k+I+NZ7SJTo4aV0ulXo81V3XN/j6usxenVT9euC9qGJa0MPx+ZtRdbQQG6BmDjUtC/u ghRkGZcSyAXshDTF61EmqUQMMzQlE7sCf12Vt3gFtioMoEuQeLLoZlSEtn9pgL3ECjQE iip+Jg5IKC2NSk6aDGFTSaC6l2fGeOHutVDGtqm1BQsLDV92ASzvE8pb9wBJSEb3xINC jK/CJxh/GGoUd7XGTmnbAV4jNUy9omqORsKscAc1UdD2tWV0AW37PAmK1Zy6Gv0xPb6/ jRwg== 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 v4si11860209pga.366.2019.04.22.02.49.34; Mon, 22 Apr 2019 02:49:49 -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 S1727241AbfDVJWu (ORCPT + 99 others); Mon, 22 Apr 2019 05:22:50 -0400 Received: from inva021.nxp.com ([92.121.34.21]:34684 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726164AbfDVJWr (ORCPT ); Mon, 22 Apr 2019 05:22:47 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 9B7A4200124; Mon, 22 Apr 2019 11:22:46 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 9DB6920001A; Mon, 22 Apr 2019 11:22:42 +0200 (CEST) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 64D6B402ED; Mon, 22 Apr 2019 17:22:37 +0800 (SGT) From: andy.tang@nxp.com To: mturquette@baylibre.com Cc: sboyd@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Yuantian Tang Subject: [PATCH 2/2] clk: qoriq: add more PLL divider clocks support Date: Mon, 22 Apr 2019 17:15:09 +0800 Message-Id: <20190422091509.3181-2-andy.tang@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20190422091509.3181-1-andy.tang@nxp.com> References: <20190422091509.3181-1-andy.tang@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 From: Yuantian Tang More PLL divider clocks are needed by clock consumer IP. So enlarge the PLL divider array to accommodate more divider clocks. Signed-off-by: Yuantian Tang --- drivers/clk/clk-qoriq.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk-qoriq.c b/drivers/clk/clk-qoriq.c index 1212a9b..5e2b3ac 100644 --- a/drivers/clk/clk-qoriq.c +++ b/drivers/clk/clk-qoriq.c @@ -34,6 +34,7 @@ #define CGA_PLL4 4 /* only on clockgen-1.0, which lacks CGB */ #define CGB_PLL1 4 #define CGB_PLL2 5 +#define MAX_PLL_DIV 16 struct clockgen_pll_div { struct clk *clk; @@ -41,7 +42,7 @@ struct clockgen_pll_div { }; struct clockgen_pll { - struct clockgen_pll_div div[8]; + struct clockgen_pll_div div[MAX_PLL_DIV]; }; #define CLKSEL_VALID 1 @@ -1128,7 +1129,7 @@ static void __init create_one_pll(struct clockgen *cg, int idx) int ret; /* - * For platform PLL, there are 8 divider clocks. + * For platform PLL, there are MAX_PLL_DIV divider clocks. * For core PLL, there are 4 divider clocks at most. */ if (idx != PLATFORM_PLL && i >= 4) -- 1.7.1