Lines Matching +full:mips +full:- +full:gic
6 * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved.
9 #define pr_fmt(fmt) "mips-gic-timer: " fmt
21 #include <asm/mips-cps.h>
45 int cpu = cpumask_first(evt->cpumask); in gic_next_event()
57 res = ((int)(gic_read_count() - cnt) >= 0) ? -ETIME : 0; in gic_next_event()
66 cd->event_handler(cd); in gic_compare_interrupt()
80 cd->name = "MIPS GIC"; in gic_clockevent_cpu_init()
81 cd->features = CLOCK_EVT_FEAT_ONESHOT | in gic_clockevent_cpu_init()
84 cd->rating = 350; in gic_clockevent_cpu_init()
85 cd->irq = gic_timer_irq; in gic_clockevent_cpu_init()
86 cd->cpumask = cpumask_of(cpu); in gic_clockevent_cpu_init()
87 cd->set_next_event = gic_next_event; in gic_clockevent_cpu_init()
118 on_each_cpu(gic_update_frequency, (void *)cnd->new_rate, 1); in gic_clk_notifier()
138 return -ENXIO; in gic_clockevent_init()
147 "clockevents/mips/gic/timer:starting", in gic_clockevent_init()
158 .name = "GIC",
191 if (!mips_gic_present() || !node->parent || in gic_clocksource_of_init()
192 !of_device_is_compatible(node->parent, "mti,gic")) { in gic_clocksource_of_init()
194 return -ENXIO; in gic_clocksource_of_init()
207 } else if (of_property_read_u32(node, "clock-frequency", in gic_clocksource_of_init()
210 return -EINVAL; in gic_clocksource_of_init()
215 return -EINVAL; in gic_clocksource_of_init()
233 TIMER_OF_DECLARE(mips_gic_timer, "mti,gic-timer",