Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp659490ybp; Fri, 11 Oct 2019 02:12:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqzl9OXHkuSvv+heFL+ZO+Pfb3DqGGK7LwlNMWM3/2pUYF7dPVxoRPbT/OmFMuET0yxPqtvR X-Received: by 2002:a50:cc43:: with SMTP id n3mr12679209edi.287.1570785168204; Fri, 11 Oct 2019 02:12:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570785168; cv=none; d=google.com; s=arc-20160816; b=od3v+w8Onb2bhA+Pk4bWfKTJM7uLniJqJb6dxq/Sj530vgYRAL41sv9q/qMwoxqw24 wRLgwa0Q/5SyGQIjIDQsoG+Dxvfq4ihw9Ub8kvoqc7h0Xjd32UXi4hrZv2h4mGQrJegj 3tr3OrqgwDpfCKuB0wLYXDLvzWBd9ztGHtNeZwK6yxjuOg5a4p9kNwuBOIDp1EI0UED2 VWt/ZlnoROKYrODQzhf3SdNa4D902SNyAg/AR+Qey391S+0HfYa+0hlASiWNAeEF6r/x e6fE0nUwpf43UCu9xGMz/YEVMg8RNIDUzforOhdJBVLi9PDncdHkaWkWbD2fY31SMD/b AjyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=v1Jv+FkNqASyhv15KyC8yq+G5UNvJd6K5DGwyBReEYE=; b=W8FD07Uov2S6ts8YgnewcfP8+Pc5RJTjWmRPdZ9tFxDkl3jUbd904ZduaBs3oVx6QU FtguTvRJJk/1Q6J+gJAawhJkPc7S2Fs+uxsI/A+w6JW3qsLKcgr6I4Aros0OmBdC1R/v uN8wReKFJWELtKs6AnnRPOjDXU9hs0JP84kT7Zjt7W3dsLhRjLXzCMB2oqSC7uDQebGQ fgR8PeHsXe1kO7DYi1Z0vhRsrmNzKP9GKLaK5Kdx7ACHMAuDosvJ4cIxYFcwykri3HSg h1eIs0hq/Jgoge3fnL0UIkdNVLmsDWSTNDJsAswrqqx554YbQOMekL9X8ms05wh/X/0A CPsg== 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 g32si5540950eda.330.2019.10.11.02.12.24; Fri, 11 Oct 2019 02:12:48 -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 S1727462AbfJKJLc (ORCPT + 99 others); Fri, 11 Oct 2019 05:11:32 -0400 Received: from inva021.nxp.com ([92.121.34.21]:35650 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726585AbfJKJLc (ORCPT ); Fri, 11 Oct 2019 05:11:32 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id E4D7020050C; Fri, 11 Oct 2019 11:11:29 +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 5F190200509; Fri, 11 Oct 2019 11:11:24 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 6715F402D2; Fri, 11 Oct 2019 17:11:17 +0800 (SGT) From: Anson Huang To: mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, aisheng.dong@nxp.com, gustavo@embeddedor.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH] clk: imx7ulp: Correct DDR clock mux options Date: Fri, 11 Oct 2019 17:09:00 +0800 Message-Id: <1570784940-5965-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 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 In the latest reference manual Rev.0,06/2019, the DDR clock mux is extended to 2 bits, and the clock options are also changed, correct them accordingly. Fixes: b1260067ac3d ("clk: imx: add imx7ulp clk driver") Signed-off-by: Anson Huang --- This patch should be based on https://patchwork.kernel.org/patch/11185029/ --- drivers/clk/imx/clk-imx7ulp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx7ulp.c b/drivers/clk/imx/clk-imx7ulp.c index b2c5866..c4b78a2 100644 --- a/drivers/clk/imx/clk-imx7ulp.c +++ b/drivers/clk/imx/clk-imx7ulp.c @@ -25,7 +25,7 @@ static const char * const spll_sels[] = { "spll", "spll_pfd_sel", }; static const char * const apll_pfd_sels[] = { "apll_pfd0", "apll_pfd1", "apll_pfd2", "apll_pfd3", }; static const char * const apll_sels[] = { "apll", "apll_pfd_sel", }; static const char * const scs_sels[] = { "dummy", "sosc", "sirc", "firc", "dummy", "apll_sel", "spll_sel", "dummy", }; -static const char * const ddr_sels[] = { "apll_pfd_sel", "upll", }; +static const char * const ddr_sels[] = { "apll_pfd_sel", "dummy", "dummy", "dummy", }; static const char * const nic_sels[] = { "firc", "ddr_clk", }; static const char * const periph_plat_sels[] = { "dummy", "nic1_bus_clk", "nic1_clk", "ddr_clk", "apll_pfd2", "apll_pfd1", "apll_pfd0", "upll", }; static const char * const periph_bus_sels[] = { "dummy", "sosc_bus_clk", "mpll", "firc_bus_clk", "rosc", "nic1_bus_clk", "nic1_clk", "spll_bus_clk", }; @@ -118,7 +118,7 @@ static void __init imx7ulp_clk_scg1_init(struct device_node *np) clks[IMX7ULP_CLK_SYS_SEL] = imx_clk_hw_mux2("scs_sel", base + 0x14, 24, 4, scs_sels, ARRAY_SIZE(scs_sels)); clks[IMX7ULP_CLK_HSRUN_SYS_SEL] = imx_clk_hw_mux2("hsrun_scs_sel", base + 0x1c, 24, 4, scs_sels, ARRAY_SIZE(scs_sels)); clks[IMX7ULP_CLK_NIC_SEL] = imx_clk_hw_mux2("nic_sel", base + 0x40, 28, 1, nic_sels, ARRAY_SIZE(nic_sels)); - clks[IMX7ULP_CLK_DDR_SEL] = imx_clk_hw_mux_flags("ddr_sel", base + 0x30, 24, 1, ddr_sels, ARRAY_SIZE(ddr_sels), CLK_SET_RATE_PARENT | CLK_OPS_PARENT_ENABLE); + clks[IMX7ULP_CLK_DDR_SEL] = imx_clk_hw_mux_flags("ddr_sel", base + 0x30, 24, 2, ddr_sels, ARRAY_SIZE(ddr_sels), CLK_SET_RATE_PARENT | CLK_OPS_PARENT_ENABLE); clks[IMX7ULP_CLK_CORE_DIV] = imx_clk_hw_divider_flags("divcore", "scs_sel", base + 0x14, 16, 4, CLK_SET_RATE_PARENT); clks[IMX7ULP_CLK_HSRUN_CORE_DIV] = imx_clk_hw_divider_flags("hsrun_divcore", "hsrun_scs_sel", base + 0x1c, 16, 4, CLK_SET_RATE_PARENT); -- 2.7.4