summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-07-18 00:54:21 +0200
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:45:22 +0900
commit936010d9ae688cf7cfdc2bfc59a6927fae5444d5 (patch)
treefbbf8ee7a8a5871a23bafbac663dbb9fdcfdbfa4 /include
parentc111d3dff6a39d077175ba7ad11478beef6e22a4 (diff)
downloadlinux-3.10-936010d9ae688cf7cfdc2bfc59a6927fae5444d5.tar.gz
linux-3.10-936010d9ae688cf7cfdc2bfc59a6927fae5444d5.tar.bz2
linux-3.10-936010d9ae688cf7cfdc2bfc59a6927fae5444d5.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')
-rw-r--r--include/dt-bindings/pwm/pwm.h14
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