* [Xenomai-core] [PATCH] adeos-ipipe-2.6.30-arm-1.15-01.patch: Fix hang on 'Calibrating delay loop...' on S3C24xx
@ 2010-04-27 13:37 Fabian Godehardt
2010-04-27 15:02 ` Gilles Chanteperdrix
2010-04-27 16:31 ` Gilles Chanteperdrix
0 siblings, 2 replies; 4+ messages in thread
From: Fabian Godehardt @ 2010-04-27 13:37 UTC (permalink / raw)
To: xenomai
This patch should fix the hang during 'Calibrating delay loop...' on S3C24xx
based kernels. Problem is that some machines do not have an externel TCLK
signal so the timer doesn't start running.
This patch may also be of interest for the 2.6.28 and 2.6.29 patches.
Tested with a S3C2440 cpu.
Signed-off-by: Fabian Godehardt <fg@domain.hid>
---
.../patches/adeos-ipipe-2.6.30-arm-1.15-01.patch | 17 +++--------------
1 files changed, 3 insertions(+), 14 deletions(-)
diff --git a/ksrc/arch/arm/patches/adeos-ipipe-2.6.30-arm-1.15-01.patch b/ksrc/arch/arm/patches/adeos-ipipe-2.6.30-arm-1.15-01.patch
index 5760e2e..2358cfb 100644
--- a/ksrc/arch/arm/patches/adeos-ipipe-2.6.30-arm-1.15-01.patch
+++ b/ksrc/arch/arm/patches/adeos-ipipe-2.6.30-arm-1.15-01.patch
@@ -6925,18 +6925,7 @@ index 3b27b29..8e6e479 100644
__raw_writel(tcfg1, S3C2410_TCFG1);
} else {
unsigned long pclk;
-@@ -204,12 +254,25 @@ static void s3c2410_timer_setup (void)
- clk_set_parent(tin, tdiv);
-
- tcnt = clk_get_rate(tin) / HZ;
-+
-+ tcfg1 = __raw_readl(S3C2410_TCFG1);
-+ tcfg1 &= ~(S3C2410_TCFG1_MUX4_MASK | S3C2410_TCFG1_MUX3_MASK);
-+ tcfg1 |= (S3C2410_TCFG1_MUX4_TCLK1 | S3C2410_TCFG1_MUX3_TCLK1);
-+ __raw_writel(tcfg1, S3C2410_TCFG1);
- }
-
- tcon = __raw_readl(S3C2410_TCON);
+@@ -210,6 +260,14 @@ static void s3c2410_timer_setup (void)
tcfg0 = __raw_readl(S3C2410_TCFG0);
tcfg1 = __raw_readl(S3C2410_TCFG1);
@@ -6951,7 +6940,7 @@ index 3b27b29..8e6e479 100644
/* timers reload after counting zero, so reduce the count by 1 */
tcnt--;
-@@ -226,23 +289,37 @@ static void s3c2410_timer_setup (void)
+@@ -226,23 +284,37 @@ static void s3c2410_timer_setup (void)
__raw_writel(tcfg1, S3C2410_TCFG1);
__raw_writel(tcfg0, S3C2410_TCFG0);
@@ -7000,7 +6989,7 @@ index 3b27b29..8e6e479 100644
}
static void __init s3c2410_timer_resources(void)
-@@ -283,3 +360,58 @@ struct sys_timer s3c24xx_timer = {
+@@ -283,3 +355,58 @@ struct sys_timer s3c24xx_timer = {
.offset = s3c2410_gettimeoffset,
.resume = s3c2410_timer_setup
};
--
1.6.6.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Xenomai-core] [PATCH] adeos-ipipe-2.6.30-arm-1.15-01.patch: Fix hang on 'Calibrating delay loop...' on S3C24xx
2010-04-27 13:37 [Xenomai-core] [PATCH] adeos-ipipe-2.6.30-arm-1.15-01.patch: Fix hang on 'Calibrating delay loop...' on S3C24xx Fabian Godehardt
@ 2010-04-27 15:02 ` Gilles Chanteperdrix
2010-04-27 16:31 ` Gilles Chanteperdrix
1 sibling, 0 replies; 4+ messages in thread
From: Gilles Chanteperdrix @ 2010-04-27 15:02 UTC (permalink / raw)
To: Fabian Godehardt; +Cc: xenomai
Fabian Godehardt wrote:
> This patch should fix the hang during 'Calibrating delay loop...' on S3C24xx
> based kernels. Problem is that some machines do not have an externel TCLK
> signal so the timer doesn't start running.
>
> This patch may also be of interest for the 2.6.28 and 2.6.29 patches.
>
> Tested with a S3C2440 cpu.
Thanks a lot. Patches for 2.6.31 and 2.6.33 should be out soon, and they
will include that patch too.
--
Gilles.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-core] [PATCH] adeos-ipipe-2.6.30-arm-1.15-01.patch: Fix hang on 'Calibrating delay loop...' on S3C24xx
2010-04-27 13:37 [Xenomai-core] [PATCH] adeos-ipipe-2.6.30-arm-1.15-01.patch: Fix hang on 'Calibrating delay loop...' on S3C24xx Fabian Godehardt
2010-04-27 15:02 ` Gilles Chanteperdrix
@ 2010-04-27 16:31 ` Gilles Chanteperdrix
2010-04-28 4:59 ` [Xenomai-core] [PATCH] adeos-ipipe-2.6.30-arm-1.15-01: " Fabian Godehardt
1 sibling, 1 reply; 4+ messages in thread
From: Gilles Chanteperdrix @ 2010-04-27 16:31 UTC (permalink / raw)
To: Fabian Godehardt; +Cc: xenomai
Fabian Godehardt wrote:
> This patch should fix the hang during 'Calibrating delay loop...' on S3C24xx
> based kernels. Problem is that some machines do not have an externel TCLK
> signal so the timer doesn't start running.
>
> This patch may also be of interest for the 2.6.28 and 2.6.29 patches.
>
> Tested with a S3C2440 cpu.
>
> Signed-off-by: Fabian Godehardt <fg@domain.hid>
I guess you imagine that I am not going to change the I-pipe patch in
Xenomai tree without changing its version number, so, could you send me
again this change as a patch against the I-pipe tree?
--
Gilles.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Xenomai-core] [PATCH] adeos-ipipe-2.6.30-arm-1.15-01: Fix hang on 'Calibrating delay loop...' on S3C24xx
2010-04-27 16:31 ` Gilles Chanteperdrix
@ 2010-04-28 4:59 ` Fabian Godehardt
0 siblings, 0 replies; 4+ messages in thread
From: Fabian Godehardt @ 2010-04-28 4:59 UTC (permalink / raw)
To: gilles.chanteperdrix; +Cc: xenomai
This patch should fix the hang during 'Calibrating delay loop...' on S3C24xx
based kernels. Problem is that some machines do not have an externel TCLK
signal so the timer doesn't start to run.
Tested with a S3C2440 cpu.
Signed-off-by: Fabian Godehardt <fg@domain.hid>
---
arch/arm/plat-s3c/time.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/arch/arm/plat-s3c/time.c b/arch/arm/plat-s3c/time.c
index 8e6e479..976fe03 100644
--- a/arch/arm/plat-s3c/time.c
+++ b/arch/arm/plat-s3c/time.c
@@ -254,11 +254,6 @@ static void s3c2410_timer_setup (void)
clk_set_parent(tin, tdiv);
tcnt = clk_get_rate(tin) / HZ;
-
- tcfg1 = __raw_readl(S3C2410_TCFG1);
- tcfg1 &= ~(S3C2410_TCFG1_MUX4_MASK | S3C2410_TCFG1_MUX3_MASK);
- tcfg1 |= (S3C2410_TCFG1_MUX4_TCLK1 | S3C2410_TCFG1_MUX3_TCLK1);
- __raw_writel(tcfg1, S3C2410_TCFG1);
}
tcon = __raw_readl(S3C2410_TCON);
--
1.6.6.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-04-28 4:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-27 13:37 [Xenomai-core] [PATCH] adeos-ipipe-2.6.30-arm-1.15-01.patch: Fix hang on 'Calibrating delay loop...' on S3C24xx Fabian Godehardt
2010-04-27 15:02 ` Gilles Chanteperdrix
2010-04-27 16:31 ` Gilles Chanteperdrix
2010-04-28 4:59 ` [Xenomai-core] [PATCH] adeos-ipipe-2.6.30-arm-1.15-01: " Fabian Godehardt
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.