hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/include/linux/platform_data/dmtimer-omap.h
....@@ -1,20 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * DMTIMER platform data for TI OMAP platforms
34 *
45 * Copyright (C) 2012 Texas Instruments
56 * Author: Jon Hunter <jon-hunter@ti.com>
6
- *
7
- * This program is free software; you can redistribute it and/or modify it
8
- * under the terms of the GNU General Public License version 2 as published by
9
- * the Free Software Foundation.
10
- *
11
- * This program is distributed in the hope that it will be useful, but WITHOUT
12
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14
- * more details.
15
- *
16
- * You should have received a copy of the GNU General Public License along with
17
- * this program. If not, see <http://www.gnu.org/licenses/>.
187 */
198
209 #ifndef __PLATFORM_DATA_DMTIMER_OMAP_H__
....@@ -41,12 +30,12 @@
4130 int (*stop)(struct omap_dm_timer *timer);
4231 int (*set_source)(struct omap_dm_timer *timer, int source);
4332
44
- int (*set_load)(struct omap_dm_timer *timer, int autoreload,
45
- unsigned int value);
33
+ int (*set_load)(struct omap_dm_timer *timer, unsigned int value);
4634 int (*set_match)(struct omap_dm_timer *timer, int enable,
4735 unsigned int match);
4836 int (*set_pwm)(struct omap_dm_timer *timer, int def_on,
49
- int toggle, int trigger);
37
+ int toggle, int trigger, int autoreload);
38
+ int (*get_pwm_status)(struct omap_dm_timer *timer);
5039 int (*set_prescaler)(struct omap_dm_timer *timer, int prescaler);
5140
5241 unsigned int (*read_counter)(struct omap_dm_timer *timer);