aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2008-10-21 09:06:53 -0400
committerBen Dooks <ben-linux@fluff.org>2008-12-15 16:46:15 -0500
commitb915a125112b2500d5c6fd752948afc170a49cef (patch)
tree7d5351abdb6c3e90297bccb56ae8fd377f056c83
parent6af0e929e9fb60a8e2609555129713f310188f33 (diff)
[ARM] S3C: Move time.c to arch/arm/plat-s3c
Move time.c to arch/arm/plat-s3c to be shared with the S3C64XX implementations. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
-rw-r--r--arch/arm/plat-s3c/Makefile1
-rw-r--r--arch/arm/plat-s3c/time.c (renamed from arch/arm/plat-s3c24xx/time.c)8
-rw-r--r--arch/arm/plat-s3c24xx/Makefile1
3 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/plat-s3c/Makefile b/arch/arm/plat-s3c/Makefile
index f7c8824ef805..3c543ed5fb97 100644
--- a/arch/arm/plat-s3c/Makefile
+++ b/arch/arm/plat-s3c/Makefile
@@ -12,3 +12,4 @@ obj- :=
12# Core support for all Samsung SoCs 12# Core support for all Samsung SoCs
13 13
14obj-y += init.o 14obj-y += init.o
15obj-y += time.o
diff --git a/arch/arm/plat-s3c24xx/time.c b/arch/arm/plat-s3c/time.c
index c51916236ac0..c6861a05a291 100644
--- a/arch/arm/plat-s3c24xx/time.c
+++ b/arch/arm/plat-s3c/time.c
@@ -101,7 +101,7 @@ static unsigned long s3c2410_gettimeoffset (void)
101 101
102 /* work out how many ticks have gone since last timer interrupt */ 102 /* work out how many ticks have gone since last timer interrupt */
103 103
104 tval = __raw_readl(S3C2410_TCNTO(4)); 104 tval = __raw_readl(S3C2410_TCNTO(4));
105 tdone = timer_startval - tval; 105 tdone = timer_startval - tval;
106 106
107 /* check to see if there is an interrupt pending */ 107 /* check to see if there is an interrupt pending */
@@ -144,7 +144,7 @@ static struct irqaction s3c2410_timer_irq = {
144 machine_is_bast() || \ 144 machine_is_bast() || \
145 machine_is_vr1000() || \ 145 machine_is_vr1000() || \
146 machine_is_anubis() || \ 146 machine_is_anubis() || \
147 machine_is_osiris() ) 147 machine_is_osiris())
148 148
149/* 149/*
150 * Set up timer interrupt, and return the current time in seconds. 150 * Set up timer interrupt, and return the current time in seconds.
@@ -216,7 +216,7 @@ static void s3c2410_timer_setup (void)
216 216
217 tcnt--; 217 tcnt--;
218 218
219 printk("timer tcon=%08lx, tcnt %04lx, tcfg %08lx,%08lx, usec %08lx\n", 219 printk(KERN_DEBUG "timer tcon=%08lx, tcnt %04lx, tcfg %08lx,%08lx, usec %08lx\n",
220 tcon, tcnt, tcfg0, tcfg1, timer_usec_ticks); 220 tcon, tcnt, tcfg0, tcfg1, timer_usec_ticks);
221 221
222 /* check to see if timer is within 16bit range... */ 222 /* check to see if timer is within 16bit range... */
@@ -247,7 +247,7 @@ static void s3c2410_timer_setup (void)
247 __raw_writel(tcon, S3C2410_TCON); 247 __raw_writel(tcon, S3C2410_TCON);
248} 248}
249 249
250static void __init s3c2410_timer_init (void) 250static void __init s3c2410_timer_init(void)
251{ 251{
252 s3c2410_timer_setup(); 252 s3c2410_timer_setup();
253 setup_irq(IRQ_TIMER4, &s3c2410_timer_irq); 253 setup_irq(IRQ_TIMER4, &s3c2410_timer_irq);
diff --git a/arch/arm/plat-s3c24xx/Makefile b/arch/arm/plat-s3c24xx/Makefile
index 80cf8eb211ff..8da14beda770 100644
--- a/arch/arm/plat-s3c24xx/Makefile
+++ b/arch/arm/plat-s3c24xx/Makefile
@@ -17,7 +17,6 @@ obj-y += irq.o
17obj-y += devs.o 17obj-y += devs.o
18obj-y += gpio.o 18obj-y += gpio.o
19obj-y += gpiolib.o 19obj-y += gpiolib.o
20obj-y += time.o
21obj-y += clock.o 20obj-y += clock.o
22obj-y += pwm-clock.o 21obj-y += pwm-clock.o
23obj-$(CONFIG_S3C24XX_DCLK) += clock-dclk.o 22obj-$(CONFIG_S3C24XX_DCLK) += clock-dclk.o