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>
This commit is contained in:

committed by
Thierry Reding

parent
cfb9e4c40e
commit
9344dade4f
14
include/dt-bindings/pwm/pwm.h
Normal file
14
include/dt-bindings/pwm/pwm.h
Normal file
@@ -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
|
Reference in New Issue
Block a user