diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-07-18 00:54:21 +0200 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2013-11-15 13:52:57 +0900 |
commit | 124335d11ccdd3dd7b62fc45d0933553496eaeba (patch) | |
tree | cbf0618d917cba6310f30a182b6f25e6e10a225b /include/dt-bindings/pwm/pwm.h | |
parent | 28527b4a4abb993ed3a29c4beec31a202a773a02 (diff) | |
download | linux-3.10-124335d11ccdd3dd7b62fc45d0933553496eaeba.tar.gz linux-3.10-124335d11ccdd3dd7b62fc45d0933553496eaeba.tar.bz2 linux-3.10-124335d11ccdd3dd7b62fc45d0933553496eaeba.zip |
pwm: Add PWM polarity flag macro for DT
Define a PWM_POLARITY_INVERTED macro in include/dt-bindings/pwm/pwm.h to
be used by device tree sources.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'include/dt-bindings/pwm/pwm.h')
-rw-r--r-- | include/dt-bindings/pwm/pwm.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/dt-bindings/pwm/pwm.h b/include/dt-bindings/pwm/pwm.h new file mode 100644 index 00000000000..96f49e82253 --- /dev/null +++ b/include/dt-bindings/pwm/pwm.h @@ -0,0 +1,14 @@ +/* + * This header provides constants for most PWM bindings. + * + * Most PWM bindings can include a flags cell as part of the PWM specifier. + * In most cases, the format of the flags cell uses the standard values + * defined in this header. + */ + +#ifndef _DT_BINDINGS_PWM_PWM_H +#define _DT_BINDINGS_PWM_PWM_H + +#define PWM_POLARITY_INVERTED (1 << 0) + +#endif |