* [PATCH] ARM: r7s72100: fix bus clock calculation
@ 2014-02-28 9:32 Wolfram Sang
0 siblings, 0 replies; 2+ messages in thread
From: Wolfram Sang @ 2014-02-28 9:32 UTC (permalink / raw)
To: linux-sh
From: Wolfram Sang <wsa@sang-engineering.com>
The picture in the datasheet is a little misleading, yet the divider of
the bus_clk is 1/3 and not 2/3.
Signed-off-by: Wolfram Sang <wsa@sang-engineering.com>
---
arch/arm/mach-shmobile/clock-r7s72100.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-shmobile/clock-r7s72100.c b/arch/arm/mach-shmobile/clock-r7s72100.c
index f17a5db..bee0073 100644
--- a/arch/arm/mach-shmobile/clock-r7s72100.c
+++ b/arch/arm/mach-shmobile/clock-r7s72100.c
@@ -70,7 +70,7 @@ static struct clk pll_clk = {
static unsigned long bus_recalc(struct clk *clk)
{
- return clk->parent->rate * 2 / 3;
+ return clk->parent->rate / 3;
}
static struct sh_clk_ops bus_clk_ops = {
--
1.8.5.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] ARM: r7s72100: fix bus clock calculation
@ 2014-03-06 4:22 Simon Horman
0 siblings, 0 replies; 2+ messages in thread
From: Simon Horman @ 2014-03-06 4:22 UTC (permalink / raw)
To: linux-sh
On Fri, Feb 28, 2014 at 10:32:55AM +0100, Wolfram Sang wrote:
> From: Wolfram Sang <wsa@sang-engineering.com>
>
> The picture in the datasheet is a little misleading, yet the divider of
> the bus_clk is 1/3 and not 2/3.
>
> Signed-off-by: Wolfram Sang <wsa@sang-engineering.com>
Thanks, I have queued this up with "shmobile: " inserted into
the subject.
> ---
> arch/arm/mach-shmobile/clock-r7s72100.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-shmobile/clock-r7s72100.c b/arch/arm/mach-shmobile/clock-r7s72100.c
> index f17a5db..bee0073 100644
> --- a/arch/arm/mach-shmobile/clock-r7s72100.c
> +++ b/arch/arm/mach-shmobile/clock-r7s72100.c
> @@ -70,7 +70,7 @@ static struct clk pll_clk = {
>
> static unsigned long bus_recalc(struct clk *clk)
> {
> - return clk->parent->rate * 2 / 3;
> + return clk->parent->rate / 3;
> }
>
> static struct sh_clk_ops bus_clk_ops = {
> --
> 1.8.5.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@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:[~2014-03-06 4:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-28 9:32 [PATCH] ARM: r7s72100: fix bus clock calculation Wolfram Sang
-- strict thread matches above, loose matches on Subject: below --
2014-03-06 4:22 Simon Horman
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).