File tree Expand file tree Collapse file tree 11 files changed +20
-20
lines changed
Expand file tree Collapse file tree 11 files changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -975,11 +975,6 @@ config PLAT_PXA
975975config PLAT_VERSATILE
976976 bool
977977
978- config ARM_TIMER_SP804
979- bool
980- select CLKSRC_MMIO
981- select CLKSRC_OF if OF
982-
983978source "arch/arm/firmware/Kconfig"
984979
985980source arch/arm/mm/Kconfig
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ obj-$(CONFIG_SHARP_LOCOMO) += locomo.o
1111obj-$(CONFIG_SHARP_PARAM) += sharpsl_param.o
1212obj-$(CONFIG_SHARP_SCOOP) += scoop.o
1313obj-$(CONFIG_PCI_HOST_ITE8152) += it8152.o
14- obj-$(CONFIG_ARM_TIMER_SP804) += timer-sp.o
1514obj-$(CONFIG_MCPM) += mcpm_head.o mcpm_entry.o mcpm_platsmp.o vlock.o
1615CFLAGS_REMOVE_mcpm_entry.o = -pg
1716AFLAGS_mcpm_head.o := -march=armv7-a
Original file line number Diff line number Diff line change 2222#include <asm/mach-types.h>
2323#include <asm/mach/map.h>
2424
25- #include <asm/hardware/timer-sp.h>
26-
2725#include "mmio.h"
2826#include "clcd.h"
2927
Original file line number Diff line number Diff line change 3535#include <linux/mtd/physmap.h>
3636#include <linux/memblock.h>
3737
38+ #include <clocksource/timer-sp804.h>
39+
3840#include <mach/hardware.h>
3941#include <asm/irq.h>
4042#include <asm/mach-types.h>
4446#include <asm/mach/irq.h>
4547#include <asm/mach/map.h>
4648
47-
4849#include <mach/platform.h>
4950#include <mach/irqs.h>
50- #include <asm/hardware/timer-sp.h>
5151
5252#include <plat/sched_clock.h>
5353
Original file line number Diff line number Diff line change 4141#include <linux/bitops.h>
4242#include <linux/reboot.h>
4343
44+ #include <clocksource/timer-sp804.h>
45+
4446#include <asm/irq.h>
4547#include <asm/hardware/icst.h>
4648#include <asm/mach-types.h>
5153#include <asm/mach/map.h>
5254#include <mach/hardware.h>
5355#include <mach/platform.h>
54- #include <asm/hardware/timer-sp.h>
5556
5657#include <plat/sched_clock.h>
5758
Original file line number Diff line number Diff line change @@ -132,6 +132,11 @@ config ARM_GLOBAL_TIMER
132132 help
133133 This options enables support for the ARM global timer unit
134134
135+ config ARM_TIMER_SP804
136+ bool "Support for Dual Timer SP804 module"
137+ select CLKSRC_MMIO
138+ select CLKSRC_OF if OF
139+
135140config CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
136141 bool
137142 depends on ARM_GLOBAL_TIMER
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ obj-$(CONFIG_MTK_TIMER) += mtk_timer.o
4545
4646obj-$(CONFIG_ARM_ARCH_TIMER) += arm_arch_timer.o
4747obj-$(CONFIG_ARM_GLOBAL_TIMER) += arm_global_timer.o
48+ obj-$(CONFIG_ARM_TIMER_SP804) += timer-sp804.o
4849obj-$(CONFIG_CLKSRC_METAG_GENERIC) += metag_generic.o
4950obj-$(CONFIG_ARCH_HAS_TICK_BROADCAST) += dummy_timer.o
5051obj-$(CONFIG_ARCH_KEYSTONE) += timer-keystone.o
Original file line number Diff line number Diff line change 2626#include <linux/clockchips.h>
2727#include <linux/interrupt.h>
2828#include <linux/sched_clock.h>
29- #include <asm/hardware/arm_timer.h>
29+
30+ #include "timer-sp.h"
3031
3132static void __iomem * sched_clk_base ;
3233
Original file line number Diff line number Diff line change 1- #ifndef __ASM_ARM_HARDWARE_ARM_TIMER_H
2- #define __ASM_ARM_HARDWARE_ARM_TIMER_H
3-
41/*
52 * ARM timer implementation, found in Integrator, Versatile and Realview
63 * platforms. Not all platforms support all registers and bits in these
3128#define TIMER_RIS 0x10 /* CVR ro */
3229#define TIMER_MIS 0x14 /* CVR ro */
3330#define TIMER_BGLOAD 0x18 /* CVR rw */
34-
35- #endif
Original file line number Diff line number Diff line change 11/*
2- * linux/arch/arm/common /timer-sp.c
2+ * linux/drivers/clocksource /timer-sp.c
33 *
44 * Copyright (C) 1999 - 2003 ARM Limited
55 * Copyright (C) 2000 Deep Blue Solutions Ltd
3030#include <linux/of_irq.h>
3131#include <linux/sched_clock.h>
3232
33- #include <asm/hardware/arm_timer.h>
34- #include <asm/hardware/timer-sp.h>
33+ #include <clocksource/timer-sp804.h>
34+
35+ #include "timer-sp.h"
3536
3637static long __init sp804_get_clock_rate (struct clk * clk )
3738{
You can’t perform that action at this time.
0 commit comments