From: Fabio Estevam <fabio.estevam@nxp.com>
To: <sboyd@codeaurora.org>
Cc: <shawnguo@kernel.org>, <stefan@agner.ch>, <festevam@gmail.com>,
<linux-clk@vger.kernel.org>,
Fabio Estevam <fabio.estevam@nxp.com>
Subject: [PATCH 2/3] clk: imx: Introduce clk_register_gate2()
Date: Fri, 12 Aug 2016 15:26:55 -0300 [thread overview]
Message-ID: <1471026416-11769-2-git-send-email-fabio.estevam@nxp.com> (raw)
In-Reply-To: <1471026416-11769-1-git-send-email-fabio.estevam@nxp.com>
Introduce imx_clk_gate2_shared2() which is similar to the existing
imx_clk_gate2_shared() and passes CLK_OPS_PARENT_ENABLE flag, which
is useful for i.MX7 shared clocks.
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
drivers/clk/imx/clk.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h
index a81c038..3799ff8 100644
--- a/drivers/clk/imx/clk.h
+++ b/drivers/clk/imx/clk.h
@@ -134,6 +134,15 @@ static inline struct clk *imx_clk_gate2_shared(const char *name,
shift, 0x3, 0, &imx_ccm_lock, share_count);
}
+static inline struct clk *imx_clk_gate2_shared2(const char *name,
+ const char *parent, void __iomem *reg, u8 shift,
+ unsigned int *share_count)
+{
+ return clk_register_gate2(NULL, name, parent, CLK_SET_RATE_PARENT |
+ CLK_OPS_PARENT_ENABLE, reg, shift, 0x3, 0,
+ &imx_ccm_lock, share_count);
+}
+
static inline struct clk *imx_clk_gate2_cgr(const char *name,
const char *parent, void __iomem *reg, u8 shift, u8 cgr_val)
{
--
1.9.1
next prev parent reply other threads:[~2016-08-12 18:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-12 18:26 [PATCH 1/3] clk: imx7d: Add the clock for SDMA Fabio Estevam
2016-08-12 18:26 ` Fabio Estevam [this message]
2016-08-19 19:54 ` [PATCH 2/3] clk: imx: Introduce clk_register_gate2() Stephen Boyd
2016-08-12 18:26 ` [PATCH 3/3] clk: imx7d: Add SAI IPG clocks Fabio Estevam
2016-08-19 19:54 ` Stephen Boyd
2016-08-19 4:52 ` [PATCH 1/3] clk: imx7d: Add the clock for SDMA Fabio Estevam
2016-08-19 19:53 ` Stephen Boyd
2016-08-19 19:58 ` Fabio Estevam
2016-08-19 19:54 ` Stephen Boyd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1471026416-11769-2-git-send-email-fabio.estevam@nxp.com \
--to=fabio.estevam@nxp.com \
--cc=festevam@gmail.com \
--cc=linux-clk@vger.kernel.org \
--cc=sboyd@codeaurora.org \
--cc=shawnguo@kernel.org \
--cc=stefan@agner.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox