* [PATCH] clk: ti: clk-54xx: Set the rate for dpll_abe_m2x2_ck
@ 2014-04-30 11:39 Peter Ujfalusi
2014-05-19 13:42 ` Tero Kristo
0 siblings, 1 reply; 2+ messages in thread
From: Peter Ujfalusi @ 2014-04-30 11:39 UTC (permalink / raw)
To: mturquette, t-kristo, tony; +Cc: linux-kernel, linux-omap
In order to get correct clock dividers for AESS/ABE we need to set the
dpll_abe_m2x2_ck rate to be double of dpll_abe_ck.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
drivers/clk/ti/clk-54xx.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/clk/ti/clk-54xx.c b/drivers/clk/ti/clk-54xx.c
index 08f3d1b915b3..5e183993e3ec 100644
--- a/drivers/clk/ti/clk-54xx.c
+++ b/drivers/clk/ti/clk-54xx.c
@@ -240,6 +240,12 @@ int __init omap5xxx_dt_clk_init(void)
if (rc)
pr_err("%s: failed to configure ABE DPLL!\n", __func__);
+ abe_dpll = clk_get_sys(NULL, "dpll_abe_m2x2_ck");
+ if (!rc)
+ rc = clk_set_rate(abe_dpll, OMAP5_DPLL_ABE_DEFFREQ * 2);
+ if (rc)
+ pr_err("%s: failed to configure ABE m2x2 DPLL!\n", __func__);
+
usb_dpll = clk_get_sys(NULL, "dpll_usb_ck");
rc = clk_set_rate(usb_dpll, OMAP5_DPLL_USB_DEFFREQ);
if (rc)
--
1.9.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] clk: ti: clk-54xx: Set the rate for dpll_abe_m2x2_ck
2014-04-30 11:39 [PATCH] clk: ti: clk-54xx: Set the rate for dpll_abe_m2x2_ck Peter Ujfalusi
@ 2014-05-19 13:42 ` Tero Kristo
0 siblings, 0 replies; 2+ messages in thread
From: Tero Kristo @ 2014-05-19 13:42 UTC (permalink / raw)
To: Peter Ujfalusi, mturquette, tony; +Cc: linux-kernel, linux-omap
On 04/30/2014 02:39 PM, Peter Ujfalusi wrote:
> In order to get correct clock dividers for AESS/ABE we need to set the
> dpll_abe_m2x2_ck rate to be double of dpll_abe_ck.
>
> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Thanks, queued for 3.15-rc/ti-clk-drv.
-Tero
> ---
> drivers/clk/ti/clk-54xx.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/clk/ti/clk-54xx.c b/drivers/clk/ti/clk-54xx.c
> index 08f3d1b915b3..5e183993e3ec 100644
> --- a/drivers/clk/ti/clk-54xx.c
> +++ b/drivers/clk/ti/clk-54xx.c
> @@ -240,6 +240,12 @@ int __init omap5xxx_dt_clk_init(void)
> if (rc)
> pr_err("%s: failed to configure ABE DPLL!\n", __func__);
>
> + abe_dpll = clk_get_sys(NULL, "dpll_abe_m2x2_ck");
> + if (!rc)
> + rc = clk_set_rate(abe_dpll, OMAP5_DPLL_ABE_DEFFREQ * 2);
> + if (rc)
> + pr_err("%s: failed to configure ABE m2x2 DPLL!\n", __func__);
> +
> usb_dpll = clk_get_sys(NULL, "dpll_usb_ck");
> rc = clk_set_rate(usb_dpll, OMAP5_DPLL_USB_DEFFREQ);
> if (rc)
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-19 13:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-30 11:39 [PATCH] clk: ti: clk-54xx: Set the rate for dpll_abe_m2x2_ck Peter Ujfalusi
2014-05-19 13:42 ` Tero Kristo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox