.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * DMTIMER platform data for TI OMAP platforms |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2012 Texas Instruments |
---|
5 | 6 | * 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/>. |
---|
18 | 7 | */ |
---|
19 | 8 | |
---|
20 | 9 | #ifndef __PLATFORM_DATA_DMTIMER_OMAP_H__ |
---|
.. | .. |
---|
41 | 30 | int (*stop)(struct omap_dm_timer *timer); |
---|
42 | 31 | int (*set_source)(struct omap_dm_timer *timer, int source); |
---|
43 | 32 | |
---|
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); |
---|
46 | 34 | int (*set_match)(struct omap_dm_timer *timer, int enable, |
---|
47 | 35 | unsigned int match); |
---|
48 | 36 | 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); |
---|
50 | 39 | int (*set_prescaler)(struct omap_dm_timer *timer, int prescaler); |
---|
51 | 40 | |
---|
52 | 41 | unsigned int (*read_counter)(struct omap_dm_timer *timer); |
---|