From patchwork Fri Jan 26 19:05:00 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: 126011 Delivered-To: patch@linaro.org Received: by 10.46.84.92 with SMTP id y28csp548247ljd; Fri, 26 Jan 2018 11:06:25 -0800 (PST) X-Google-Smtp-Source: AH8x227RgIX9S2PDkLIDAHVCHRKLiRrbxNleUhYCGiAl7NOuR9rIvwB0LYcTiTt+ZN83TZ4uMIFu X-Received: by 10.98.91.193 with SMTP id p184mr19788917pfb.16.1516993585044; Fri, 26 Jan 2018 11:06:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516993585; cv=none; d=google.com; s=arc-20160816; b=G2W5OPMggU673GKIvu1Xw17QD7/N8T18Upn/LgbwSw52crRmwz3Maj99mjZNI+S2Sk YRWCysEwOp1LUKyTLRu0ezHA90jFnIVcqoankSCtLjQO246QhRa4L5Y6ix/jhVYhUXPO bn8IdAnohJTBiXP9N9vr/reLpio+YZAJsGdq0BaJuOqmH7eXoLqF6N8tXu6LphXU7yaG wpcwvaKULLUVf/W75fh9cXmd3WyEEhc7rWnO84hMFVDB9AgCfWnWNZffO0fHco8j+UzF ksW5dOujThC6e2kfJHYhr24zzlBHg1yMUHWc2sDofeoli/Y14RbQhhjO0Yew4OPi+s0E KWlw== 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=5PaYhwZjTrX1sjZ+sz+J4G5srqu0tAqo0PilClBBBXk=; b=U3g/9a64OU+2W0i/EBQS9xx43HZsub+9q6P94vLDTDkaAN7d7G/ySx1odPSq0Tf+JM 1EN/1YI/WvPRvq2LswDt32q/Im020KPosqQj2kMl55nWeqvaaSo6cmwipY1pwQa2hqTy LFb3/+F1DG/64Y6JvDY/OHjJq1NcrUNgvzjUESf9D9NhQun11wcGCMJjZIAE6dl1snM9 /4s8mg8Jw+3v2LOJjANnG7JYF1+oWjDkOV7s3frckV/Gs7dAEG4CMSuDPwYTHlBj5xOZ wN1nTpuIy5q3o83132gaUmGKQMxvdMIC3dUWmYxeKOt/FN76wGCLUzhV2Z5d6OLxInIk 9FLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nexus-software-ie.20150623.gappssmtp.com header.s=20150623 header.b=Bj4VFA/6; 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 t14si3339415pgc.793.2018.01.26.11.06.24; Fri, 26 Jan 2018 11:06:25 -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=Bj4VFA/6; 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 S1752791AbeAZTGK (ORCPT + 26 others); Fri, 26 Jan 2018 14:06:10 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:40599 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752631AbeAZTFW (ORCPT ); Fri, 26 Jan 2018 14:05:22 -0500 Received: by mail-wm0-f67.google.com with SMTP id v123so23147945wmd.5 for ; Fri, 26 Jan 2018 11:05:21 -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=5PaYhwZjTrX1sjZ+sz+J4G5srqu0tAqo0PilClBBBXk=; b=Bj4VFA/6dW/k0Osn98wid7wtP2+1ZPFhtzZN0iBI9kxRKWTn0u3LyD2/8jqgZPqhrn Lbn8u7vhfMGRqYoygm25K9Tk//+qrXUq9gYhLG1sPDQPx6/bRYbjfHw7Um+nY6fOW6Zv b4v/pbDksPHYei0gZM+IGgWVUyRQ8as+/Us09qGYtxGKxr4Jr0//CLockXQ8PLlB0seB osNWAVRdKI+F5EYg51lToithPRWkszZjOgYc38v6SRWVGyBfaXMEjg6gVMkxTbMo0LFy 461iwLrn+gGrBBVPECyQ4hgOYeRx/EkfkrT91Oxze+BG948z70WlU0OKQssv1mrTbi5B xVDA== 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=5PaYhwZjTrX1sjZ+sz+J4G5srqu0tAqo0PilClBBBXk=; b=nhhwtisBgYNEenb7/trQuHGRzBzTuZHz1CWihUU+j+H25IbcEPnzb39YcNGarmR8Mm oa7E6+nSa/xF0ndHXEWczTYlqX/NTmRTXpFj4TG/gSYygPCuTjNre5JHSRytIGhDH4y+ FA8kcjdgzM0qHdBngBggvJXF6euPQMfUu1wdofYJHcDrlNmN4ncxC/8xHuls5BTr8rOj TXTgEeqQfIwhd6C4bnTf4GuGteixQKaYm78/r/kyVII2fhm3MpgCFUBQtk5xVp+ctC0y qUgdT9Yu+ot3EuMmFmPAYuAwZYNWAXe2rLYRbGgIwvYCYfvbWx6pdeO0YHs+xvTFrzkS gumA== X-Gm-Message-State: AKwxytczwQeIrP2f+nORUTll+9AD6J71xDSEtzbSipwbbHYkjmnz3oAy RumlR0CxWh+TaRsPFiita6a1dQ== X-Received: by 10.80.159.175 with SMTP id c44mr35961407edf.136.1516993520740; Fri, 26 Jan 2018 11:05:20 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id k12sm2719836edl.86.2018.01.26.11.05.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Jan 2018 11:05:20 -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 v2 4/5] clk: imx7d: add CAAM clock Date: Fri, 26 Jan 2018 19:05:00 +0000 Message-Id: <1516993501-29646-5-git-send-email-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516993501-29646-1-git-send-email-pure.logic@nexus-software.ie> References: <1516993501-29646-1-git-send-email-pure.logic@nexus-software.ie> MIME-Version: 1.0 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 clock 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 | 1 + include/dt-bindings/clock/imx7d-clock.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) -- 2.7.4 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 */