Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7153212imu; Tue, 22 Jan 2019 01:04:19 -0800 (PST) X-Google-Smtp-Source: ALg8bN5MOoebyrh8PDM95krtREKClBOTYV2Rf+rxClbSyfFgWtBkIUqD/p8xTaRCDRNyLHfAcvKh X-Received: by 2002:a17:902:20e9:: with SMTP id v38mr32156653plg.250.1548147859907; Tue, 22 Jan 2019 01:04:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548147859; cv=none; d=google.com; s=arc-20160816; b=NTgI6W/5N0HsIKX78inqNdTG+ko9PLex4mH89ufu4/luRTlk5LxYv7JPeMQNMTe/Oj rj09qJ1LCG2dK379BIyYb/VNnAMWBq/H84PHdzZJsnT56CskGLPF9h+9tTGJHS/Dr8sG N1hXmDoSFTunEYi01xiPr5Xm9x9zfpLD1oXYjxGFiNg22h6mnwW+JkdVq5d9kCxJaPjk YkuPr+7b0c1z8hQtMwwi1iNC5dESovbWxvnFCvlBc7DriO8WOQdN5o7nI1hYxkGQ0Mhj J+kCQXg9pX+yJB42Sy5p+HI3XjzxvgvO6Faf/L8ZJongR9y7e6xkWVsNFUfNjkwd8TCy 6G/w== 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 :content-transfer-encoding:mime-version:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=Q/4f3YtlujODsfOS+QnEIqs7vj836/eeMsIngMZkX1U=; b=xUOanWG7An1dWU8/nP+aB45SChb0K8Ckvv+iQwD6aNYwlnMQThVJ9JuSMLFE16QWQk 0CmzuiyPLdN+Eow4cl2A/QospeJZODQJ/PqdLGWR2fbMXTppi9XtIppIpJmcApLhRH27 Vu1aBW+eNCw7WwJ47a4t6W/3TcHn9HiTWE7vgoWpcCeIE/+4vQ/aImV8ebJXIh/Pek7h 3xR3YiUTPFhpGOXLnkqUSMOrGkivQWnE5HoDT5mCSpqJeXHcYPdL5CUF92xqJapjn1Xo NraYWE9UfbR8h/ADfSdea+kmMY/yKGrGWX97boEbmjBI2hMivBtcjj6gtBksaydBCRiN uguw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=lK+xZFFX; 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=pass (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 a19si16343939pgn.102.2019.01.22.01.04.03; Tue, 22 Jan 2019 01:04:19 -0800 (PST) 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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=lK+xZFFX; 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=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727664AbfAVJC4 (ORCPT + 99 others); Tue, 22 Jan 2019 04:02:56 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:51446 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727639AbfAVJCz (ORCPT ); Tue, 22 Jan 2019 04:02:55 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190122090253euoutp022a846ff394b66d2a5bdc2e367117f013~8IDKwphBi0949709497euoutp024 for ; Tue, 22 Jan 2019 09:02:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190122090253euoutp022a846ff394b66d2a5bdc2e367117f013~8IDKwphBi0949709497euoutp024 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 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrAKsWRmVeSWpSXmKPExsWy7djP87o2d9xiDFY9NbHYOGM9q8X1L89Z LeYfOcdq0bfvP6NF/+PXzBbnz29gt9j0+BqrxeVdc9gsZpzfx2Sx9shddoul1y8yWbTuPcJu cfhNO6sDr8eaeWsYPTat6mTz2Lyk3uPguz1MHn1bVjF6fN4kF8AWxWWTkpqTWZZapG+XwJXx 5/Zq5oKX/BVL3z1hbmDcwNvFyMkhIWAi8bX5MHsXIxeHkMAKRonVz5qhnC+MEk9O3GWFcD4z SnzefZQJpqXxWxcjiC0ksJxRYs3LaAgbqGP22gQQm03AXOLR9jNg9SICbhJ9k2ezgQxiFljP LNFxeitYQljAUWLl3nfMIDaLgKrEo/33wWxeAReJebM3s0Msk5eYtroLrJ5TwFVi1qsdbBA1 ghInZz5hAbGZgWqat85mBlkgIbCPXeLbqm9sEM0uEmfXbIWyhSVeHd8CNVRG4vTkHhYIu1xi 99Zn7BDNLYwScycvgnrTWuLw8YtA/3MAbdCUW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JMLretEtRog3JbGyKrUoP76oNCe1+BCjKdATE5mlRJPzgVGfVxJvaGpobmFp aG5sbmxmoSTOe96gMkpIID2xJDU7NbUgtQimj4mDU6qB0fbDnckszjMaWk3iz0QGtUvkZPtJ dPq06ZZ+PJZpaMxWYLftoXLcst0ee14f2e2sl5v1UHaPbap2aAzDf7/D7fe2GkwQffyXbyb3 9h9nPS5L6LWaFa/86+F8JLKwuKzIb3bQBxsVw5VlnQlz106bvWv5fo+NE+WC50Wz+grWXpiR I7bpsm6PEktxRqKhFnNRcSIA6M0mUsICAAA= X-CMS-MailID: 20190122090252eucas1p2dee91ee12355eca7f79f29f945f0346d X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190122090252eucas1p2dee91ee12355eca7f79f29f945f0346d X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190122090252eucas1p2dee91ee12355eca7f79f29f945f0346d References: <20190122090232.29194-1-k.konieczny@partner.samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, }, { }, }; -- 2.20.0