Received: by 10.223.176.46 with SMTP id f43csp847515wra; Wed, 24 Jan 2018 06:52:51 -0800 (PST) X-Google-Smtp-Source: AH8x227qLUIRCQ90Q5qqLG6dzXYZ2nNkLFRu5/juiRaYzh8OUuxdSm5HxKJKr+86zdHDIZHEgNjf X-Received: by 10.98.161.16 with SMTP id b16mr13359039pff.34.1516805571418; Wed, 24 Jan 2018 06:52:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516805571; cv=none; d=google.com; s=arc-20160816; b=IWfewrIr+8J9606ZVPfLZlv18drCJhRUqJPf4QA2nYEuEQ4uxR7pjvPY/TpA8rIVPx zUWFNrYmGe/GvbFB6humnMt9vNKAWhN7FRy9XuIkjwX0pi05a3eWiEoSwdZmgeYUvGwi 2qiH6MRzKdnNaNmzZHk/gSRTWp6LST5IitAQNsRSlzIFbwolqHfaOxKPnFdVRiDOvVL2 /8Unfb/esdg3gPfGdhPK5vyC4lVNeMqe1jeWF4YLHDZn/Ja1Cie1HS0wyCf9/OxnSMa+ GTB/jTkzmyQQFPJ8eH8DRW6CvOJEu+Kc4NQSGpH3ICu/80RdEED1wxPWcY/dad1w1P6H 5XPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=VmS63BTT8cuuHLgDmXf/OXb2R/p1ibufnmeWkrAINs0=; b=wYxpcu8vJjkcl3s5t897xLaUDpT/rZ0OMKXOMCbUwqJlgzB3mJ6J3OAagIGkn7D0g+ DKXYdUdwSLJ4RCjFClsUxgb4rherS58YtAt7/TVWv6mOKuv6hq9eCjlDPFvf+deH0vUV DjXOYXXQ6xJrQOxYZU7YnkK2r64YUhk36UTb4loJGFftdjV8VPa3Q4iN0A9vAuEbvFfm iG6NVc1JtTYrmXUth8+PcIWtyPejk9k13TBIfsXoSPgipSOZ8r03krq3MNfRaEQokimX hIgbhEgN+IKOaURaq2UF1YIlUxPDurpu693/eUUcZhVCzvDV3hjz9WHFx4/BGf6+ckGB x4GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nexus-software-ie.20150623.gappssmtp.com header.s=20150623 header.b=zDxsRxlu; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h63si234259pge.435.2018.01.24.06.52.37; Wed, 24 Jan 2018 06:52:51 -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=@nexus-software-ie.20150623.gappssmtp.com header.s=20150623 header.b=zDxsRxlu; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934102AbeAXOvr (ORCPT + 99 others); Wed, 24 Jan 2018 09:51:47 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:43400 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934099AbeAXOuu (ORCPT ); Wed, 24 Jan 2018 09:50:50 -0500 Received: by mail-wm0-f66.google.com with SMTP id g1so8951799wmg.2 for ; Wed, 24 Jan 2018 06:50:49 -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=VmS63BTT8cuuHLgDmXf/OXb2R/p1ibufnmeWkrAINs0=; b=zDxsRxlu0aSsfrOA3PQlvw2nQvePNYOqKodLL+CVl2bnVJrTmKfhIA13LSwcx5yyDl iOc4JTynvEwZ0aBHuS81hkMUdqtUoxzCdO/jB+M4r5mqofAlE0vbZO8p5V6Y6HtL7stA yKaWIrGGpXeGcW69jcZ/3jObjrkye29dpSV6PRmG1o3PsTLcvYf7WFwP4HMiRoVAoVKs a2aJDJSyFhS9QZzSgZqvwismudxbtLyHEDORP7UFIU7Zqjyf//aWhxDr4fdA8Q/ox924 yYe2YEV5hASeQyHczUSYocA1APiOcq9QmK5rp1MbYAOBDoLNvhn8vSt9AUwdJRA3GuSS 5dKw== 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=VmS63BTT8cuuHLgDmXf/OXb2R/p1ibufnmeWkrAINs0=; b=atWQz1TkMzi+VaKjDRwnX66cWbZtgF5EEGoIuQgsa3qTq9yIaq+bTCGu5nMiXi1vQK +4Kvl0AaTM7ClNOpjo0OSQ97YXjrggushAnpQ/lguGB50j3InbaidrfKyIILGbMpvmRV C6alnZS9sttSVBoPaKVz8yv/h8JOdzcaGMMfv4M7z7p0DJQOjcISXaXSODuvJCVfg+YA ftoeqO+MNIksrBqrC6TLDIIhLgOi1TmGwd1TzrbiAZFP8wpmH2TdJsJbcwC+U9IC78mu po7bGVUM4I6jg9BUx2iDN9NsxOBu1pxA+P59++ml2UbyjUnFyh9tK6IHUqXJve/B3dY2 DN6g== X-Gm-Message-State: AKwxytd6qOWyW9oSfKduizhQ44fzDEK/sVEU/tDcXLkGo2OMr88eHIdc 39LuE26K4tYIneEFw9Ya1OiR+Q== X-Received: by 10.80.137.50 with SMTP id e47mr25329801ede.3.1516805449069; Wed, 24 Jan 2018 06:50:49 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id p6sm324449edb.62.2018.01.24.06.50.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 Jan 2018 06:50:48 -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, herbert@gondor.apana.org.au, davem@davemloft.net, lukas.auer@aisec.fraunhofer.de, rui.silva@linaro.org, ryan.harkin@linaro.org, Bryan O'Donoghue Subject: [RESEND PATCH 4/6] imx7d: add CAAM clocks Date: Wed, 24 Jan 2018 14:50:33 +0000 Message-Id: <1516805435-15034-5-git-send-email-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516805435-15034-1-git-send-email-pure.logic@nexus-software.ie> References: <1516805435-15034-1-git-send-email-pure.logic@nexus-software.ie> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rui Miguel Silva Add CAAM clocks so that we could use the Cryptographic Acceleration and Assurance Module (CAAM) hardware block. Signed-off-by: Rui Miguel Silva Cc: "Horia Geantă" Cc: Aymen Sghaier Cc: Fabio Estevam Cc: Peng Fan Cc: Herbert Xu Cc: "David S. Miller" Cc: Lukas Auer Signed-off-by: Bryan O'Donoghue --- drivers/clk/imx/clk-imx7d.c | 3 +++ include/dt-bindings/clock/imx7d-clock.h | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c index 80dc211..fc4f0c4 100644 --- a/drivers/clk/imx/clk-imx7d.c +++ b/drivers/clk/imx/clk-imx7d.c @@ -795,6 +795,9 @@ 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_MEM_CLK] = imx_clk_gate4("caam_mem_clk", "ahb_root_clk", base + 0x4240, 0); + clks[IMX7D_CAAM_ACLK_CLK] = imx_clk_gate4("caam_aclk_clk", "ahb_root_clk", base + 0x4240, 0); + clks[IMX7D_CAAM_IPG_CLK] = imx_clk_gate4("caam_ipg_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..e17b59e 100644 --- a/include/dt-bindings/clock/imx7d-clock.h +++ b/include/dt-bindings/clock/imx7d-clock.h @@ -452,5 +452,8 @@ #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_MEM_CLK 442 +#define IMX7D_CAAM_ACLK_CLK 443 +#define IMX7D_CAAM_IPG_CLK 444 +#define IMX7D_CLK_END 445 #endif /* __DT_BINDINGS_CLOCK_IMX7D_H */ -- 2.7.4