* [PATCH] clk: tegra: set up audio clocks on Tegra114
@ 2013-03-21 19:45 Stephen Warren
[not found] ` <1363895115-14129-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Warren @ 2013-03-21 19:45 UTC (permalink / raw)
To: Peter De Schrijver
Cc: Mike Turquette, linux-tegra-u79uwXL29TY76Z2rM5mHXA,
Stephen Warren
From: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
This sets up all the audio-related clocks on Tegra114 in the same way
as they are set up on previous chips.
Signed-off-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
---
Peter, do you want to roll this into your CCF series V8, or should I apply
it seperately?
---
drivers/clk/tegra/clk-tegra114.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/drivers/clk/tegra/clk-tegra114.c b/drivers/clk/tegra/clk-tegra114.c
index 81101f1..9aa87b5 100644
--- a/drivers/clk/tegra/clk-tegra114.c
+++ b/drivers/clk/tegra/clk-tegra114.c
@@ -1979,6 +1979,16 @@ static __initdata struct tegra_clk_init_table init_table[] = {
{uartb, pll_p, 408000000, 0},
{uartc, pll_p, 408000000, 0},
{uartd, pll_p, 408000000, 0},
+ {pll_a, clk_max, 564480000, 1},
+ {pll_a_out0, clk_max, 11289600, 1},
+ {extern1, pll_a_out0, 0, 1},
+ {clk_out_1_mux, extern1, 0, 0},
+ {clk_out_1, clk_max, 0, 1},
+ {i2s0, pll_a_out0, 11289600, 0},
+ {i2s1, pll_a_out0, 11289600, 0},
+ {i2s2, pll_a_out0, 11289600, 0},
+ {i2s3, pll_a_out0, 11289600, 0},
+ {i2s4, pll_a_out0, 11289600, 0},
{clk_max, clk_max, 0, 0}, /* This MUST be the last entry. */
};
--
1.7.10.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] clk: tegra: set up audio clocks on Tegra114
[not found] ` <1363895115-14129-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
@ 2013-03-22 18:48 ` Stephen Warren
[not found] ` <514CA793.4040105-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Warren @ 2013-03-22 18:48 UTC (permalink / raw)
To: Peter De Schrijver
Cc: Mike Turquette, linux-tegra-u79uwXL29TY76Z2rM5mHXA,
Stephen Warren
On 03/21/2013 01:45 PM, Stephen Warren wrote:
> From: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
>
> This sets up all the audio-related clocks on Tegra114 in the same way
> as they are set up on previous chips.
> Peter, do you want to roll this into your CCF series V8, or should I apply
> it seperately?
I see that part of this is included in your CCF series v8, except that:
> diff --git a/drivers/clk/tegra/clk-tegra114.c b/drivers/clk/tegra/clk-tegra114.c
> + {pll_a, clk_max, 564480000, 1},
> + {pll_a_out0, clk_max, 11289600, 1},
> + {extern1, pll_a_out0, 0, 1},
> + {clk_out_1, clk_max, 0, 1},
The "enable" bits are set to 0 there. As I mentioned in the other email,
the audio driver assumes these clocks are enabled, unless we want to
enhance the driver to change that, but that would create a dependency
between the ASoC and Tegra trees, which I'd really rather not do, since
other changes to the relevant ASoC files are already going through ASoC
tree for 3.10.
> + {i2s0, pll_a_out0, 11289600, 0},
> + {i2s1, pll_a_out0, 11289600, 0},
> + {i2s2, pll_a_out0, 11289600, 0},
> + {i2s3, pll_a_out0, 11289600, 0},
> + {i2s4, pll_a_out0, 11289600, 0},
Those entries are missing. At least the parenting relationship needs to
be set up I believe.
I assume you want me to send an incremental patch to fix that up?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] clk: tegra: set up audio clocks on Tegra114
[not found] ` <514CA793.4040105-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
@ 2013-03-25 10:04 ` Peter De Schrijver
[not found] ` <20130325100444.GA18519-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Peter De Schrijver @ 2013-03-25 10:04 UTC (permalink / raw)
To: Stephen Warren
Cc: Mike Turquette,
linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Stephen Warren
On Fri, Mar 22, 2013 at 07:48:51PM +0100, Stephen Warren wrote:
> On 03/21/2013 01:45 PM, Stephen Warren wrote:
> > From: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> >
> > This sets up all the audio-related clocks on Tegra114 in the same way
> > as they are set up on previous chips.
>
> > Peter, do you want to roll this into your CCF series V8, or should I apply
> > it seperately?
>
> I see that part of this is included in your CCF series v8, except that:
>
> > diff --git a/drivers/clk/tegra/clk-tegra114.c b/drivers/clk/tegra/clk-tegra114.c
>
> > + {pll_a, clk_max, 564480000, 1},
> > + {pll_a_out0, clk_max, 11289600, 1},
> > + {extern1, pll_a_out0, 0, 1},
>
> > + {clk_out_1, clk_max, 0, 1},
>
> The "enable" bits are set to 0 there. As I mentioned in the other email,
> the audio driver assumes these clocks are enabled, unless we want to
> enhance the driver to change that, but that would create a dependency
> between the ASoC and Tegra trees, which I'd really rather not do, since
> other changes to the relevant ASoC files are already going through ASoC
> tree for 3.10.
>
Ok. In that cse we have to think about using a different way of doing udelay()
in clk-pll.c or move the initialization after the loop has been calibrated.
> > + {i2s0, pll_a_out0, 11289600, 0},
> > + {i2s1, pll_a_out0, 11289600, 0},
> > + {i2s2, pll_a_out0, 11289600, 0},
> > + {i2s3, pll_a_out0, 11289600, 0},
> > + {i2s4, pll_a_out0, 11289600, 0},
>
> Those entries are missing. At least the parenting relationship needs to
> be set up I believe.
That's ok.
>
> I assume you want me to send an incremental patch to fix that up?
That would be great.
cheers,
Peter.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] clk: tegra: set up audio clocks on Tegra114
[not found] ` <20130325100444.GA18519-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org>
@ 2013-03-28 15:02 ` Peter De Schrijver
0 siblings, 0 replies; 4+ messages in thread
From: Peter De Schrijver @ 2013-03-28 15:02 UTC (permalink / raw)
To: Stephen Warren
Cc: Mike Turquette,
linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Stephen Warren
On Mon, Mar 25, 2013 at 11:04:44AM +0100, Peter De Schrijver wrote:
> On Fri, Mar 22, 2013 at 07:48:51PM +0100, Stephen Warren wrote:
> > On 03/21/2013 01:45 PM, Stephen Warren wrote:
> > > From: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> > >
> > > This sets up all the audio-related clocks on Tegra114 in the same way
> > > as they are set up on previous chips.
> >
> > > Peter, do you want to roll this into your CCF series V8, or should I apply
> > > it seperately?
> >
> > I see that part of this is included in your CCF series v8, except that:
> >
> > > diff --git a/drivers/clk/tegra/clk-tegra114.c b/drivers/clk/tegra/clk-tegra114.c
> >
> > > + {pll_a, clk_max, 564480000, 1},
> > > + {pll_a_out0, clk_max, 11289600, 1},
> > > + {extern1, pll_a_out0, 0, 1},
> >
> > > + {clk_out_1, clk_max, 0, 1},
> >
> > The "enable" bits are set to 0 there. As I mentioned in the other email,
> > the audio driver assumes these clocks are enabled, unless we want to
> > enhance the driver to change that, but that would create a dependency
> > between the ASoC and Tegra trees, which I'd really rather not do, since
> > other changes to the relevant ASoC files are already going through ASoC
> > tree for 3.10.
> >
>
> Ok. In that cse we have to think about using a different way of doing udelay()
> in clk-pll.c or move the initialization after the loop has been calibrated.
>
> > > + {i2s0, pll_a_out0, 11289600, 0},
> > > + {i2s1, pll_a_out0, 11289600, 0},
> > > + {i2s2, pll_a_out0, 11289600, 0},
> > > + {i2s3, pll_a_out0, 11289600, 0},
> > > + {i2s4, pll_a_out0, 11289600, 0},
> >
> > Those entries are missing. At least the parenting relationship needs to
> > be set up I believe.
>
I can add these directly into CCF v9. Is that ok?
Cheers,
Peter.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-03-28 15:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-21 19:45 [PATCH] clk: tegra: set up audio clocks on Tegra114 Stephen Warren
[not found] ` <1363895115-14129-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-03-22 18:48 ` Stephen Warren
[not found] ` <514CA793.4040105-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-03-25 10:04 ` Peter De Schrijver
[not found] ` <20130325100444.GA18519-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org>
2013-03-28 15:02 ` Peter De Schrijver
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox