From patchwork Mon May 28 17:34:09 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: 10433891 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 A46B2602CB for ; Mon, 28 May 2018 17:35:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9319825223 for ; Mon, 28 May 2018 17:35:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8768928470; Mon, 28 May 2018 17:35:46 +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 EB44825223 for ; Mon, 28 May 2018 17:35:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754797AbeE1Rfp (ORCPT ); Mon, 28 May 2018 13:35:45 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:38259 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754646AbeE1ReW (ORCPT ); Mon, 28 May 2018 13:34:22 -0400 Received: by mail-wr0-f193.google.com with SMTP id 94-v6so21382179wrf.5; Mon, 28 May 2018 10:34:22 -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=uI912Tff778DI0t0JutT5JsfWofA/5SbBbYNNHWDLmG1NqVsBsa8FIrTMcanptZQfF 5zq6J10tWzuPbwRrB3T2dNKxeNTeUJcaNAQVvj+DetayCW3pU7STgYoC5OeI1dgZ5vui RDQRy2mHe3t81g0I7pWnXqZkFmW1c3591VLwMe6Xyop88bE+gYiAT1c9Zz3jGVNhz440 szZlQZfWvpBG5u5t9G2iCQQ+mj+Fe9LkN5iroGuAROjQylScANZK83QwdbHjO7eZIPMK Q7yKoHrs1lGLvqvqOl4WiHDj05iXQctlcS5wNxe27pdL9ObQ7xG16Q8+Ixr72fxhIP9J 0bMQ== 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=QxcTDTJe0pQc9PndBtq/dgCVy41CDrjcKWsk2YAspptLirvcsfBIvzculJ+LLpYZmV Sj2rZX26ik9xmY26JnkC3x5F+5mS5J0IX4tMZoilN5D5yWB8e/O4KW4bjpBmXPohY3uo zftx37q+x8ZVQbRQlwGbjOljCGSOh18srwrX8l40gwwXpzKAZjPzJI+mjMERJUQxFa+m jY5lH2De68INxASrKAjqGjiUhcQSu/ZMKjk5W7TvNaoJ9VXM4immHoMkNpu3Zcsfo5QF bc4a+YgvxGKDsowj3vveaN0yWcMr2xE4A5Xdx0RNyQn6ZIBsQcyoi/wAsqbY1aYku4VX w+aQ== X-Gm-Message-State: ALKqPwecZb2xh8D6Mv8JpViGOHVNHTSXQSTN2FXZ+dzj80/yKUQpcqjh /bJbK75UlStpYo246riZuJk= X-Google-Smtp-Source: AB8JxZqaSZrbD5oA+QBrl+r1c9XFGmWQ43a2z6JUVwMffQJZ7xy5IvYmpKfYU4bJEEGS7+udBnDY1g== X-Received: by 2002:adf:ad8a:: with SMTP id w10-v6mr12327878wrc.83.1527528861455; Mon, 28 May 2018 10:34:21 -0700 (PDT) Received: from cperon-Latitude-7490.lan (static-css-csd-151233.business.bouyguestelecom.com. [176.162.151.233]) by smtp.gmail.com with ESMTPSA id l10-v6sm9419660wrm.29.2018.05.28.10.34.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 May 2018 10:34:20 -0700 (PDT) From: =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= To: Colin Didier , Sascha Hauer , Fabio Estevam Cc: Shawn Guo , NXP Linux Team , Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Colin Didier , =?UTF-8?q?Cl=C3=A9ment=20Peron?= Subject: [PATCH 2/5] ARM: clk-imx6q: add EPIT clock support Date: Mon, 28 May 2018 19:34:09 +0200 Message-Id: <20180528173412.10000-3-peron.clem@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180528173412.10000-1-peron.clem@gmail.com> References: <20180528173412.10000-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 Acked-by: Shawn Guo --- 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 */