From patchwork Tue Oct 3 10:00:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 114676 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp1682772qgn; Tue, 3 Oct 2017 03:00:36 -0700 (PDT) X-Google-Smtp-Source: AOwi7QD/lxCkQqxcU5sriLU1TTdm0m+6N/7fQTb2yFt+cEq/J7UBt4IH1K8FCTS9kwIxw0MmhlfP X-Received: by 10.99.120.198 with SMTP id t189mr8574855pgc.153.1507024836235; Tue, 03 Oct 2017 03:00:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507024836; cv=none; d=google.com; s=arc-20160816; b=kLMzO+o5Fp5uUyMu+XEgWgjheh0JK13spr5RmR633tWSOqGBJRaNOTvAhKYC1qiqLO WgwDYMZ6tRSrr9OzYnN24wvtFKkPqizlZZkxJD8jHuJnAp7yu8doNiDEsostwNCLE2te ScuupBpS6heDW4kQjMbjRRO3N1xs56AQrV/I50S1d/ouRD6Ok53Kf9jJdPWnOac7vta4 RCHPhPl7FoJU+Dm1hsoYLQbExbm6IJ4K1tJG5Qwt9bfoZwxmsM2WuvNtYsxyt3qMvDhT 7WPBwuluL6eIFVI9g7FtF9jDuKDa5l+r/ezEGh2gLuwhBomGFhsOJdP1lLlOwHeFdhvx BX/A== 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=ouKhVyH8ubv42z8K7j4sfvahc394XYjw49mbJgWOSEQ=; b=OBFnrXpiQeXK7S09bmKGm0TEMOUK5mPL3KtftDnov0TCs+01+4f/1ptE0dymBdmQUd Llu28r6R39aHaBSpMein68Q6U5VgmTkiE8vnAe+Ep/VVpPYVy/NAbigIEE1OaTYSc4pq p7Q20yhHss65F7OuVfTRTN5ZL8sGuJrf8tHvX8tc2TaivLivc1eHaJaUSpkFODjdrnhC RTkx6g6UIzZrGQVEbmVx3mkR9B5HSGJvCqurIiJeygUnNdKfgUAjOFyarLOuQpXYzM6q 50u+v8FY4MHukeEjWn41I+Cm+DzM74stNAz3GPrqTdEB97Dvth3p3zQSMJLu2OmE0Kuu nJ2Q== 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.36; Tue, 03 Oct 2017 03:00:36 -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 S1751531AbdJCKAe (ORCPT + 4 others); Tue, 3 Oct 2017 06:00:34 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:51419 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751396AbdJCKAc (ORCPT ); Tue, 3 Oct 2017 06:00:32 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20171003100030euoutp01fc85b735e0986682585c1020a81116d2~qBxlNdjBO2905729057euoutp01J; Tue, 3 Oct 2017 10:00:30 +0000 (GMT) Received: from eusmges5.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20171003100029eucas1p13957e05912c7c2ef70dbbeca7c24c846~qBxkjvKja2729927299eucas1p1M; Tue, 3 Oct 2017 10:00:29 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges5.samsung.com (EUCPMTA) with SMTP id 92.27.12743.DBF53D95; Tue, 3 Oct 2017 11:00:29 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20171003100029eucas1p2c706e911f316a58f35be7c443824f07c~qBxj5hayE1680016800eucas1p29; Tue, 3 Oct 2017 10:00:29 +0000 (GMT) X-AuditID: cbfec7f5-f79d06d0000031c7-36-59d35fbd2da8 Received: from eusync2.samsung.com ( [203.254.199.212]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 1F.91.18832.DBF53D95; Tue, 3 Oct 2017 11:00:29 +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:29 +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 1/9] clk: samsung: Remove support for obsolete Exynos4212 CPU clock Date: Tue, 03 Oct 2017 12:00:08 +0200 Message-id: <20171003100016.32029-2-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+NgFtrMIsWRmVeSWpSXmKPExsWy7djP87p74y9HGnS1KFpsnLGe1eL6l+es FufPb2C3+Nhzj9Vixvl9TBZrj9xltzj8pp3Vgd1j06pONo++LasYPT5vkgtgjuKySUnNySxL L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whoJrG+auYJzDyLmBkWMUo klpanJueW2yoV5yYW1yal66XnJ+7iREYQNuO/dy8g/HSxuBDjAIcjEo8vDs8LkUKsSaWFVfm HmKU4GBWEuGd5nU5Uog3JbGyKrUoP76oNCe1+BCjNAeLkjhv757VkUIC6YklqdmpqQWpRTBZ Jg5OqQZG1ZimIL6fZ+pDb4ZNeiRjZXHz4/P8pnzvVhNN67nb69evzyqp9b73eK+HsZ/vlqny E2a9uVQscexDj613/gTFBIOgUx5tD/5tdBb9HLdnp9Kb+xzXlot9lTh1dDFzfk7Uxh67Hykf pj07tqu/RillV4TV/YeJ7u8VK9rfSpV2Ws1dK3Y7Q61GiaU4I9FQi7moOBEA9iZGERwCAAA= X-CMS-MailID: 20171003100029eucas1p2c706e911f316a58f35be7c443824f07c X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 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: 20171003100029eucas1p2c706e911f316a58f35be7c443824f07c X-RootMTR: 20171003100029eucas1p2c706e911f316a58f35be7c443824f07c 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 Support for Exynos 4212 SoC has been removed by commit bca9085e0ae9 ("ARM: dts: exynos: remove Exynos4212 support (dead code)"), so there is no need to keep dead code. Signed-off-by: Marek Szyprowski --- drivers/clk/samsung/clk-exynos4.c | 33 ++++----------------------------- 1 file changed, 4 insertions(+), 29 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 Acked-by: Krzysztof Kozlowski diff --git a/drivers/clk/samsung/clk-exynos4.c b/drivers/clk/samsung/clk-exynos4.c index e40b77583c47..9a51ce9a658f 100644 --- a/drivers/clk/samsung/clk-exynos4.c +++ b/drivers/clk/samsung/clk-exynos4.c @@ -1401,24 +1401,6 @@ static const struct exynos_cpuclk_cfg_data e4210_armclk_d[] __initconst = { { 0 }, }; -static const struct exynos_cpuclk_cfg_data e4212_armclk_d[] __initconst = { - { 1500000, E4210_CPU_DIV0(2, 1, 6, 0, 7, 3), E4210_CPU_DIV1(2, 6), }, - { 1400000, E4210_CPU_DIV0(2, 1, 6, 0, 7, 3), E4210_CPU_DIV1(2, 6), }, - { 1300000, E4210_CPU_DIV0(2, 1, 5, 0, 7, 3), E4210_CPU_DIV1(2, 5), }, - { 1200000, E4210_CPU_DIV0(2, 1, 5, 0, 7, 3), E4210_CPU_DIV1(2, 5), }, - { 1100000, E4210_CPU_DIV0(2, 1, 4, 0, 6, 3), E4210_CPU_DIV1(2, 4), }, - { 1000000, E4210_CPU_DIV0(1, 1, 4, 0, 5, 2), E4210_CPU_DIV1(2, 4), }, - { 900000, E4210_CPU_DIV0(1, 1, 3, 0, 5, 2), E4210_CPU_DIV1(2, 3), }, - { 800000, E4210_CPU_DIV0(1, 1, 3, 0, 5, 2), E4210_CPU_DIV1(2, 3), }, - { 700000, E4210_CPU_DIV0(1, 1, 3, 0, 4, 2), E4210_CPU_DIV1(2, 3), }, - { 600000, E4210_CPU_DIV0(1, 1, 3, 0, 4, 2), E4210_CPU_DIV1(2, 3), }, - { 500000, E4210_CPU_DIV0(1, 1, 3, 0, 4, 2), E4210_CPU_DIV1(2, 3), }, - { 400000, E4210_CPU_DIV0(1, 1, 3, 0, 4, 2), E4210_CPU_DIV1(2, 3), }, - { 300000, E4210_CPU_DIV0(1, 1, 2, 0, 4, 2), E4210_CPU_DIV1(2, 3), }, - { 200000, E4210_CPU_DIV0(1, 1, 1, 0, 3, 1), E4210_CPU_DIV1(2, 3), }, - { 0 }, -}; - #define E4412_CPU_DIV1(cores, hpm, copy) \ (((cores) << 8) | ((hpm) << 4) | ((copy) << 0)) @@ -1533,17 +1515,10 @@ static void __init exynos4_clk_init(struct device_node *np, samsung_clk_register_fixed_factor(ctx, exynos4x12_fixed_factor_clks, ARRAY_SIZE(exynos4x12_fixed_factor_clks)); - if (of_machine_is_compatible("samsung,exynos4412")) { - exynos_register_cpu_clock(ctx, CLK_ARM_CLK, "armclk", - mout_core_p4x12[0], mout_core_p4x12[1], 0x14200, - e4412_armclk_d, ARRAY_SIZE(e4412_armclk_d), - CLK_CPU_NEEDS_DEBUG_ALT_DIV | CLK_CPU_HAS_DIV1); - } else { - exynos_register_cpu_clock(ctx, CLK_ARM_CLK, "armclk", - mout_core_p4x12[0], mout_core_p4x12[1], 0x14200, - e4212_armclk_d, ARRAY_SIZE(e4212_armclk_d), - CLK_CPU_NEEDS_DEBUG_ALT_DIV | CLK_CPU_HAS_DIV1); - } + exynos_register_cpu_clock(ctx, CLK_ARM_CLK, "armclk", + mout_core_p4x12[0], mout_core_p4x12[1], 0x14200, + e4412_armclk_d, ARRAY_SIZE(e4412_armclk_d), + CLK_CPU_NEEDS_DEBUG_ALT_DIV | CLK_CPU_HAS_DIV1); } samsung_clk_register_alias(ctx, exynos4_aliases,