From patchwork Wed Jan 31 02:00:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 10193027 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E2EB4601A0 for ; Wed, 31 Jan 2018 02:01:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D38212832B for ; Wed, 31 Jan 2018 02:01:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C7D11283AD; Wed, 31 Jan 2018 02:01:31 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable 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 630BD28334 for ; Wed, 31 Jan 2018 02:01:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753082AbeAaCBS (ORCPT ); Tue, 30 Jan 2018 21:01:18 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:33223 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752874AbeAaCAr (ORCPT ); Tue, 30 Jan 2018 21:00:47 -0500 Received: by mail-wm0-f66.google.com with SMTP id x4so6180151wmc.0 for ; Tue, 30 Jan 2018 18:00:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexus-software-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=k/mtmFcZjhbujFvF90cmhZRC2Eyj/wHY3siJgMSaLUk=; b=uJZSNvOcxawQk0MZ1+a1V55xeH+ORmOdxI38FnCO3GzQVeXpLoIkfOpbaBgyK4fe7T qwDfTWQ74m98ap6Xnax8jIZINhfRltcFpdIMgESZpfQ8gSCU5E211HNkfxdtzOE3TYYE mZGHZBpQ/euMTQQwTF8yq+X4EPvH3C7pCxfLBC7uNB1tON/3fYp97bCWXHNB1vchqnpD vbCAlJwNc8qFBxL95KUQ/HFA9/hXjtDjnoqQrZqKcUi/XOCGWREIr77JbOHdf39C6qHl kjfJjKDKiwT5oCZ0ZFdQxqke7sDlhrSzlTybz2EYFxy5PVqim7uk2jMGnUt8MAynSRo3 zciQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=k/mtmFcZjhbujFvF90cmhZRC2Eyj/wHY3siJgMSaLUk=; b=Dw9FoCzika5jJcq+6YSlRAOGCz2yd2DNqtkOGLYx+V/jE8Tnq3m08lj5hDaQA6xjlb F0R9LMIpRneZcvUZMarckOx7hHXx6wxyacWEsecnTEeGHX6T9hz9suItp3craJsuu2e4 zmTA3V0wanRPoCoaM8N/ItgTl/6qEyCvAv4Jhj5bMwJvl57tfOxTQs7j/z7I5APKt/CM ZRSLIU+uV4zqCPMEGIcsIS/+x2TzpGTZvdJozOFWFDtS43PohM9kGj0jaZ8XzWw5ZuWy YWG3ZYozUobHN579T0w9dBHujeJSEMRWnjifpYadyDs0h72cZoExXTIrmlr80mrI8PrP G8PQ== X-Gm-Message-State: AKwxyteWIKrrtUAo74eZAMOEzT4KnaDcCvTL0pE3w2gnn6Kh/N9aFWhe YX2BiDmJJJ1EJC5KbpPYUSy/KQ== X-Google-Smtp-Source: AH8x227nF/6F/IzeXd1LOlBYw5dzk+kAKXnPr4HJ8GG9qKym11Px2V7NCgD7Ej5PPjXTg0gM5UQASA== X-Received: by 10.80.139.2 with SMTP id l2mr55007640edl.14.1517364046619; Tue, 30 Jan 2018 18:00:46 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id w26sm9030867edw.7.2018.01.30.18.00.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 30 Jan 2018 18:00:46 -0800 (PST) From: Bryan O'Donoghue To: horia.geanta@nxp.com, aymen.sghaier@nxp.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Cc: fabio.estevam@nxp.com, peng.fan@nxp.com, davem@davemloft.net, lukas.auer@aisec.fraunhofer.de, rui.silva@linaro.org, ryan.harkin@linaro.org, Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, Bryan O'Donoghue Subject: [PATCH v3 4/5] clk: imx7d: add CAAM clock Date: Wed, 31 Jan 2018 02:00:39 +0000 Message-Id: <1517364040-27607-5-git-send-email-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517364040-27607-1-git-send-email-pure.logic@nexus-software.ie> References: <1517364040-27607-1-git-send-email-pure.logic@nexus-software.ie> MIME-Version: 1.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Rui Miguel Silva Add CAAM clock so that we could use the Cryptographic Acceleration and Assurance Module (CAAM) hardware block. Signed-off-by: Rui Miguel Silva Cc: Michael Turquette Cc: Stephen Boyd Cc: linux-clk@vger.kernel.org Cc: "Horia Geantă" Cc: Aymen Sghaier Cc: Fabio Estevam Cc: Peng Fan Cc: "David S. Miller" Cc: Lukas Auer Signed-off-by: Bryan O'Donoghue Reviewed-by: Fabio Estevam --- drivers/clk/imx/clk-imx7d.c | 1 + include/dt-bindings/clock/imx7d-clock.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c index 80dc211..52ab096 100644 --- a/drivers/clk/imx/clk-imx7d.c +++ b/drivers/clk/imx/clk-imx7d.c @@ -795,6 +795,7 @@ static void __init imx7d_clocks_init(struct device_node *ccm_node) clks[IMX7D_DRAM_PHYM_ALT_ROOT_CLK] = imx_clk_gate4("dram_phym_alt_root_clk", "dram_phym_alt_post_div", base + 0x4130, 0); clks[IMX7D_DRAM_ALT_ROOT_CLK] = imx_clk_gate4("dram_alt_root_clk", "dram_alt_post_div", base + 0x4130, 0); clks[IMX7D_OCOTP_CLK] = imx_clk_gate4("ocotp_clk", "ipg_root_clk", base + 0x4230, 0); + clks[IMX7D_CAAM_CLK] = imx_clk_gate4("caam_clk", "ipg_root_clk", base + 0x4240, 0); clks[IMX7D_USB_HSIC_ROOT_CLK] = imx_clk_gate4("usb_hsic_root_clk", "usb_hsic_post_div", base + 0x4420, 0); clks[IMX7D_SDMA_CORE_CLK] = imx_clk_gate4("sdma_root_clk", "ahb_root_clk", base + 0x4480, 0); clks[IMX7D_PCIE_CTRL_ROOT_CLK] = imx_clk_gate4("pcie_ctrl_root_clk", "pcie_ctrl_post_div", base + 0x4600, 0); diff --git a/include/dt-bindings/clock/imx7d-clock.h b/include/dt-bindings/clock/imx7d-clock.h index e2f99ae..2bc5618 100644 --- a/include/dt-bindings/clock/imx7d-clock.h +++ b/include/dt-bindings/clock/imx7d-clock.h @@ -452,5 +452,6 @@ #define IMX7D_OCOTP_CLK 439 #define IMX7D_NAND_RAWNAND_CLK 440 #define IMX7D_NAND_USDHC_BUS_RAWNAND_CLK 441 -#define IMX7D_CLK_END 442 +#define IMX7D_CAAM_CLK 442 +#define IMX7D_CLK_END 443 #endif /* __DT_BINDINGS_CLOCK_IMX7D_H */