linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: AM33XX: Fix configuration of dmtimer parent clock by dmtimer driver
@ 2012-10-17 18:55 Jon Hunter
  2012-10-24  2:01 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Jon Hunter @ 2012-10-17 18:55 UTC (permalink / raw)
  To: linux-arm-kernel

From: Vaibhav Hiremath <hvaibhav@ti.com>

Add dmtimer clock aliases for AM33XX devices so that the parent clock for
the dmtimer can be set correctly by the dmtimer driver. Without these clock
aliases the dmtimer driver will fail to find the parent clocks for the dmtimer.

Verified that DMTIMERs can be successfully requested on AM335x beagle bone.

Original patch was provided by Vaibhav Hiremath [1]. Changelog and
additional verification performed by Jon Hunter.

[1] http://marc.info/?l=linux-omap&m=134693631608018&w=2

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Jon Hunter <jon-hunter@ti.com>
Tested-by: Jon Hunter <jon-hunter@ti.com>
---
 arch/arm/mach-omap2/clock33xx_data.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/mach-omap2/clock33xx_data.c b/arch/arm/mach-omap2/clock33xx_data.c
index 114ab4b..1a45d6b 100644
--- a/arch/arm/mach-omap2/clock33xx_data.c
+++ b/arch/arm/mach-omap2/clock33xx_data.c
@@ -1073,6 +1073,8 @@ static struct omap_clk am33xx_clks[] = {
 	CLK(NULL,	"gfx_fck_div_ck",	&gfx_fck_div_ck,	CK_AM33XX),
 	CLK(NULL,	"sysclkout_pre_ck",	&sysclkout_pre_ck,	CK_AM33XX),
 	CLK(NULL,	"clkout2_ck",		&clkout2_ck,	CK_AM33XX),
+	CLK(NULL,	"timer_32k_ck",		&clkdiv32k_ick,	CK_AM33XX),
+	CLK(NULL,	"timer_sys_ck",		&sys_clkin_ck,	CK_AM33XX),
 };
 
 int __init am33xx_clk_init(void)
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] ARM: AM33XX: Fix configuration of dmtimer parent clock by dmtimer driver
  2012-10-17 18:55 [PATCH] ARM: AM33XX: Fix configuration of dmtimer parent clock by dmtimer driver Jon Hunter
@ 2012-10-24  2:01 ` Tony Lindgren
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2012-10-24  2:01 UTC (permalink / raw)
  To: linux-arm-kernel

* Jon Hunter <jon-hunter@ti.com> [121017 11:57]:
> From: Vaibhav Hiremath <hvaibhav@ti.com>
> 
> Add dmtimer clock aliases for AM33XX devices so that the parent clock for
> the dmtimer can be set correctly by the dmtimer driver. Without these clock
> aliases the dmtimer driver will fail to find the parent clocks for the dmtimer.
> 
> Verified that DMTIMERs can be successfully requested on AM335x beagle bone.
> 
> Original patch was provided by Vaibhav Hiremath [1]. Changelog and
> additional verification performed by Jon Hunter.
> 
> [1] http://marc.info/?l=linux-omap&m=134693631608018&w=2
> 
> Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
> Signed-off-by: Jon Hunter <jon-hunter@ti.com>
> Tested-by: Jon Hunter <jon-hunter@ti.com>

Thanks applying into omap-for-v3.7-rc2/fixes.

Regards,

Tony

> ---
>  arch/arm/mach-omap2/clock33xx_data.c |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/arch/arm/mach-omap2/clock33xx_data.c b/arch/arm/mach-omap2/clock33xx_data.c
> index 114ab4b..1a45d6b 100644
> --- a/arch/arm/mach-omap2/clock33xx_data.c
> +++ b/arch/arm/mach-omap2/clock33xx_data.c
> @@ -1073,6 +1073,8 @@ static struct omap_clk am33xx_clks[] = {
>  	CLK(NULL,	"gfx_fck_div_ck",	&gfx_fck_div_ck,	CK_AM33XX),
>  	CLK(NULL,	"sysclkout_pre_ck",	&sysclkout_pre_ck,	CK_AM33XX),
>  	CLK(NULL,	"clkout2_ck",		&clkout2_ck,	CK_AM33XX),
> +	CLK(NULL,	"timer_32k_ck",		&clkdiv32k_ick,	CK_AM33XX),
> +	CLK(NULL,	"timer_sys_ck",		&sys_clkin_ck,	CK_AM33XX),
>  };
>  
>  int __init am33xx_clk_init(void)
> -- 
> 1.7.9.5
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-24  2:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-17 18:55 [PATCH] ARM: AM33XX: Fix configuration of dmtimer parent clock by dmtimer driver Jon Hunter
2012-10-24  2:01 ` Tony Lindgren

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).