xref: /netbsd-src/sys/external/gpl2/dts/dist/include/dt-bindings/pinctrl/nomadik.h (revision c38e7cc395b1472a774ff828e46123de44c628e9)
1 /*	$NetBSD: nomadik.h,v 1.1.1.1 2017/06/15 20:14:23 jmcneill Exp $	*/
2 
3 /*
4  * nomadik.h
5  *
6  * Copyright (C) ST-Ericsson SA 2013
7  * Author: Gabriel Fernandez <gabriel.fernandez@st.com> for ST-Ericsson.
8  * License terms:  GNU General Public License (GPL), version 2
9  */
10 
11 #define INPUT_NOPULL		0
12 #define INPUT_PULLUP		1
13 #define INPUT_PULLDOWN		2
14 
15 #define OUTPUT_LOW		0
16 #define OUTPUT_HIGH		1
17 #define DIR_OUTPUT		2
18 
19 #define SLPM_DISABLED		0
20 #define SLPM_ENABLED		1
21 
22 #define SLPM_INPUT_NOPULL	0
23 #define SLPM_INPUT_PULLUP	1
24 #define SLPM_INPUT_PULLDOWN	2
25 #define SLPM_DIR_INPUT		3
26 
27 #define SLPM_OUTPUT_LOW		0
28 #define SLPM_OUTPUT_HIGH	1
29 #define SLPM_DIR_OUTPUT		2
30 
31 #define SLPM_WAKEUP_DISABLE	0
32 #define SLPM_WAKEUP_ENABLE	1
33 
34 #define GPIOMODE_DISABLED	0
35 #define GPIOMODE_ENABLED	1
36 
37 #define SLPM_PDIS_DISABLED	0
38 #define SLPM_PDIS_ENABLED	1
39