mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 08:36:40 +07:00
[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>
This commit is contained in:
parent
6af0e929e9
commit
b915a12511
@ -12,3 +12,4 @@ obj- :=
|
|||||||
# Core support for all Samsung SoCs
|
# Core support for all Samsung SoCs
|
||||||
|
|
||||||
obj-y += init.o
|
obj-y += init.o
|
||||||
|
obj-y += time.o
|
||||||
|
@ -101,7 +101,7 @@ static unsigned long s3c2410_gettimeoffset (void)
|
|||||||
|
|
||||||
/* work out how many ticks have gone since last timer interrupt */
|
/* work out how many ticks have gone since last timer interrupt */
|
||||||
|
|
||||||
tval = __raw_readl(S3C2410_TCNTO(4));
|
tval = __raw_readl(S3C2410_TCNTO(4));
|
||||||
tdone = timer_startval - tval;
|
tdone = timer_startval - tval;
|
||||||
|
|
||||||
/* check to see if there is an interrupt pending */
|
/* check to see if there is an interrupt pending */
|
||||||
@ -144,7 +144,7 @@ static struct irqaction s3c2410_timer_irq = {
|
|||||||
machine_is_bast() || \
|
machine_is_bast() || \
|
||||||
machine_is_vr1000() || \
|
machine_is_vr1000() || \
|
||||||
machine_is_anubis() || \
|
machine_is_anubis() || \
|
||||||
machine_is_osiris() )
|
machine_is_osiris())
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set up timer interrupt, and return the current time in seconds.
|
* Set up timer interrupt, and return the current time in seconds.
|
||||||
@ -216,7 +216,7 @@ static void s3c2410_timer_setup (void)
|
|||||||
|
|
||||||
tcnt--;
|
tcnt--;
|
||||||
|
|
||||||
printk("timer tcon=%08lx, tcnt %04lx, tcfg %08lx,%08lx, usec %08lx\n",
|
printk(KERN_DEBUG "timer tcon=%08lx, tcnt %04lx, tcfg %08lx,%08lx, usec %08lx\n",
|
||||||
tcon, tcnt, tcfg0, tcfg1, timer_usec_ticks);
|
tcon, tcnt, tcfg0, tcfg1, timer_usec_ticks);
|
||||||
|
|
||||||
/* check to see if timer is within 16bit range... */
|
/* check to see if timer is within 16bit range... */
|
||||||
@ -247,7 +247,7 @@ static void s3c2410_timer_setup (void)
|
|||||||
__raw_writel(tcon, S3C2410_TCON);
|
__raw_writel(tcon, S3C2410_TCON);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __init s3c2410_timer_init (void)
|
static void __init s3c2410_timer_init(void)
|
||||||
{
|
{
|
||||||
s3c2410_timer_setup();
|
s3c2410_timer_setup();
|
||||||
setup_irq(IRQ_TIMER4, &s3c2410_timer_irq);
|
setup_irq(IRQ_TIMER4, &s3c2410_timer_irq);
|
@ -17,7 +17,6 @@ obj-y += irq.o
|
|||||||
obj-y += devs.o
|
obj-y += devs.o
|
||||||
obj-y += gpio.o
|
obj-y += gpio.o
|
||||||
obj-y += gpiolib.o
|
obj-y += gpiolib.o
|
||||||
obj-y += time.o
|
|
||||||
obj-y += clock.o
|
obj-y += clock.o
|
||||||
obj-y += pwm-clock.o
|
obj-y += pwm-clock.o
|
||||||
obj-$(CONFIG_S3C24XX_DCLK) += clock-dclk.o
|
obj-$(CONFIG_S3C24XX_DCLK) += clock-dclk.o
|
||||||
|
Loading…
Reference in New Issue
Block a user