From patchwork Tue Oct 3 10:00:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 114683 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp1682921qgn; Tue, 3 Oct 2017 03:00:43 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCASbfAp7T3veZS1skwyclo8T+Dw3LlGxlye+WNSSkKvcGM8seOu4IFqOh3TSLfHmwdisX/ X-Received: by 10.84.240.67 with SMTP id h3mr17330012plt.422.1507024842931; Tue, 03 Oct 2017 03:00:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507024842; cv=none; d=google.com; s=arc-20160816; b=utec5JOHkI8sYwfmRahI/aPc27s3PbFzmLZfBTILw0jgYu0LfPZJcaXxEc9wP+oK3/ j+CO/NJa4LU0tLtaJEZB1umDL3uTYH6OZuTjNf3iTHciV2jfoei8syJrwEG1Dde68HW6 ImKQiPGXysOcmuutT3JC2PlS6Ro9t/TJvD38ZT+w/0paE4uqV5olpDjRBDwmrje/l/DM QUE2fXrJZpN5g2/+UCkfcqY0KU3mabukyx88T2Nb/hITRPYbHWur+JEdZq12ONkGe13Y gKpn7XXUpcGZSkGrfrFojietH8O0rBy0MHL2NcJGVpdIL2Ue9iSR3zl2LL+mrZJYX8/4 cgBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=YptlLgPUGiIJVTv1F1+TeV7H5MlRK83h7e0vXToOwzA=; b=QI/Ejr3++SA0nj/1ZxriDW7m4taYE2LL0oGmrjWRMapf01wW0i0ApqiNhoE+2JX/z0 ZYIzp9QFEKdHmnbsm9WyZHvY6y9sV5Uhs1w8Pm93FywmNLnJK7/PZA35ohq2JxZZ3t8a KLtu91Fa++ALsv4rXHgnbEcsdvfj+zNkTOr8vJHShg4OHG+nt6mNu09VDTeiT1Bhy/2+ QDm6amj+BCo1/TyhD1EIIe44OGKqofkSsjwzk1xVWg2e4HKXAuUVLTHaLoa6vcPfDb1j ciMm7wePUmvoBWNAZ7xMSIUJHJyih70whSBjHD/AdmSdwAJvKglt+B8zS14luSgykRkY DR3g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r6si10187028pls.298.2017.10.03.03.00.42; Tue, 03 Oct 2017 03:00:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-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-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751673AbdJCKAl (ORCPT + 4 others); Tue, 3 Oct 2017 06:00:41 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:44533 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751515AbdJCKAe (ORCPT ); Tue, 3 Oct 2017 06:00:34 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20171003100032euoutp025a9361c39c57c9ff6fd81f6061db7cfd~qBxnE1FOJ0637406374euoutp02n; Tue, 3 Oct 2017 10:00:32 +0000 (GMT) Received: from eusmges1.samsung.com (unknown [203.254.199.239]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20171003100031eucas1p2fce3907de2a4260fde29b63c71c2f40b~qBxmaK75k2117121171eucas1p29; Tue, 3 Oct 2017 10:00:31 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1.samsung.com (EUCPMTA) with SMTP id A6.B2.12576.FBF53D95; Tue, 3 Oct 2017 11:00:31 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20171003100031eucas1p145edaae6b857c194139d594ebdc9447e~qBxlrCm5q3238832388eucas1p1Z; Tue, 3 Oct 2017 10:00:31 +0000 (GMT) X-AuditID: cbfec7ef-f79ee6d000003120-4b-59d35fbf7ffa Received: from eusync2.samsung.com ( [203.254.199.212]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 30.64.20118.FBF53D95; Tue, 3 Oct 2017 11:00:31 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OX8005VZRSOD560@eusync2.samsung.com>; Tue, 03 Oct 2017 11:00:31 +0100 (BST) From: Marek Szyprowski To: linux-clk@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Chanwoo Choi , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz Subject: [PATCH 6/9] clk: samsung: Rework clkdev alias handling in Exynos5440 driver Date: Tue, 03 Oct 2017 12:00:13 +0200 Message-id: <20171003100016.32029-7-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.14.2 In-reply-to: <20171003100016.32029-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrMIsWRmVeSWpSXmKPExsWy7djP87r74y9HGsyfoWKxccZ6VovrX56z Wpw/v4Hd4mPPPVaLGef3MVmsPXKX3eLwm3ZWB3aPTas62Tz6tqxi9Pi8SS6AOYr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IDangJ3E4o/Lwc4QAqppnL+KeQIj7wJGhlWM IqmlxbnpucVGesWJucWleel6yfm5mxiBIbTt2M8tOxi73gUfYhTgYFTi4d3hcSlSiDWxrLgy 9xCjBAezkgjvNK/LkUK8KYmVValF+fFFpTmpxYcYpTlYlMR5e/esjhQSSE8sSc1OTS1ILYLJ MnFwSjUwZpzjzdFRndVbGbfNQvrwoZ+yiz44b5V+lnSm+24U4/2YpDdXDKZ3/I4VuZwYs03v 2OObst2ciypqLS/x+bmk3g/ZFv5GvGEevy3zDjefhaeqfl6cWnls1u9zdznXW2nlyj2M5l54 +bt5xY9D21Nm/Aw4b+SYEBbi/qw81y46+d2jVQZlJtLuSizFGYmGWsxFxYkA39wPfx0CAAA= X-CMS-MailID: 20171003100031eucas1p145edaae6b857c194139d594ebdc9447e X-Msg-Generator: CA X-Sender-IP: 182.198.249.180 X-Local-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1B?= =?utf-8?b?7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1BSam?= =?utf-8?q?sung_Electronics=1BSenior_Software_Engineer?= X-Sender-Code: =?utf-8?q?C10=1BEHQ=1BC10CD02CD027392?= CMS-TYPE: 201P X-CMS-RootMailID: 20171003100031eucas1p145edaae6b857c194139d594ebdc9447e X-RootMTR: 20171003100031eucas1p145edaae6b857c194139d594ebdc9447e References: <20171003100016.32029-1-m.szyprowski@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Exynos5440 still uses old, non-dt CPUfreq driver, which requires clkdev aliases to get access to proper clocks. Create those aliases using samsung_clk_register_alias() function instead of using *_A clock macros, which will be removed soon. Signed-off-by: Marek Szyprowski --- drivers/clk/samsung/clk-exynos5440.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) -- 2.14.2 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Chanwoo Choi diff --git a/drivers/clk/samsung/clk-exynos5440.c b/drivers/clk/samsung/clk-exynos5440.c index a80f3ef20801..b08bd54c5e76 100644 --- a/drivers/clk/samsung/clk-exynos5440.c +++ b/drivers/clk/samsung/clk-exynos5440.c @@ -53,8 +53,7 @@ static const struct samsung_fixed_factor_clock exynos5440_fixed_factor_clks[] __ /* mux clocks */ static const struct samsung_mux_clock exynos5440_mux_clks[] __initconst = { MUX(0, "mout_spi", mout_spi_p, MISC_DOUT1, 5, 1), - MUX_A(CLK_ARM_CLK, "arm_clk", mout_armclk_p, - CPU_CLK_STATUS, 0, 1, "armclk"), + MUX(CLK_ARM_CLK, "arm_clk", mout_armclk_p, CPU_CLK_STATUS, 0, 1), }; /* divider clocks */ @@ -117,6 +116,13 @@ static const struct samsung_pll_clock exynos5440_plls[] __initconst = { PLL(pll_2550x, CLK_CPLLB, "cpllb", "xtal", 0, 0x50, NULL), }; +/* + * Clock aliases for legacy clkdev look-up. + */ +static const struct samsung_clock_alias exynos5440_aliases[] __initconst = { + ALIAS(CLK_ARM_CLK, NULL, "armclk"), +}; + /* register exynos5440 clocks */ static void __init exynos5440_clk_init(struct device_node *np) { @@ -147,6 +153,8 @@ static void __init exynos5440_clk_init(struct device_node *np) ARRAY_SIZE(exynos5440_div_clks)); samsung_clk_register_gate(ctx, exynos5440_gate_clks, ARRAY_SIZE(exynos5440_gate_clks)); + samsung_clk_register_alias(ctx, exynos5440_aliases, + ARRAY_SIZE(exynos5440_aliases)); samsung_clk_of_add_provider(np, ctx);