From: festevam@gmail.com (Fabio Estevam)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] clk: mxs: clk-imx28: Provide a dummy clock
Date: Fri, 21 Jun 2013 18:21:59 -0300 [thread overview]
Message-ID: <1371849720-14506-1-git-send-email-festevam@gmail.com> (raw)
From: Fabio Estevam <fabio.estevam@freescale.com>
Sometimes it is useful to be able to pass a dummy clock for a driver.
Add support for a dummy clock.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
Documentation/devicetree/bindings/clock/imx28-clock.txt | 1 +
drivers/clk/mxs/clk-imx28.c | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/clock/imx28-clock.txt b/Documentation/devicetree/bindings/clock/imx28-clock.txt
index e6587af..5a153ef 100644
--- a/Documentation/devicetree/bindings/clock/imx28-clock.txt
+++ b/Documentation/devicetree/bindings/clock/imx28-clock.txt
@@ -76,6 +76,7 @@ clocks and IDs.
usb0_phy 62
usb1_phy 63
enet_out 64
+ dummy 65
Examples:
diff --git a/drivers/clk/mxs/clk-imx28.c b/drivers/clk/mxs/clk-imx28.c
index 4faf0af..6b55211 100644
--- a/drivers/clk/mxs/clk-imx28.c
+++ b/drivers/clk/mxs/clk-imx28.c
@@ -143,7 +143,7 @@ enum imx28_clk {
emi_xtal, lcdif_div, etm_div, ptp, saif0_div, saif1_div,
clk32k_div, rtc, lradc, spdif_div, clk32k, pwm, uart, ssp0,
ssp1, ssp2, ssp3, gpmi, spdif, emi, saif0, saif1, lcdif, etm,
- fec, can0, can1, usb0, usb1, usb0_phy, usb1_phy, enet_out,
+ fec, can0, can1, usb0, usb1, usb0_phy, usb1_phy, enet_out, dummy,
clk_max
};
@@ -234,6 +234,7 @@ int __init mx28_clocks_init(void)
clks[usb0_phy] = clk_register_gate(NULL, "usb0_phy", "pll0", 0, PLL0CTRL0, 18, 0, &mxs_lock);
clks[usb1_phy] = clk_register_gate(NULL, "usb1_phy", "pll1", 0, PLL1CTRL0, 18, 0, &mxs_lock);
clks[enet_out] = clk_register_gate(NULL, "enet_out", "pll2", 0, ENET, 18, 0, &mxs_lock);
+ clks[dummy] = mxs_clk_fixed("dummy", 0);
for (i = 0; i < ARRAY_SIZE(clks); i++)
if (IS_ERR(clks[i])) {
--
1.8.1.2
next reply other threads:[~2013-06-21 21:21 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-21 21:21 Fabio Estevam [this message]
2013-06-21 21:22 ` [PATCH 2/2] ARM: dts: mx28: Fix sgtl5000 codec probe Fabio Estevam
2013-06-22 2:31 ` Marek Vasut
2013-06-22 3:47 ` Fabio Estevam
2013-06-22 3:54 ` Fabio Estevam
2013-06-22 13:24 ` Marek Vasut
2013-06-22 14:04 ` Fabio Estevam
2013-06-24 7:29 ` Shawn Guo
2013-06-24 13:54 ` Fabio Estevam
2013-06-24 14:07 ` Shawn Guo
2013-06-24 14:18 ` Fabio Estevam
2013-06-24 14:47 ` Shawn Guo
2013-06-25 8:12 ` Shawn Guo
2013-06-25 10:28 ` Fabio Estevam
2013-06-25 12:19 ` Shawn Guo
2013-06-25 12:22 ` Fabio Estevam
2013-06-25 12:52 ` Shawn Guo
2013-06-25 13:04 ` Shawn Guo
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=1371849720-14506-1-git-send-email-festevam@gmail.com \
--to=festevam@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.