Skip to content

Commit

Permalink
ARM: dt: add header to define GPIO flags
Browse files Browse the repository at this point in the history
Many GPIO device tree bindings use the same flags. Create a header to
define those.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Rob Herring <rob.herring@calxeda.com>
  • Loading branch information
Stephen Warren committed Apr 5, 2013
1 parent b40b25f commit 71fab21
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions include/dt-bindings/gpio/gpio.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* This header provides constants for most GPIO bindings.
*
* Most GPIO bindings include a flags cell as part of the GPIO specifier.
* In most cases, the format of the flags cell uses the standard values
* defined in this header.
*/

#ifndef _DT_BINDINGS_GPIO_GPIO_H
#define _DT_BINDINGS_GPIO_GPIO_H

#define GPIO_ACTIVE_HIGH 0
#define GPIO_ACTIVE_LOW 1

#endif

0 comments on commit 71fab21

Please sign in to comment.