diff options
author | Keerthy <j-keerthy@ti.com> | 2018-02-15 01:01:48 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2018-02-22 13:54:07 -0500 |
commit | 76234f7c074ca18c0bfe0b5a608973f9b43c7ebd (patch) | |
tree | f4ffc24646c4a249fc06da624c4867c6324fd9f3 /drivers/clocksource | |
parent | a7f249e33a44432de30d50f3c57868bc00a8f362 (diff) |
clocksource: timer-ti-dm: Populate the timer ops to the pdata
Add the timer ops to the platform data
Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Tested-by: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r-- | drivers/clocksource/timer-ti-dm.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/clocksource/timer-ti-dm.c b/drivers/clocksource/timer-ti-dm.c index 346898809276..4496172b2927 100644 --- a/drivers/clocksource/timer-ti-dm.c +++ b/drivers/clocksource/timer-ti-dm.c | |||
@@ -919,8 +919,33 @@ static int omap_dm_timer_remove(struct platform_device *pdev) | |||
919 | return ret; | 919 | return ret; |
920 | } | 920 | } |
921 | 921 | ||
922 | const static struct omap_dm_timer_ops dmtimer_ops = { | ||
923 | .request_by_node = omap_dm_timer_request_by_node, | ||
924 | .request_specific = omap_dm_timer_request_specific, | ||
925 | .request = omap_dm_timer_request, | ||
926 | .set_source = omap_dm_timer_set_source, | ||
927 | .get_irq = omap_dm_timer_get_irq, | ||
928 | .set_int_enable = omap_dm_timer_set_int_enable, | ||
929 | .set_int_disable = omap_dm_timer_set_int_disable, | ||
930 | .free = omap_dm_timer_free, | ||
931 | .enable = omap_dm_timer_enable, | ||
932 | .disable = omap_dm_timer_disable, | ||
933 | .get_fclk = omap_dm_timer_get_fclk, | ||
934 | .start = omap_dm_timer_start, | ||
935 | .stop = omap_dm_timer_stop, | ||
936 | .set_load = omap_dm_timer_set_load, | ||
937 | .set_match = omap_dm_timer_set_match, | ||
938 | .set_pwm = omap_dm_timer_set_pwm, | ||
939 | .set_prescaler = omap_dm_timer_set_prescaler, | ||
940 | .read_counter = omap_dm_timer_read_counter, | ||
941 | .write_counter = omap_dm_timer_write_counter, | ||
942 | .read_status = omap_dm_timer_read_status, | ||
943 | .write_status = omap_dm_timer_write_status, | ||
944 | }; | ||
945 | |||
922 | static const struct dmtimer_platform_data omap3plus_pdata = { | 946 | static const struct dmtimer_platform_data omap3plus_pdata = { |
923 | .timer_errata = OMAP_TIMER_ERRATA_I103_I767, | 947 | .timer_errata = OMAP_TIMER_ERRATA_I103_I767, |
948 | .timer_ops = &dmtimer_ops, | ||
924 | }; | 949 | }; |
925 | 950 | ||
926 | static const struct of_device_id omap_timer_match[] = { | 951 | static const struct of_device_id omap_timer_match[] = { |