From patchwork Tue Jan 22 09:02:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamil Konieczny X-Patchwork-Id: 10775115 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1E938139A for ; Tue, 22 Jan 2019 09:03:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0EA7F2A6AB for ; Tue, 22 Jan 2019 09:03:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 034412A6D5; Tue, 22 Jan 2019 09:03:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9336A2A6C7 for ; Tue, 22 Jan 2019 09:03:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727622AbfAVJDB (ORCPT ); Tue, 22 Jan 2019 04:03:01 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:47023 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727641AbfAVJCz (ORCPT ); Tue, 22 Jan 2019 04:02:55 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190122090253euoutp01959a13327d42bf7c1ac5afeb481efb38~8IDKw_3Er2187721877euoutp01V for ; Tue, 22 Jan 2019 09:02:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190122090253euoutp01959a13327d42bf7c1ac5afeb481efb38~8IDKw_3Er2187721877euoutp01V DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1548147774; bh=Q/4f3YtlujODsfOS+QnEIqs7vj836/eeMsIngMZkX1U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lK+xZFFXNjnQStJC/3L/fmlDI3YHhvjItko0UNOAEwN9bjICYS2xs90H5XG3DGZUw Mp+82K8LI1yRnuYPUO8DpGO90eKLKTnZ2qDDPYeEIcqVMc8h+KZIrI/DM1i8XnXaO0 cAo+nA1oG28iFtkbhD+NXoePmm2lJ0AbkkdT6svY= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190122090253eucas1p27c9be6de97a0a1ee4b8ed944678cbaad~8IDJ82nuR2904029040eucas1p2e; Tue, 22 Jan 2019 09:02:53 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 65.ED.04294.C3CD64C5; Tue, 22 Jan 2019 09:02:52 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190122090252eucas1p2dee91ee12355eca7f79f29f945f0346d~8IDJOaAOw1350713507eucas1p2T; Tue, 22 Jan 2019 09:02:52 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190122090252eusmtrp1b52380bf1136b25cbb38e913215fedb1~8IDI-U-g92574925749eusmtrp1g; Tue, 22 Jan 2019 09:02:52 +0000 (GMT) X-AuditID: cbfec7f4-c77a99c0000010c6-60-5c46dc3c16b2 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id DF.E2.04284.B3CD64C5; Tue, 22 Jan 2019 09:02:52 +0000 (GMT) Received: from AMDC3218.DIGITAL.local (unknown [106.120.51.18]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190122090251eusmtip19fe2a3964cc9720884d063daa9d556d5~8IDIYsknD2863128631eusmtip1v; Tue, 22 Jan 2019 09:02:51 +0000 (GMT) From: Kamil Konieczny To: k.konieczny@partner.samsung.com, linux-samsung-soc@vger.kernel.org Cc: Chanwoo Choi , Rob Herring , Mark Rutland , Kukjin Kim , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sylwester Nawrocki , Bartlomiej Zolnierkiewicz , Marek Szyprowski Subject: [PATCH v5 5/5] clk: samsung: exynos5433: add imem clocks Date: Tue, 22 Jan 2019 10:02:32 +0100 Message-Id: <20190122090232.29194-6-k.konieczny@partner.samsung.com> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190122090232.29194-1-k.konieczny@partner.samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrAKsWRmVeSWpSXmKPExsWy7djP87o2d9xiDFY9NbHYOGM9q8X1L89Z LeYfOcdq0bfvP6NF/+PXzBbnz29gt9j0+BqrxeVdc9gsZpzfx2Sx9shddoul1y8yWbTuPcJu cfhNO6sDr8eaeWsYPTat6mTz2Lyk3uPguz1MHn1bVjF6fN4kF8AWxWWTkpqTWZZapG+XwJXx 5/Zq5oKX/BVL3z1hbmDcwNvFyMkhIWAi8bX5MHsXIxeHkMAKRonVz5qhnC+MEk9O3GWFcD4z SnzefZQJpqXxWxcjiC0ksJxRYs3LaAgbqGP22gQQm03AXOLR9jNg9SICbhJ9k2ezgQxiFljP LNFxeitYQljAUWLl3nfMIDaLgKrEo/33wWxeAReJebM3s0Msk5eYtroLrJ5TwFVi1qsdbBA1 ghInZz5hAbGZgWqat85mBlkgIbCPXeLbqm9sEM0uEmfXbIWyhSVeHd8CN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ecn7uJkZgZG079nPzDsZLG4MPMQpwMCrx8HKcc40RYk0s K67MPcQowcGsJMLretEtRog3JbGyKrUoP76oNCe1+BCjKdATE5mlRJPzgVGfVxJvaGpobmFp aG5sbmxmoSTOe96gMkpIID2xJDU7NbUgtQimj4mDU6qB0fbDnckszjMaWk3iz0QGtUvkZPtJ dPq06ZZ+PJZpaMxWYLftoXLcst0ee14f2e2sl5v1UHaPbap2aAzDf7/D7fe2GkwQffyXbyb3 9h9nPS5L6LWaFa/86+F8JLKwuKzIb3bQBxsVw5VlnQlz106bvWv5fo+NE+WC50Wz+grWXpiR I7bpsm6PEktxRqKhFnNRcSIA6M0mUsICAAA= X-CMS-MailID: 20190122090252eucas1p2dee91ee12355eca7f79f29f945f0346d X-Msg-Generator: CA X-RootMTR: 20190122090252eucas1p2dee91ee12355eca7f79f29f945f0346d X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190122090252eucas1p2dee91ee12355eca7f79f29f945f0346d References: <20190122090232.29194-1-k.konieczny@partner.samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add imem clocks for exynos5433. This will enable to use crypto Slim Security SubSystem (in short SlimSSS) IP block. Acked-by: Chanwoo Choi Signed-off-by: Kamil Konieczny --- drivers/clk/samsung/clk-exynos5433.c | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/drivers/clk/samsung/clk-exynos5433.c b/drivers/clk/samsung/clk-exynos5433.c index 24c3360db65b..dae1c96de933 100644 --- a/drivers/clk/samsung/clk-exynos5433.c +++ b/drivers/clk/samsung/clk-exynos5433.c @@ -5467,6 +5467,35 @@ static const struct samsung_cmu_info cam1_cmu_info __initconst = { .clk_name = "aclk_cam1_400", }; +/* + * Register offset definitions for CMU_IMEM + */ +#define ENABLE_ACLK_IMEM_SLIMSSS 0x080c +#define ENABLE_PCLK_IMEM_SLIMSSS 0x0908 + +static const unsigned long imem_clk_regs[] __initconst = { + ENABLE_ACLK_IMEM_SLIMSSS, + ENABLE_PCLK_IMEM_SLIMSSS, +}; + +static const struct samsung_gate_clock imem_gate_clks[] __initconst = { + /* ENABLE_ACLK_IMEM_SLIMSSS */ + GATE(CLK_ACLK_SLIMSSS, "aclk_slimsss", "aclk_imem_sssx_266", + ENABLE_ACLK_IMEM_SLIMSSS, 0, CLK_IGNORE_UNUSED, 0), + + /* ENABLE_PCLK_IMEM_SLIMSSS */ + GATE(CLK_PCLK_SLIMSSS, "pclk_slimsss", "aclk_imem_200", + ENABLE_PCLK_IMEM_SLIMSSS, 0, CLK_IGNORE_UNUSED, 0), +}; + +static const struct samsung_cmu_info imem_cmu_info __initconst = { + .gate_clks = imem_gate_clks, + .nr_gate_clks = ARRAY_SIZE(imem_gate_clks), + .nr_clk_ids = IMEM_NR_CLK, + .clk_regs = imem_clk_regs, + .nr_clk_regs = ARRAY_SIZE(imem_clk_regs), + .clk_name = "aclk_imem_200", +}; struct exynos5433_cmu_data { struct samsung_clk_reg_dump *clk_save; @@ -5654,6 +5683,9 @@ static const struct of_device_id exynos5433_cmu_of_match[] = { }, { .compatible = "samsung,exynos5433-cmu-mscl", .data = &mscl_cmu_info, + }, { + .compatible = "samsung,exynos5433-cmu-imem", + .data = &imem_cmu_info, }, { }, };