* [PATCH] mx3: Enable PWM clock on mx31 and mx35
@ 2010-10-22 11:13 Fabio Estevam
2010-10-22 12:03 ` Eric Bénard
0 siblings, 1 reply; 3+ messages in thread
From: Fabio Estevam @ 2010-10-22 11:13 UTC (permalink / raw)
To: linux-arm-kernel
mx3: Enable PWM clock on mx31 and mx35.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Tested-by: Radoslav Kolev <radoslav.kolev@rnd.bg>
---
arch/arm/mach-mx3/clock-imx31.c | 1 +
arch/arm/mach-mx3/clock-imx35.c | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-mx3/clock-imx31.c b/arch/arm/mach-mx3/clock-imx31.c
index 109e98f..3926915 100644
--- a/arch/arm/mach-mx3/clock-imx31.c
+++ b/arch/arm/mach-mx3/clock-imx31.c
@@ -612,6 +612,7 @@ int __init mx31_clocks_init(unsigned long fref)
clk_enable(&iim_clk);
clk_enable(&serial_pll_clk);
+ clk_enable(&pwm_clk);
mx31_read_cpu_rev();
diff --git a/arch/arm/mach-mx3/clock-imx35.c b/arch/arm/mach-mx3/clock-imx35.c
index 61e4a31..9796440 100644
--- a/arch/arm/mach-mx3/clock-imx35.c
+++ b/arch/arm/mach-mx3/clock-imx35.c
@@ -536,6 +536,8 @@ int __init mx35_clocks_init()
__raw_writel(cgr3, CCM_BASE + CCM_CGR3);
clk_enable(&iim_clk);
+ clk_enable(&pwm_clk);
+
mx35_read_cpu_rev();
#ifdef CONFIG_MXC_USE_EPIT
--
1.6.0.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] mx3: Enable PWM clock on mx31 and mx35
2010-10-22 11:13 [PATCH] mx3: Enable PWM clock on mx31 and mx35 Fabio Estevam
@ 2010-10-22 12:03 ` Eric Bénard
2010-10-22 12:26 ` Radoslav Kolev
0 siblings, 1 reply; 3+ messages in thread
From: Eric Bénard @ 2010-10-22 12:03 UTC (permalink / raw)
To: linux-arm-kernel
Hi Fabio,
Le 22/10/2010 13:13, Fabio Estevam a ?crit :
> mx3: Enable PWM clock on mx31 and mx35.
>
Are you sure this in needed as when using the pwm.c driver in plat-mxc there
are pwm_enable and pwm_disable functions ?
With your patch, platforms without PWM will have the pwm clock enabled.
Eric
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] mx3: Enable PWM clock on mx31 and mx35
2010-10-22 12:03 ` Eric Bénard
@ 2010-10-22 12:26 ` Radoslav Kolev
0 siblings, 0 replies; 3+ messages in thread
From: Radoslav Kolev @ 2010-10-22 12:26 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, 2010-10-22 at 14:03 +0200, Eric B?nard wrote:
> Hi Fabio,
>
> Le 22/10/2010 13:13, Fabio Estevam a ?crit :
> > mx3: Enable PWM clock on mx31 and mx35.
> >
> Are you sure this in needed as when using the pwm.c driver in plat-mxc there
> are pwm_enable and pwm_disable functions ?
>
> With your patch, platforms without PWM will have the pwm clock enabled.
Fabio, sorry if I have mislead you.
I wasn't properly using the plat-mxc/pwm.c driver (and hence the
enable/disable functions were not getting called). I was just mucking
about with the registers directly, first from userspace and then by
putting some code in the driver probe function. So it was really strange
for me that I couldn't do any writes.
If the plat-mxc/pwm.c driver is used properly I guess this patch won't
be needed.
Regards,
Radoslav Kolev
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-10-22 12:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-22 11:13 [PATCH] mx3: Enable PWM clock on mx31 and mx35 Fabio Estevam
2010-10-22 12:03 ` Eric Bénard
2010-10-22 12:26 ` Radoslav Kolev
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).