* Missing mmc debounce clock (??)
@ 2008-03-25 11:43 Felipe Balbi
2008-04-15 13:51 ` Francisco Alecrim
0 siblings, 1 reply; 5+ messages in thread
From: Felipe Balbi @ 2008-03-25 11:43 UTC (permalink / raw)
To: linux-omap
Hi all,
omap hsmmc driver is always complaining about the debounce clock. The
clock it's trying to get is not listed in clock34xx.c, the following
patch gets rid of debounce clock warning by adding the clock to the
clock list.
ps: it's RFC since I'm not really sure if it's the right clock although
docs says it's the functional 32k clock. Comments??
>From 2ef178c513ade5c029be582aa55b87daba3e333d Mon Sep 17 00:00:00 2001
From: Felipe Balbi <felipe.balbi@nokia.com>
Date: Tue, 25 Mar 2008 13:38:50 +0200
Subject: [RFC PATCH] ARCH: OMAP3: Missing mmc debounce clock
This clock was missing from clock34xx.c so mmc was
unable to get it on omap_hsmmc.c giving us an uneeded
warning.
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
---
arch/arm/mach-omap2/clock34xx.h | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/clock34xx.h b/arch/arm/mach-omap2/clock34xx.h
index b0741ba..056f8f6 100644
--- a/arch/arm/mach-omap2/clock34xx.h
+++ b/arch/arm/mach-omap2/clock34xx.h
@@ -44,6 +44,15 @@ static struct clk omap_32k_fck = {
.recalc = &propagate_rate,
};
+/* MMC debounce clock derivates from 32k functional clock */
+static struct clk mmchsdb_fck = {
+ .name = "mmchsdb_fck",
+ .id = 1,
+ .parent = &omap_32k_fck,
+ .flags = CLOCK_IN_OMAP343X | ALWAYS_ENABLED,
+ .recalc = &followparent_recalc,
+};
+
static struct clk secure_32k_fck = {
.name = "secure_32k_fck",
.rate = 32768,
@@ -2863,6 +2872,7 @@ static struct clk *onchip_34xx_clks[] __initdata = {
&ts_fck,
&usbtll_fck,
&core_96m_fck,
+ &mmchsdb_fck,
&mmchs3_fck,
&mmchs2_fck,
&mspro_fck,
--
1.5.5.rc0.16.g02b00
--
- Balbi
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: Missing mmc debounce clock (??)
2008-03-25 11:43 Missing mmc debounce clock (??) Felipe Balbi
@ 2008-04-15 13:51 ` Francisco Alecrim
2008-04-15 13:57 ` Felipe Balbi
2008-04-15 16:17 ` Paul Walmsley
0 siblings, 2 replies; 5+ messages in thread
From: Francisco Alecrim @ 2008-04-15 13:51 UTC (permalink / raw)
To: felipe.balbi; +Cc: linux-omap
Hi Balbi,
I was with the patch below in my queue when you told about your
email at linux-omap.
I guess that is the correct solution.
What do you think?
Subject: [PATCH] MMC: OMAP: Enable debounce clock 32 Khz
Enable debounce clock 32 Khz
---
arch/arm/mach-omap2/clock34xx.h | 36 ++++++++++++++++++++++++++++++++++++
1 files changed, 36 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/clock34xx.h
b/arch/arm/mach-omap2/clock34xx.h
index 5881662..05e9dd5 100644
--- a/arch/arm/mach-omap2/clock34xx.h
+++ b/arch/arm/mach-omap2/clock34xx.h
@@ -1364,6 +1364,39 @@ static struct clk usbtll_fck = {
.recalc = &followparent_recalc,
};
+static struct clk mmchsdb3_fck = {
+ .name = "mmchsdb_fck",
+ .id = 3,
+ .parent = &omap_32k_fck,
+ .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_FCLKEN1),
+ .enable_bit = OMAP3430ES2_EN_MMC3_SHIFT,
+ .flags = CLOCK_IN_OMAP3430ES2,
+ .clkdm_name = "core_l4_clkdm",
+ .recalc = &followparent_recalc,
+};
+
+static struct clk mmchsdb2_fck = {
+ .name = "mmchsdb_fck",
+ .id = 2,
+ .parent = &omap_32k_fck,
+ .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_FCLKEN1),
+ .enable_bit = OMAP3430_EN_MMC2_SHIFT,
+ .flags = CLOCK_IN_OMAP343X,
+ .clkdm_name = "core_l4_clkdm",
+ .recalc = &followparent_recalc,
+};
+
+static struct clk mmchsdb1_fck = {
+ .name = "mmchsdb_fck",
+ .id = 1,
+ .parent = &omap_32k_fck,
+ .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_FCLKEN1),
+ .enable_bit = OMAP3430_EN_MMC1_SHIFT,
+ .flags = CLOCK_IN_OMAP343X,
+ .clkdm_name = "core_l4_clkdm",
+ .recalc = &followparent_recalc,
+};
+
/* CORE 96M FCLK-derived clocks */
static struct clk core_96m_fck = {
@@ -3105,6 +3138,9 @@ static struct clk *onchip_34xx_clks[] __initdata = {
&cpefuse_fck,
&ts_fck,
&usbtll_fck,
+ &mmchsdb1_fck,
+ &mmchsdb2_fck,
+ &mmchsdb3_fck,
&core_96m_fck,
&mmchs3_fck,
&mmchs2_fck,
ext Felipe Balbi wrote:
> Hi all,
>
> omap hsmmc driver is always complaining about the debounce clock. The
> clock it's trying to get is not listed in clock34xx.c, the following
> patch gets rid of debounce clock warning by adding the clock to the
> clock list.
>
> ps: it's RFC since I'm not really sure if it's the right clock although
> docs says it's the functional 32k clock. Comments??
>
>
> >From 2ef178c513ade5c029be582aa55b87daba3e333d Mon Sep 17 00:00:00 2001
> From: Felipe Balbi <felipe.balbi@nokia.com>
> Date: Tue, 25 Mar 2008 13:38:50 +0200
> Subject: [RFC PATCH] ARCH: OMAP3: Missing mmc debounce clock
>
> This clock was missing from clock34xx.c so mmc was
> unable to get it on omap_hsmmc.c giving us an uneeded
> warning.
>
> Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
> ---
> arch/arm/mach-omap2/clock34xx.h | 10 ++++++++++
> 1 files changed, 10 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/clock34xx.h b/arch/arm/mach-omap2/clock34xx.h
> index b0741ba..056f8f6 100644
> --- a/arch/arm/mach-omap2/clock34xx.h
> +++ b/arch/arm/mach-omap2/clock34xx.h
> @@ -44,6 +44,15 @@ static struct clk omap_32k_fck = {
> .recalc = &propagate_rate,
> };
>
> +/* MMC debounce clock derivates from 32k functional clock */
> +static struct clk mmchsdb_fck = {
> + .name = "mmchsdb_fck",
> + .id = 1,
> + .parent = &omap_32k_fck,
> + .flags = CLOCK_IN_OMAP343X | ALWAYS_ENABLED,
> + .recalc = &followparent_recalc,
> +};
> +
> static struct clk secure_32k_fck = {
> .name = "secure_32k_fck",
> .rate = 32768,
> @@ -2863,6 +2872,7 @@ static struct clk *onchip_34xx_clks[] __initdata = {
> &ts_fck,
> &usbtll_fck,
> &core_96m_fck,
> + &mmchsdb_fck,
> &mmchs3_fck,
> &mmchs2_fck,
> &mspro_fck,
>
--
Francisco Keppler Silva Alecrim - INdT
Phone: +55 92 2126-1017
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: Missing mmc debounce clock (??)
2008-04-15 13:51 ` Francisco Alecrim
@ 2008-04-15 13:57 ` Felipe Balbi
2008-04-15 16:17 ` Paul Walmsley
1 sibling, 0 replies; 5+ messages in thread
From: Felipe Balbi @ 2008-04-15 13:57 UTC (permalink / raw)
To: Francisco Alecrim; +Cc: felipe.balbi, linux-omap
On Tue, Apr 15, 2008 at 04:51:17PM +0300, Francisco Alecrim wrote:
> Hi Balbi,
>
> I was with the patch below in my queue when you told about your email at
> linux-omap.
>
> I guess that is the correct solution.
>
> What do you think?
the structures are correct... but i'm not good in clk framework anyway
:-p
just send to l-o :-)
>
> Subject: [PATCH] MMC: OMAP: Enable debounce clock 32 Khz
> Enable debounce clock 32 Khz
>
> ---
> arch/arm/mach-omap2/clock34xx.h | 36 ++++++++++++++++++++++++++++++++++++
> 1 files changed, 36 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/clock34xx.h
> b/arch/arm/mach-omap2/clock34xx.h
> index 5881662..05e9dd5 100644
> --- a/arch/arm/mach-omap2/clock34xx.h
> +++ b/arch/arm/mach-omap2/clock34xx.h
> @@ -1364,6 +1364,39 @@ static struct clk usbtll_fck = {
> .recalc = &followparent_recalc,
> };
>
> +static struct clk mmchsdb3_fck = {
> + .name = "mmchsdb_fck",
> + .id = 3,
> + .parent = &omap_32k_fck,
> + .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_FCLKEN1),
> + .enable_bit = OMAP3430ES2_EN_MMC3_SHIFT,
> + .flags = CLOCK_IN_OMAP3430ES2,
> + .clkdm_name = "core_l4_clkdm",
> + .recalc = &followparent_recalc,
> +};
> +
> +static struct clk mmchsdb2_fck = {
> + .name = "mmchsdb_fck",
> + .id = 2,
> + .parent = &omap_32k_fck,
> + .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_FCLKEN1),
> + .enable_bit = OMAP3430_EN_MMC2_SHIFT,
> + .flags = CLOCK_IN_OMAP343X,
> + .clkdm_name = "core_l4_clkdm",
> + .recalc = &followparent_recalc,
> +};
> +
> +static struct clk mmchsdb1_fck = {
> + .name = "mmchsdb_fck",
> + .id = 1,
> + .parent = &omap_32k_fck,
> + .enable_reg = OMAP_CM_REGADDR(CORE_MOD, CM_FCLKEN1),
> + .enable_bit = OMAP3430_EN_MMC1_SHIFT,
> + .flags = CLOCK_IN_OMAP343X,
> + .clkdm_name = "core_l4_clkdm",
> + .recalc = &followparent_recalc,
> +};
> +
> /* CORE 96M FCLK-derived clocks */
>
> static struct clk core_96m_fck = {
> @@ -3105,6 +3138,9 @@ static struct clk *onchip_34xx_clks[] __initdata = {
> &cpefuse_fck,
> &ts_fck,
> &usbtll_fck,
> + &mmchsdb1_fck,
> + &mmchsdb2_fck,
> + &mmchsdb3_fck,
> &core_96m_fck,
> &mmchs3_fck,
> &mmchs2_fck,
>
>
>
>
>
>
> ext Felipe Balbi wrote:
>> Hi all,
>>
>> omap hsmmc driver is always complaining about the debounce clock. The
>> clock it's trying to get is not listed in clock34xx.c, the following
>> patch gets rid of debounce clock warning by adding the clock to the
>> clock list.
>>
>> ps: it's RFC since I'm not really sure if it's the right clock although
>> docs says it's the functional 32k clock. Comments??
>>
>>
>> >From 2ef178c513ade5c029be582aa55b87daba3e333d Mon Sep 17 00:00:00 2001
>> From: Felipe Balbi <felipe.balbi@nokia.com>
>> Date: Tue, 25 Mar 2008 13:38:50 +0200
>> Subject: [RFC PATCH] ARCH: OMAP3: Missing mmc debounce clock
>>
>> This clock was missing from clock34xx.c so mmc was
>> unable to get it on omap_hsmmc.c giving us an uneeded
>> warning.
>>
>> Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
>> ---
>> arch/arm/mach-omap2/clock34xx.h | 10 ++++++++++
>> 1 files changed, 10 insertions(+), 0 deletions(-)
>>
>> diff --git a/arch/arm/mach-omap2/clock34xx.h b/arch/arm/mach-omap2/clock34xx.h
>> index b0741ba..056f8f6 100644
>> --- a/arch/arm/mach-omap2/clock34xx.h
>> +++ b/arch/arm/mach-omap2/clock34xx.h
>> @@ -44,6 +44,15 @@ static struct clk omap_32k_fck = {
>> .recalc = &propagate_rate,
>> };
>> +/* MMC debounce clock derivates from 32k functional clock */
>> +static struct clk mmchsdb_fck = {
>> + .name = "mmchsdb_fck",
>> + .id = 1,
>> + .parent = &omap_32k_fck,
>> + .flags = CLOCK_IN_OMAP343X | ALWAYS_ENABLED,
>> + .recalc = &followparent_recalc,
>> +};
>> +
>> static struct clk secure_32k_fck = {
>> .name = "secure_32k_fck",
>> .rate = 32768,
>> @@ -2863,6 +2872,7 @@ static struct clk *onchip_34xx_clks[] __initdata = {
>> &ts_fck,
>> &usbtll_fck,
>> &core_96m_fck,
>> + &mmchsdb_fck,
>> &mmchs3_fck,
>> &mmchs2_fck,
>> &mspro_fck,
>>
>
>
> --
> Francisco Keppler Silva Alecrim - INdT
> Phone: +55 92 2126-1017
--
- Balbi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Missing mmc debounce clock (??)
2008-04-15 13:51 ` Francisco Alecrim
2008-04-15 13:57 ` Felipe Balbi
@ 2008-04-15 16:17 ` Paul Walmsley
2008-04-17 21:06 ` Francisco Alecrim
1 sibling, 1 reply; 5+ messages in thread
From: Paul Walmsley @ 2008-04-15 16:17 UTC (permalink / raw)
To: Francisco Alecrim; +Cc: felipe.balbi, linux-omap
On Tue, 15 Apr 2008, Francisco Alecrim wrote:
> Hi Balbi,
>
> I was with the patch below in my queue when you told about your email at
> linux-omap.
>
> I guess that is the correct solution.
>
> What do you think?
Eh, those clocks are identical to the existing MMC clocks.
Seems better for the time being to modify omap_hsmmc.c:777 to test
against !cpu_is_omap34xx() before emitting a warning?
- Paul
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Missing mmc debounce clock (??)
2008-04-15 16:17 ` Paul Walmsley
@ 2008-04-17 21:06 ` Francisco Alecrim
0 siblings, 0 replies; 5+ messages in thread
From: Francisco Alecrim @ 2008-04-17 21:06 UTC (permalink / raw)
To: ext Paul Walmsley; +Cc: felipe.balbi, linux-omap
ext Paul Walmsley wrote:
> On Tue, 15 Apr 2008, Francisco Alecrim wrote:
>
>
>> Hi Balbi,
>>
>> I was with the patch below in my queue when you told about your email at
>> linux-omap.
>>
>> I guess that is the correct solution.
>>
>> What do you think?
>>
>
> Eh, those clocks are identical to the existing MMC clocks.
>
> Seems better for the time being to modify omap_hsmmc.c:777 to test
> against !cpu_is_omap34xx() before emitting a warning?
>
You're right! Good catch!
>
> - Paul
>
>
--
Francisco Keppler Silva Alecrim - INdT
Phone: +55 92 2126-1017
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-04-17 21:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-25 11:43 Missing mmc debounce clock (??) Felipe Balbi
2008-04-15 13:51 ` Francisco Alecrim
2008-04-15 13:57 ` Felipe Balbi
2008-04-15 16:17 ` Paul Walmsley
2008-04-17 21:06 ` Francisco Alecrim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox