* Add support for capture mode which can be used to capture timer pin transitions in order to determine for example PWM period (this was the scenario for which I needed this but I think there are more other useful usecases). The event on which to capture is one of the following: low to high, high to low or both edges timer pin transition. Quote from AM335x_technical_reference_manual.pdf "Capture Mode Functionality: The timer value in TCRR can be captured and saved in TCAR1 or TCAR2 function of the mode selected in TCLR through the field CAPT_MODE when a transition is detected on the module input pin (PIEVENTCAPT). The edge detection circuitry monitors transitions on the input pin (PIEVENTCAPT)." *Add function that reads the captured timer values and stores them to the client module input variables. *Add interrupts for any timer. A client module can register a callback for each timer using the new API function omap_dm_timer_set_isr_callback. The callback will be called from the timer ISR having as parameters the timer handle and the event that triggered the interrupt. This way the client module will know the timer that produced the interrupt and also the interrupt type (match, overflow or capture) so that it can take some action on it. *Add code that does statistics on the diffrent timer interrupts (capture, match and overflow interrupts are counted) and a function that prints the statistics at a certain point in time. Andrei Varvara (2): plat-omap: dmtimer: Add support for interrupts plat-omap: dmtimer: Add support for capture mode arch/arm/plat-omap/dmtimer.c | 202 ++++++++++++++++++++++++++++++ arch/arm/plat-omap/include/plat/dmtimer.h | 42 ++++++- 2 files changed, 243 insertions(+), 1 deletion(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html