diff options
author | Andrew Bresticker <abrestic@chromium.org> | 2014-10-20 15:03:58 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-11-24 01:45:14 -0500 |
commit | fa5635a277171021d364f6a3fab4addce8f358d2 (patch) | |
tree | 9fff06b8d87eba632d5abc5346733cd01b368658 | |
parent | 53a7bc815a139a524f1d60c32b70455f02b87a6d (diff) |
MIPS: Move GIC clocksource driver to drivers/clocksource/
Move the GIC clocksource driver to drivers/clocksource/mips-gic-timer.c.
Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: Qais Yousef <qais.yousef@imgtec.com>
Cc: John Crispin <blogic@openwrt.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/8133/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/Kconfig | 8 | ||||
-rw-r--r-- | arch/mips/kernel/Makefile | 1 | ||||
-rw-r--r-- | arch/mips/mti-malta/malta-time.c | 2 | ||||
-rw-r--r-- | drivers/clocksource/Kconfig | 4 | ||||
-rw-r--r-- | drivers/clocksource/Makefile | 1 | ||||
-rw-r--r-- | drivers/clocksource/mips-gic-timer.c (renamed from arch/mips/kernel/csrc-gic.c) | 0 | ||||
-rw-r--r-- | drivers/irqchip/irq-mips-gic.c | 2 |
7 files changed, 9 insertions, 9 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 3afb795c0125..5b690cf0fec7 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
@@ -342,7 +342,7 @@ config MIPS_MALTA | |||
342 | select BOOT_RAW | 342 | select BOOT_RAW |
343 | select CEVT_R4K | 343 | select CEVT_R4K |
344 | select CSRC_R4K | 344 | select CSRC_R4K |
345 | select CSRC_GIC | 345 | select CLKSRC_MIPS_GIC |
346 | select DMA_MAYBE_COHERENT | 346 | select DMA_MAYBE_COHERENT |
347 | select GENERIC_ISA_DMA | 347 | select GENERIC_ISA_DMA |
348 | select HAVE_PCSPKR_PLATFORM | 348 | select HAVE_PCSPKR_PLATFORM |
@@ -385,7 +385,7 @@ config MIPS_SEAD3 | |||
385 | select BUILTIN_DTB | 385 | select BUILTIN_DTB |
386 | select CEVT_R4K | 386 | select CEVT_R4K |
387 | select CSRC_R4K | 387 | select CSRC_R4K |
388 | select CSRC_GIC | 388 | select CLKSRC_MIPS_GIC |
389 | select CPU_MIPSR2_IRQ_VI | 389 | select CPU_MIPSR2_IRQ_VI |
390 | select CPU_MIPSR2_IRQ_EI | 390 | select CPU_MIPSR2_IRQ_EI |
391 | select DMA_NONCOHERENT | 391 | select DMA_NONCOHERENT |
@@ -954,10 +954,6 @@ config CSRC_IOASIC | |||
954 | config CSRC_R4K | 954 | config CSRC_R4K |
955 | bool | 955 | bool |
956 | 956 | ||
957 | config CSRC_GIC | ||
958 | select MIPS_CM | ||
959 | bool | ||
960 | |||
961 | config CSRC_SB1250 | 957 | config CSRC_SB1250 |
962 | bool | 958 | bool |
963 | 959 | ||
diff --git a/arch/mips/kernel/Makefile b/arch/mips/kernel/Makefile index 0945d804ec3a..1aedbf5e4232 100644 --- a/arch/mips/kernel/Makefile +++ b/arch/mips/kernel/Makefile | |||
@@ -24,7 +24,6 @@ obj-$(CONFIG_CEVT_GT641XX) += cevt-gt641xx.o | |||
24 | obj-$(CONFIG_CEVT_SB1250) += cevt-sb1250.o | 24 | obj-$(CONFIG_CEVT_SB1250) += cevt-sb1250.o |
25 | obj-$(CONFIG_CEVT_TXX9) += cevt-txx9.o | 25 | obj-$(CONFIG_CEVT_TXX9) += cevt-txx9.o |
26 | obj-$(CONFIG_CSRC_BCM1480) += csrc-bcm1480.o | 26 | obj-$(CONFIG_CSRC_BCM1480) += csrc-bcm1480.o |
27 | obj-$(CONFIG_CSRC_GIC) += csrc-gic.o | ||
28 | obj-$(CONFIG_CSRC_IOASIC) += csrc-ioasic.o | 27 | obj-$(CONFIG_CSRC_IOASIC) += csrc-ioasic.o |
29 | obj-$(CONFIG_CSRC_R4K) += csrc-r4k.o | 28 | obj-$(CONFIG_CSRC_R4K) += csrc-r4k.o |
30 | obj-$(CONFIG_CSRC_SB1250) += csrc-sb1250.o | 29 | obj-$(CONFIG_CSRC_SB1250) += csrc-sb1250.o |
diff --git a/arch/mips/mti-malta/malta-time.c b/arch/mips/mti-malta/malta-time.c index 608655f8e6dd..028fae077001 100644 --- a/arch/mips/mti-malta/malta-time.c +++ b/arch/mips/mti-malta/malta-time.c | |||
@@ -183,7 +183,7 @@ void __init plat_time_init(void) | |||
183 | freq = freqround(gic_frequency, 5000); | 183 | freq = freqround(gic_frequency, 5000); |
184 | printk("GIC frequency %d.%02d MHz\n", freq/1000000, | 184 | printk("GIC frequency %d.%02d MHz\n", freq/1000000, |
185 | (freq%1000000)*100/1000000); | 185 | (freq%1000000)*100/1000000); |
186 | #ifdef CONFIG_CSRC_GIC | 186 | #ifdef CONFIG_CLKSRC_MIPS_GIC |
187 | gic_clocksource_init(gic_frequency); | 187 | gic_clocksource_init(gic_frequency); |
188 | #endif | 188 | #endif |
189 | } | 189 | } |
diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 90420600e1eb..cb7e7f417a60 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig | |||
@@ -223,4 +223,8 @@ config CLKSRC_VERSATILE | |||
223 | ARM Versatile, RealView and Versatile Express reference | 223 | ARM Versatile, RealView and Versatile Express reference |
224 | platforms. | 224 | platforms. |
225 | 225 | ||
226 | config CLKSRC_MIPS_GIC | ||
227 | bool | ||
228 | depends on MIPS_GIC | ||
229 | |||
226 | endmenu | 230 | endmenu |
diff --git a/drivers/clocksource/Makefile b/drivers/clocksource/Makefile index 756f6f10efa0..e23fc2d5fc27 100644 --- a/drivers/clocksource/Makefile +++ b/drivers/clocksource/Makefile | |||
@@ -46,3 +46,4 @@ obj-$(CONFIG_CLKSRC_METAG_GENERIC) += metag_generic.o | |||
46 | obj-$(CONFIG_ARCH_HAS_TICK_BROADCAST) += dummy_timer.o | 46 | obj-$(CONFIG_ARCH_HAS_TICK_BROADCAST) += dummy_timer.o |
47 | obj-$(CONFIG_ARCH_KEYSTONE) += timer-keystone.o | 47 | obj-$(CONFIG_ARCH_KEYSTONE) += timer-keystone.o |
48 | obj-$(CONFIG_CLKSRC_VERSATILE) += versatile.o | 48 | obj-$(CONFIG_CLKSRC_VERSATILE) += versatile.o |
49 | obj-$(CONFIG_CLKSRC_MIPS_GIC) += mips-gic-timer.o | ||
diff --git a/arch/mips/kernel/csrc-gic.c b/drivers/clocksource/mips-gic-timer.c index 0bf28e6aca7a..0bf28e6aca7a 100644 --- a/arch/mips/kernel/csrc-gic.c +++ b/drivers/clocksource/mips-gic-timer.c | |||
diff --git a/drivers/irqchip/irq-mips-gic.c b/drivers/irqchip/irq-mips-gic.c index fbe2ceda4928..035d5ad435f9 100644 --- a/drivers/irqchip/irq-mips-gic.c +++ b/drivers/irqchip/irq-mips-gic.c | |||
@@ -103,7 +103,7 @@ static inline void gic_map_to_vpe(unsigned int intr, unsigned int vpe) | |||
103 | GIC_SH_MAP_TO_VPE_REG_BIT(vpe)); | 103 | GIC_SH_MAP_TO_VPE_REG_BIT(vpe)); |
104 | } | 104 | } |
105 | 105 | ||
106 | #if defined(CONFIG_CSRC_GIC) || defined(CONFIG_CEVT_GIC) | 106 | #if defined(CONFIG_CLKSRC_MIPS_GIC) || defined(CONFIG_CEVT_GIC) |
107 | cycle_t gic_read_count(void) | 107 | cycle_t gic_read_count(void) |
108 | { | 108 | { |
109 | unsigned int hi, hi2, lo; | 109 | unsigned int hi, hi2, lo; |