summaryrefslogtreecommitdiff
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorGokul Praveen <g-praveen@ti.com>2025-08-12 13:53:46 +0300
committerDaniel Lezcano <daniel.lezcano@linaro.org>2025-09-23 13:32:40 +0300
commit0494fc345b377d1207c2cbfef67dc51f6ec874c0 (patch)
treef408d0c2ab55e18be528afc2287a4d8fd6cae63c /include/linux/platform_data
parent4e9bfe6969a768ef40c669fd100c9be70fb78a1f (diff)
downloadlinux-0494fc345b377d1207c2cbfef67dc51f6ec874c0.tar.xz
clocksource/drivers/timer-ti-dm : Capture functionality for OMAP DM timer
Add PWM capture function in DM timer driver. OMAP DM timer hardware supports capture feature.It can be used to timestamp events (falling/rising edges) detected on input signal. Signed-off-by: Gokul Praveen <g-praveen@ti.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Reviewed-by: Neha Malcom Francis <n-francis@ti.com> Link: https://lore.kernel.org/r/20250812105346.203541-1-g-praveen@ti.com
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/dmtimer-omap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/platform_data/dmtimer-omap.h b/include/linux/platform_data/dmtimer-omap.h
index 95d852aef130..726d89143842 100644
--- a/include/linux/platform_data/dmtimer-omap.h
+++ b/include/linux/platform_data/dmtimer-omap.h
@@ -36,9 +36,13 @@ struct omap_dm_timer_ops {
int (*set_pwm)(struct omap_dm_timer *timer, int def_on,
int toggle, int trigger, int autoreload);
int (*get_pwm_status)(struct omap_dm_timer *timer);
+ int (*set_cap)(struct omap_dm_timer *timer,
+ int autoreload, bool config_period);
+ int (*get_cap_status)(struct omap_dm_timer *timer);
int (*set_prescaler)(struct omap_dm_timer *timer, int prescaler);
unsigned int (*read_counter)(struct omap_dm_timer *timer);
+ unsigned int (*read_cap)(struct omap_dm_timer *timer, bool is_period);
int (*write_counter)(struct omap_dm_timer *timer,
unsigned int value);
unsigned int (*read_status)(struct omap_dm_timer *timer);