Lines Matching +full:mmp +full:- +full:timer
2 * linux/arch/arm/mach-mmp/time.c
9 * 2008-04-11: Jason Chagas <Jason.chagas@marvell.com>
10 * 2008-10-08: Bin Yang <bin.yang@marvell.com>
12 * The timers module actually includes three timers, each timer with up to
13 * three match comparators. Timer #0 is used here in free-running mode as
34 #include "addr-map.h"
35 #include "regs-timers.h"
36 #include "regs-apbc.h"
55 * FIXME: the timer needs some delay to stablize the counter capture
63 while (delay--) in timer_read()
84 * Disable timer 0. in timer_interrupt()
88 c->event_handler(c); in timer_interrupt()
101 * Disable timer 0. in timer_set_next_event()
106 * Clear and enable timer match 0 interrupt. in timer_set_next_event()
112 * Setup new clockevent timer value. in timer_set_next_event()
114 __raw_writel(delta - 1, mmp_timer_base + TMR_TN_MM(0, 0)); in timer_set_next_event()
117 * Enable timer 0. in timer_set_next_event()
170 /* set timer 0 to periodic mode, and timer 1 to free-running mode */ in timer_config()
177 __raw_writel(0x0, mmp_timer_base + TMR_PLCR(1)); /* free-running */ in timer_config()
181 /* enable timer 1 counter */ in timer_config()
186 .name = "timer",
209 { .compatible = "mrvl,mmp-timer", },
220 ret = -ENODEV; in mmp_dt_init_timer()
226 ret = -EINVAL; in mmp_dt_init_timer()
231 ret = -ENOMEM; in mmp_dt_init_timer()
237 pr_err("Failed to get timer from device tree with error:%d\n", ret); in mmp_dt_init_timer()