All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Trimarchi <michael@domain.hid>
To: Adeos <adeos-main@gna.org>
Cc: b.morelli@domain.hid
Subject: [Adeos-main] [PATCH 3/3] Fix imx time reprogramming issue
Date: Tue, 24 Apr 2012 10:09:10 +0200	[thread overview]
Message-ID: <4F965FA6.2070009@domain.hid> (raw)

This patch includes:

* Fix invalid virtual address base of MX1_2_TCM
* Fix the minimum delay below which the hardware timer can not be reprogrammed.
  The value is the same of that one that is used to calculate the min_delta_ns

arch/arm/plat-mxc/time.c
414: clockevent_mxc.min_delta_ns = clockevent_delta2ns(0xff, &clockevent_mxc);

Signed-off-by: Michael Trimarchi <michael@domain.hid>
Signed-off-by: Bruno Morelli <b.morelli@domain.hid>
---
 arch/arm/plat-mxc/time.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/plat-mxc/time.c b/arch/arm/plat-mxc/time.c
index aae2717..30916f8 100644
--- a/arch/arm/plat-mxc/time.c
+++ b/arch/arm/plat-mxc/time.c
@@ -400,11 +400,11 @@ mxc_timer_init(struct clk *timer_clk,
 	__ipipe_mach_timerint = irq;
 	__ipipe_mach_ticks_per_jiffy = (clk_get_rate(timer_clk) + HZ/2) / HZ;
 	tsc_info.freq = clk_get_rate(timer_clk);
-	mxc_min_delay = ((__ipipe_cpu_freq + 500000) / 1000000) ?: 1;
+	mxc_min_delay = 0xff;
 
 	if (timer_is_v1()) {
 		tsc_info.u.counter_paddr = phys + MX1_2_TCN;
-		tsc_info.counter_vaddr =(unsigned long)(phys + MX1_2_TCN);
+		tsc_info.counter_vaddr = (unsigned long)(timer_base + MX1_2_TCN);
 	} else {
 		tsc_info.u.counter_paddr = phys + V2_TCN;
 		tsc_info.counter_vaddr = (unsigned long)(timer_base + V2_TCN);
-- 
1.7.5.4

-- 
| Michael Nazzareno Trimarchi                     Amarula Solutions BV |
| COO  -  Founder                                      Cruquiuskade 47 |
| +31(0)851119172                                 Amsterdam 1018 AM NL |




             reply	other threads:[~2012-04-24  8:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-24  8:09 Michael Trimarchi [this message]
2012-04-24  8:13 ` [Adeos-main] [PATCH 3/3] Fix imx time reprogramming issue Gilles Chanteperdrix
2012-04-24  8:32   ` Michael Trimarchi
2012-04-24  8:53     ` Gilles Chanteperdrix
2012-04-24  9:31       ` Michael Trimarchi
2012-04-24  9:41         ` Gilles Chanteperdrix
2012-04-24 20:34           ` Gilles Chanteperdrix
2012-04-25  8:12             ` Michael Trimarchi
2012-04-25  8:18               ` Gilles Chanteperdrix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F965FA6.2070009@domain.hid \
    --to=michael@domain.hid \
    --cc=adeos-main@gna.org \
    --cc=b.morelli@domain.hid \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.