diff options
author | Barry Song <Baohua.Song@csr.com> | 2015-01-11 11:04:43 -0500 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2015-01-29 08:02:06 -0500 |
commit | 5833ac98651f7985037e52d4b41f7d4e02e32064 (patch) | |
tree | 9d363e681a0115d7fd4926be4620ddf26dc3741a | |
parent | d072c9658c3c2aa204c22e3ef27a0db6b4e3befa (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-- | MAINTAINERS | 2 | ||||
-rw-r--r-- | drivers/clocksource/Makefile | 2 | ||||
-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 | |||
958 | F: arch/arm/mach-prima2/ | 958 | F: arch/arm/mach-prima2/ |
959 | F: drivers/clk/sirf/ | 959 | F: drivers/clk/sirf/ |
960 | F: drivers/clocksource/timer-prima2.c | 960 | F: drivers/clocksource/timer-prima2.c |
961 | F: drivers/clocksource/timer-marco.c | 961 | F: drivers/clocksource/timer-atlas7.c |
962 | N: [^a-z]sirf | 962 | N: [^a-z]sirf |
963 | 963 | ||
964 | ARM/EBSA110 MACHINE SUPPORT | 964 | ARM/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 | |||
18 | obj-$(CONFIG_ORION_TIMER) += time-orion.o | 18 | obj-$(CONFIG_ORION_TIMER) += time-orion.o |
19 | obj-$(CONFIG_ARCH_BCM2835) += bcm2835_timer.o | 19 | obj-$(CONFIG_ARCH_BCM2835) += bcm2835_timer.o |
20 | obj-$(CONFIG_ARCH_CLPS711X) += clps711x-timer.o | 20 | obj-$(CONFIG_ARCH_CLPS711X) += clps711x-timer.o |
21 | obj-$(CONFIG_ARCH_MARCO) += timer-marco.o | 21 | obj-$(CONFIG_ARCH_ATLAS7) += timer-atlas7.o |
22 | obj-$(CONFIG_ARCH_MOXART) += moxart_timer.o | 22 | obj-$(CONFIG_ARCH_MOXART) += moxart_timer.o |
23 | obj-$(CONFIG_ARCH_MXS) += mxs_timer.o | 23 | obj-$(CONFIG_ARCH_MXS) += mxs_timer.o |
24 | obj-$(CONFIG_ARCH_PXA) += pxa_timer.o | 24 | obj-$(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 | ||
41 | static unsigned long marco_timer_rate; | 41 | static unsigned long atlas7_timer_rate; |
42 | 42 | ||
43 | static const u32 sirfsoc_timer_reg_list[SIRFSOC_TIMER_REG_CNT] = { | 43 | static 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 */ |
258 | static void __init sirfsoc_marco_timer_init(struct device_node *np) | 258 | static 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 | } |
306 | CLOCKSOURCE_OF_DECLARE(sirfsoc_marco_timer, "sirf,marco-tick", sirfsoc_of_timer_init ); | 306 | CLOCKSOURCE_OF_DECLARE(sirfsoc_atlas7_timer, "sirf,atlas7-tick", sirfsoc_of_timer_init); |