From patchwork Tue May 29 15:04:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 10435973 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 E2C96604D4 for ; Tue, 29 May 2018 15:06:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D294B2862C for ; Tue, 29 May 2018 15:06:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C76AB286F9; Tue, 29 May 2018 15:06:00 +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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 735962862C for ; Tue, 29 May 2018 15:06:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936802AbeE2PFz (ORCPT ); Tue, 29 May 2018 11:05:55 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:37679 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935448AbeE2PFH (ORCPT ); Tue, 29 May 2018 11:05:07 -0400 Received: by mail-wr0-f194.google.com with SMTP id i12-v6so26124848wrc.4; Tue, 29 May 2018 08:05:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OeGTIanlR+aDTkhQP9kKD2rnh87+kzOK6nX0Cvi/wA0=; b=BN0le9TACr9+jDB3LuB+fH8xSs4YFTcgC5x/kZHv3hY/fLKmRDPaJUTAfYFEoV600a /MSUpm0uMPnTQ6ETbLy1sIP1FRTtd0bxhLi8sRTgCtj7VrTMnU+omKARcAZRD42q8Erb yjFkOYVb31zvfGSlYdd8MNBmf/U5Yp1pal/qzB/CQM3bx5hWfgporIYPz/PHa6YnrNIg JAW2MnSdG9TfyO+bFwxv7qz1XiTDxRGzuM5iqkmkpQ7868F5TRevfGh/dlckhbweI+Dr CFJUBZTPY6QwaT8xVgEcSNKr9uE+eLEL7IYZaCtifQbhThSqEp4Q9RU4WdSuSPLMGoRa VVwg== 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=OeGTIanlR+aDTkhQP9kKD2rnh87+kzOK6nX0Cvi/wA0=; b=si5R7KIEVWvajlUsEYRmJAY7YeIZGW4qgNdNOs4FXuVMBV/KUh7U5L27qyv6fpXER3 DPvDh5s2ZVfki1KBMtFRYUd+f6ZuOQzunaipQCLVONIFUN5zNoihT+3iHQQlGUzpjwvy ZiZ1qpctrBnSNtfkT5eJcPSPJCQ675FHapYq4iNXnzlmf7FsjpySwB1WwR07YFRF1qto CjhiPNmHgcTa2srJoqRPIXK9qseLEPAXuNfzNWyIYNFPGGHDW6Q4wuMT0JcroWVcJoaN 1pjzZXQ2PvDVn1duj9iXPJJgoW0aOccPeWUo0ZtmlBuRyxW2k+IZvQ+NhQ482QLBfOrl DpKw== X-Gm-Message-State: ALKqPwcHpFYsvI2AVzFFKk1xhx7+PRYMRs+1hfdiUXnTD6CZQM5cHmra oEjAnT1pXCljC6xOSpKr9Qw= X-Google-Smtp-Source: AB8JxZqe3lh4d4wP313B1sriqfDFrtdQ6X+V9OJ1AOCKKuqb4O/hh0n1ouyVCDIWs7JBnIla2MW1tA== X-Received: by 2002:adf:a219:: with SMTP id p25-v6mr13634076wra.19.1527606306133; Tue, 29 May 2018 08:05:06 -0700 (PDT) Received: from cperon-Latitude-7490.devialet.com (static-css-csd-151233.business.bouyguestelecom.com. [176.162.151.233]) by smtp.gmail.com with ESMTPSA id 184-v6sm16280616wmv.33.2018.05.29.08.05.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 May 2018 08:05:05 -0700 (PDT) From: =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= To: Vladimir Zapolskiy , Colin Didier , Sascha Hauer , Fabio Estevam , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Daniel Lezcano , Thomas Gleixner , NXP Linux Team , =?UTF-8?q?Cl=C3=A9ment=20Peron?= Subject: [PATCH v2 2/5] ARM: clk-imx6q: add EPIT clock support Date: Tue, 29 May 2018 17:04:52 +0200 Message-Id: <20180529150455.17300-3-peron.clem@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180529150455.17300-1-peron.clem@gmail.com> References: <20180529150455.17300-1-peron.clem@gmail.com> 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: Colin Didier Add EPIT clock support to the i.MX6Q clocking infrastructure. Signed-off-by: Colin Didier Signed-off-by: Clément Peron Reviewed-by: Fabio Estevam --- drivers/clk/imx/clk-imx6q.c | 2 ++ include/dt-bindings/clock/imx6qdl-clock.h | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx6q.c b/drivers/clk/imx/clk-imx6q.c index 8d518ad5dc13..b9ea7037e193 100644 --- a/drivers/clk/imx/clk-imx6q.c +++ b/drivers/clk/imx/clk-imx6q.c @@ -753,6 +753,8 @@ static void __init imx6q_clocks_init(struct device_node *ccm_node) else clk[IMX6Q_CLK_ECSPI5] = imx_clk_gate2("ecspi5", "ecspi_root", base + 0x6c, 8); clk[IMX6QDL_CLK_ENET] = imx_clk_gate2("enet", "ipg", base + 0x6c, 10); + clk[IMX6QDL_CLK_EPIT1] = imx_clk_gate2("epit1", "ipg", base + 0x6c, 12); + clk[IMX6QDL_CLK_EPIT2] = imx_clk_gate2("epit2", "ipg", base + 0x6c, 14); clk[IMX6QDL_CLK_ESAI_EXTAL] = imx_clk_gate2_shared("esai_extal", "esai_podf", base + 0x6c, 16, &share_count_esai); clk[IMX6QDL_CLK_ESAI_IPG] = imx_clk_gate2_shared("esai_ipg", "ahb", base + 0x6c, 16, &share_count_esai); clk[IMX6QDL_CLK_ESAI_MEM] = imx_clk_gate2_shared("esai_mem", "ahb", base + 0x6c, 16, &share_count_esai); diff --git a/include/dt-bindings/clock/imx6qdl-clock.h b/include/dt-bindings/clock/imx6qdl-clock.h index da59fd9cdb5e..7ad171b8f3bf 100644 --- a/include/dt-bindings/clock/imx6qdl-clock.h +++ b/include/dt-bindings/clock/imx6qdl-clock.h @@ -271,6 +271,8 @@ #define IMX6QDL_CLK_PRE_AXI 258 #define IMX6QDL_CLK_MLB_SEL 259 #define IMX6QDL_CLK_MLB_PODF 260 -#define IMX6QDL_CLK_END 261 +#define IMX6QDL_CLK_EPIT1 261 +#define IMX6QDL_CLK_EPIT2 262 +#define IMX6QDL_CLK_END 263 #endif /* __DT_BINDINGS_CLOCK_IMX6QDL_H */