* [PATCH 0/2] Add missing audio-related clocks to imx6 clock tree
@ 2013-12-13 15:44 Nicolin Chen
2013-12-13 15:44 ` [PATCH 1/2] ARM: imx6sl: Add missing pll4_audio_div to the " Nicolin Chen
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Nicolin Chen @ 2013-12-13 15:44 UTC (permalink / raw)
To: shawn.guo, kernel
Cc: mark.rutland, devicetree, linux, pawel.moll, ijc+devicetree,
linux-kernel, rob.herring, galak, linux-arm-kernel
This series of patches appends some essential clocks of audio IP to the
current i.MX6 Series clock trees.
Nicolin Chen (2):
ARM: imx6sl: Add missing pll4_audio_div to the clock tree
ARM: imx6sl: Add missing spba clock to clock tree
arch/arm/mach-imx/clk-imx6sl.c | 6 ++++--
include/dt-bindings/clock/imx6sl-clock.h | 4 +++-
2 files changed, 7 insertions(+), 3 deletions(-)
--
1.8.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] ARM: imx6sl: Add missing pll4_audio_div to the clock tree
2013-12-13 15:44 [PATCH 0/2] Add missing audio-related clocks to imx6 clock tree Nicolin Chen
@ 2013-12-13 15:44 ` Nicolin Chen
2013-12-13 15:44 ` [PATCH 2/2] ARM: imx6sl: Add missing spba clock to " Nicolin Chen
[not found] ` <cover.1386949189.git.Guangyu.Chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2 siblings, 0 replies; 4+ messages in thread
From: Nicolin Chen @ 2013-12-13 15:44 UTC (permalink / raw)
To: shawn.guo, kernel
Cc: mark.rutland, devicetree, linux, pawel.moll, ijc+devicetree,
linux-kernel, rob.herring, galak, linux-arm-kernel
There's a dividor for pll4_audio clock missing in clock tree, thus add it.
Signed-off-by: Nicolin Chen <Guangyu.Chen@freescale.com>
---
arch/arm/mach-imx/clk-imx6sl.c | 5 +++--
include/dt-bindings/clock/imx6sl-clock.h | 3 ++-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-imx/clk-imx6sl.c b/arch/arm/mach-imx/clk-imx6sl.c
index a222280..5eb5522 100644
--- a/arch/arm/mach-imx/clk-imx6sl.c
+++ b/arch/arm/mach-imx/clk-imx6sl.c
@@ -29,14 +29,14 @@ static const char const *periph_sels[] = { "pre_periph_sel", "periph_clk2_podf"
static const char const *periph2_sels[] = { "pre_periph2_sel", "periph2_clk2_podf", };
static const char const *csi_lcdif_sels[] = { "mmdc", "pll2_pfd2", "pll3_120m", "pll3_pfd1", };
static const char const *usdhc_sels[] = { "pll2_pfd2", "pll2_pfd0", };
-static const char const *ssi_sels[] = { "pll3_pfd2", "pll3_pfd3", "pll4_post_div", "dummy", };
+static const char const *ssi_sels[] = { "pll3_pfd2", "pll3_pfd3", "pll4_audio_div", "dummy", };
static const char const *perclk_sels[] = { "ipg", "osc", };
static const char const *epdc_pxp_sels[] = { "mmdc", "pll3_usb_otg", "pll5_video_div", "pll2_pfd0", "pll2_pfd2", "pll3_pfd1", };
static const char const *gpu2d_ovg_sels[] = { "pll3_pfd1", "pll3_usb_otg", "pll2_bus", "pll2_pfd2", };
static const char const *gpu2d_sels[] = { "pll2_pfd2", "pll3_usb_otg", "pll3_pfd1", "pll2_bus", };
static const char const *lcdif_pix_sels[] = { "pll2_bus", "pll3_usb_otg", "pll5_video_div", "pll2_pfd0", "pll3_pfd0", "pll3_pfd1", };
static const char const *epdc_pix_sels[] = { "pll2_bus", "pll3_usb_otg", "pll5_video_div", "pll2_pfd0", "pll2_pfd1", "pll3_pfd1", };
-static const char const *audio_sels[] = { "pll4_post_div", "pll3_pfd2", "pll3_pfd3", "pll3_usb_otg", };
+static const char const *audio_sels[] = { "pll4_audio_div", "pll3_pfd2", "pll3_pfd3", "pll3_usb_otg", };
static const char const *ecspi_sels[] = { "pll3_60m", "osc", };
static const char const *uart_sels[] = { "pll3_80m", "osc", };
@@ -104,6 +104,7 @@ static void __init imx6sl_clocks_init(struct device_node *ccm_node)
/* dev name parent_name flags reg shift width div: flags, div_table lock */
clks[IMX6SL_CLK_PLL4_POST_DIV] = clk_register_divider_table(NULL, "pll4_post_div", "pll4_audio", CLK_SET_RATE_PARENT, base + 0x70, 19, 2, 0, post_div_table, &imx_ccm_lock);
+ clks[IMX6SL_CLK_PLL4_AUDIO_DIV] = clk_register_divider(NULL, "pll4_audio_div", "pll4_post_div", CLK_SET_RATE_PARENT, base + 0x170, 15, 1, 0, &imx_ccm_lock);
clks[IMX6SL_CLK_PLL5_POST_DIV] = clk_register_divider_table(NULL, "pll5_post_div", "pll5_video", CLK_SET_RATE_PARENT, base + 0xa0, 19, 2, 0, post_div_table, &imx_ccm_lock);
clks[IMX6SL_CLK_PLL5_VIDEO_DIV] = clk_register_divider_table(NULL, "pll5_video_div", "pll5_post_div", CLK_SET_RATE_PARENT, base + 0x170, 30, 2, 0, video_div_table, &imx_ccm_lock);
clks[IMX6SL_CLK_ENET_REF] = clk_register_divider_table(NULL, "enet_ref", "pll6_enet", 0, base + 0xe0, 0, 2, 0, clk_enet_ref_table, &imx_ccm_lock);
diff --git a/include/dt-bindings/clock/imx6sl-clock.h b/include/dt-bindings/clock/imx6sl-clock.h
index 46f7495..4735e84 100644
--- a/include/dt-bindings/clock/imx6sl-clock.h
+++ b/include/dt-bindings/clock/imx6sl-clock.h
@@ -143,6 +143,7 @@
#define IMX6SL_CLK_USDHC2 130
#define IMX6SL_CLK_USDHC3 131
#define IMX6SL_CLK_USDHC4 132
-#define IMX6SL_CLK_END 133
+#define IMX6SL_CLK_PLL4_AUDIO_DIV 133
+#define IMX6SL_CLK_END 134
#endif /* __DT_BINDINGS_CLOCK_IMX6SL_H */
--
1.8.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] ARM: imx6sl: Add missing spba clock to clock tree
2013-12-13 15:44 [PATCH 0/2] Add missing audio-related clocks to imx6 clock tree Nicolin Chen
2013-12-13 15:44 ` [PATCH 1/2] ARM: imx6sl: Add missing pll4_audio_div to the " Nicolin Chen
@ 2013-12-13 15:44 ` Nicolin Chen
[not found] ` <cover.1386949189.git.Guangyu.Chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2 siblings, 0 replies; 4+ messages in thread
From: Nicolin Chen @ 2013-12-13 15:44 UTC (permalink / raw)
To: shawn.guo, kernel
Cc: mark.rutland, devicetree, linux, pawel.moll, ijc+devicetree,
linux-kernel, rob.herring, galak, linux-arm-kernel
We are missing spba clock in imx6sl's clock tree, thus add it.
Signed-off-by: Nicolin Chen <Guangyu.Chen@freescale.com>
---
arch/arm/mach-imx/clk-imx6sl.c | 1 +
include/dt-bindings/clock/imx6sl-clock.h | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-imx/clk-imx6sl.c b/arch/arm/mach-imx/clk-imx6sl.c
index 5eb5522..3781a18 100644
--- a/arch/arm/mach-imx/clk-imx6sl.c
+++ b/arch/arm/mach-imx/clk-imx6sl.c
@@ -233,6 +233,7 @@ static void __init imx6sl_clocks_init(struct device_node *ccm_node)
clks[IMX6SL_CLK_PWM3] = imx_clk_gate2("pwm3", "perclk", base + 0x78, 20);
clks[IMX6SL_CLK_PWM4] = imx_clk_gate2("pwm4", "perclk", base + 0x78, 22);
clks[IMX6SL_CLK_SDMA] = imx_clk_gate2("sdma", "ipg", base + 0x7c, 6);
+ clks[IMX6SL_CLK_SPBA] = imx_clk_gate2("spba", "ipg", base + 0x7c, 12);
clks[IMX6SL_CLK_SPDIF] = imx_clk_gate2("spdif", "spdif0_podf", base + 0x7c, 14);
clks[IMX6SL_CLK_SSI1] = imx_clk_gate2("ssi1", "ssi1_podf", base + 0x7c, 18);
clks[IMX6SL_CLK_SSI2] = imx_clk_gate2("ssi2", "ssi2_podf", base + 0x7c, 20);
diff --git a/include/dt-bindings/clock/imx6sl-clock.h b/include/dt-bindings/clock/imx6sl-clock.h
index 4735e84..7cf5c99 100644
--- a/include/dt-bindings/clock/imx6sl-clock.h
+++ b/include/dt-bindings/clock/imx6sl-clock.h
@@ -144,6 +144,7 @@
#define IMX6SL_CLK_USDHC3 131
#define IMX6SL_CLK_USDHC4 132
#define IMX6SL_CLK_PLL4_AUDIO_DIV 133
-#define IMX6SL_CLK_END 134
+#define IMX6SL_CLK_SPBA 134
+#define IMX6SL_CLK_END 135
#endif /* __DT_BINDINGS_CLOCK_IMX6SL_H */
--
1.8.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] Add missing audio-related clocks to imx6 clock tree
[not found] ` <cover.1386949189.git.Guangyu.Chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
@ 2013-12-14 14:15 ` Shawn Guo
0 siblings, 0 replies; 4+ messages in thread
From: Shawn Guo @ 2013-12-14 14:15 UTC (permalink / raw)
To: Nicolin Chen
Cc: kernel-bIcnvbaLZ9MEGnE8C9+IrQ, linux-lFZ/pmaqli7XmaaqVzeoHQ,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
rob.herring-bsGFqQB8/DxBDgjK7y7TUQ, pawel.moll-5wv7dgnIgG8,
mark.rutland-5wv7dgnIgG8, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg,
galak-sgV2jX0FEOL9JmXXK+q4OQ, devicetree-u79uwXL29TY76Z2rM5mHXA
On Fri, Dec 13, 2013 at 11:44:06PM +0800, Nicolin Chen wrote:
> This series of patches appends some essential clocks of audio IP to the
> current i.MX6 Series clock trees.
>
> Nicolin Chen (2):
> ARM: imx6sl: Add missing pll4_audio_div to the clock tree
> ARM: imx6sl: Add missing spba clock to clock tree
Applied both, thanks.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-12-14 14:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-13 15:44 [PATCH 0/2] Add missing audio-related clocks to imx6 clock tree Nicolin Chen
2013-12-13 15:44 ` [PATCH 1/2] ARM: imx6sl: Add missing pll4_audio_div to the " Nicolin Chen
2013-12-13 15:44 ` [PATCH 2/2] ARM: imx6sl: Add missing spba clock to " Nicolin Chen
[not found] ` <cover.1386949189.git.Guangyu.Chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2013-12-14 14:15 ` [PATCH 0/2] Add missing audio-related clocks to imx6 " Shawn Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).