diff options
Diffstat (limited to 'drivers/pwm/pwm-tipwmss.h')
-rw-r--r-- | drivers/pwm/pwm-tipwmss.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-tipwmss.h b/drivers/pwm/pwm-tipwmss.h new file mode 100644 index 000000000000..11f76a1e266b --- /dev/null +++ b/drivers/pwm/pwm-tipwmss.h | |||
@@ -0,0 +1,39 @@ | |||
1 | /* | ||
2 | * TI PWM Subsystem driver | ||
3 | * | ||
4 | * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | */ | ||
17 | |||
18 | #ifndef __TIPWMSS_H | ||
19 | #define __TIPWMSS_H | ||
20 | |||
21 | #ifdef CONFIG_PWM_TIPWMSS | ||
22 | /* PWM substem clock gating */ | ||
23 | #define PWMSS_ECAPCLK_EN BIT(0) | ||
24 | #define PWMSS_ECAPCLK_STOP_REQ BIT(1) | ||
25 | #define PWMSS_EPWMCLK_EN BIT(8) | ||
26 | #define PWMSS_EPWMCLK_STOP_REQ BIT(9) | ||
27 | |||
28 | #define PWMSS_ECAPCLK_EN_ACK BIT(0) | ||
29 | #define PWMSS_EPWMCLK_EN_ACK BIT(8) | ||
30 | |||
31 | extern u16 pwmss_submodule_state_change(struct device *dev, int set); | ||
32 | #else | ||
33 | static inline u16 pwmss_submodule_state_change(struct device *dev, int set) | ||
34 | { | ||
35 | /* return success status value */ | ||
36 | return 0xFFFF; | ||
37 | } | ||
38 | #endif | ||
39 | #endif /* __TIPWMSS_H */ | ||