aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Song <Baohua.Song@csr.com>2015-01-11 11:04:43 -0500
committerDaniel Lezcano <daniel.lezcano@linaro.org>2015-01-29 08:02:06 -0500
commit5833ac98651f7985037e52d4b41f7d4e02e32064 (patch)
tree9d363e681a0115d7fd4926be4620ddf26dc3741a
parentd072c9658c3c2aa204c22e3ef27a0db6b4e3befa (diff)
clocksource: marco: Rename marco to atlas7
marco project is replaced by atlas7 and we should obliterate its all traces. Signed-off-by: Barry Song <Baohua.Song@csr.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
-rw-r--r--MAINTAINERS2
-rw-r--r--drivers/clocksource/Makefile2
-rw-r--r--drivers/clocksource/timer-atlas7.c (renamed from drivers/clocksource/timer-marco.c)14
3 files changed, 9 insertions, 9 deletions
diff --git a/MAINTAINERS b/MAINTAINERS
index 2fa385321245..f6923cf22d3f 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -958,7 +958,7 @@ S: Maintained
958F: arch/arm/mach-prima2/ 958F: arch/arm/mach-prima2/
959F: drivers/clk/sirf/ 959F: drivers/clk/sirf/
960F: drivers/clocksource/timer-prima2.c 960F: drivers/clocksource/timer-prima2.c
961F: drivers/clocksource/timer-marco.c 961F: drivers/clocksource/timer-atlas7.c
962N: [^a-z]sirf 962N: [^a-z]sirf
963 963
964ARM/EBSA110 MACHINE SUPPORT 964ARM/EBSA110 MACHINE SUPPORT
diff --git a/drivers/clocksource/Makefile b/drivers/clocksource/Makefile
index 94d90b24b56b..306bc4770be0 100644
--- a/drivers/clocksource/Makefile
+++ b/drivers/clocksource/Makefile
@@ -18,7 +18,7 @@ obj-$(CONFIG_ARMADA_370_XP_TIMER) += time-armada-370-xp.o
18obj-$(CONFIG_ORION_TIMER) += time-orion.o 18obj-$(CONFIG_ORION_TIMER) += time-orion.o
19obj-$(CONFIG_ARCH_BCM2835) += bcm2835_timer.o 19obj-$(CONFIG_ARCH_BCM2835) += bcm2835_timer.o
20obj-$(CONFIG_ARCH_CLPS711X) += clps711x-timer.o 20obj-$(CONFIG_ARCH_CLPS711X) += clps711x-timer.o
21obj-$(CONFIG_ARCH_MARCO) += timer-marco.o 21obj-$(CONFIG_ARCH_ATLAS7) += timer-atlas7.o
22obj-$(CONFIG_ARCH_MOXART) += moxart_timer.o 22obj-$(CONFIG_ARCH_MOXART) += moxart_timer.o
23obj-$(CONFIG_ARCH_MXS) += mxs_timer.o 23obj-$(CONFIG_ARCH_MXS) += mxs_timer.o
24obj-$(CONFIG_ARCH_PXA) += pxa_timer.o 24obj-$(CONFIG_ARCH_PXA) += pxa_timer.o
diff --git a/drivers/clocksource/timer-marco.c b/drivers/clocksource/timer-atlas7.c
index 3ddb81f7ee66..60f9de3438b0 100644
--- a/drivers/clocksource/timer-marco.c
+++ b/drivers/clocksource/timer-atlas7.c
@@ -38,7 +38,7 @@
38 38
39#define SIRFSOC_TIMER_REG_CNT 6 39#define SIRFSOC_TIMER_REG_CNT 6
40 40
41static unsigned long marco_timer_rate; 41static unsigned long atlas7_timer_rate;
42 42
43static const u32 sirfsoc_timer_reg_list[SIRFSOC_TIMER_REG_CNT] = { 43static const u32 sirfsoc_timer_reg_list[SIRFSOC_TIMER_REG_CNT] = {
44 SIRFSOC_TIMER_WATCHDOG_EN, 44 SIRFSOC_TIMER_WATCHDOG_EN,
@@ -195,7 +195,7 @@ static int sirfsoc_local_timer_setup(struct clock_event_device *ce)
195 ce->rating = 200; 195 ce->rating = 200;
196 ce->set_mode = sirfsoc_timer_set_mode; 196 ce->set_mode = sirfsoc_timer_set_mode;
197 ce->set_next_event = sirfsoc_timer_set_next_event; 197 ce->set_next_event = sirfsoc_timer_set_next_event;
198 clockevents_calc_mult_shift(ce, marco_timer_rate, 60); 198 clockevents_calc_mult_shift(ce, atlas7_timer_rate, 60);
199 ce->max_delta_ns = clockevent_delta2ns(-2, ce); 199 ce->max_delta_ns = clockevent_delta2ns(-2, ce);
200 ce->min_delta_ns = clockevent_delta2ns(2, ce); 200 ce->min_delta_ns = clockevent_delta2ns(2, ce);
201 ce->cpumask = cpumask_of(cpu); 201 ce->cpumask = cpumask_of(cpu);
@@ -255,7 +255,7 @@ static void __init sirfsoc_clockevent_init(void)
255} 255}
256 256
257/* initialize the kernel jiffy timer source */ 257/* initialize the kernel jiffy timer source */
258static void __init sirfsoc_marco_timer_init(struct device_node *np) 258static void __init sirfsoc_atlas7_timer_init(struct device_node *np)
259{ 259{
260 struct clk *clk; 260 struct clk *clk;
261 261
@@ -264,7 +264,7 @@ static void __init sirfsoc_marco_timer_init(struct device_node *np)
264 264
265 BUG_ON(clk_prepare_enable(clk)); 265 BUG_ON(clk_prepare_enable(clk));
266 266
267 marco_timer_rate = clk_get_rate(clk); 267 atlas7_timer_rate = clk_get_rate(clk);
268 268
269 /* timer dividers: 0, not divided */ 269 /* timer dividers: 0, not divided */
270 writel_relaxed(0, sirfsoc_timer_base + SIRFSOC_TIMER_64COUNTER_CTRL); 270 writel_relaxed(0, sirfsoc_timer_base + SIRFSOC_TIMER_64COUNTER_CTRL);
@@ -282,7 +282,7 @@ static void __init sirfsoc_marco_timer_init(struct device_node *np)
282 /* Clear all interrupts */ 282 /* Clear all interrupts */
283 writel_relaxed(0xFFFF, sirfsoc_timer_base + SIRFSOC_TIMER_INTR_STATUS); 283 writel_relaxed(0xFFFF, sirfsoc_timer_base + SIRFSOC_TIMER_INTR_STATUS);
284 284
285 BUG_ON(clocksource_register_hz(&sirfsoc_clocksource, marco_timer_rate)); 285 BUG_ON(clocksource_register_hz(&sirfsoc_clocksource, atlas7_timer_rate));
286 286
287 sirfsoc_clockevent_init(); 287 sirfsoc_clockevent_init();
288} 288}
@@ -301,6 +301,6 @@ static void __init sirfsoc_of_timer_init(struct device_node *np)
301 if (!sirfsoc_timer1_irq.irq) 301 if (!sirfsoc_timer1_irq.irq)
302 panic("No irq passed for timer1 via DT\n"); 302 panic("No irq passed for timer1 via DT\n");
303 303
304 sirfsoc_marco_timer_init(np); 304 sirfsoc_atlas7_timer_init(np);
305} 305}
306CLOCKSOURCE_OF_DECLARE(sirfsoc_marco_timer, "sirf,marco-tick", sirfsoc_of_timer_init ); 306CLOCKSOURCE_OF_DECLARE(sirfsoc_atlas7_timer, "sirf,atlas7-tick", sirfsoc_of_timer_init);