All of lore.kernel.org
 help / color / mirror / Atom feed
* [Adeos-main] [PATCH 3/3] Fix imx time reprogramming issue
@ 2012-04-24  8:09 Michael Trimarchi
  2012-04-24  8:13 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Trimarchi @ 2012-04-24  8:09 UTC (permalink / raw)
  To: Adeos; +Cc: b.morelli

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 |




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

end of thread, other threads:[~2012-04-25  8:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-24  8:09 [Adeos-main] [PATCH 3/3] Fix imx time reprogramming issue Michael Trimarchi
2012-04-24  8:13 ` 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

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.