Home | History | Annotate | Line # | Download | only in pinctrl
      1 /*	$NetBSD: nomadik.h,v 1.1.1.2 2020/01/03 14:33:03 skrll Exp $	*/
      2 
      3 /* SPDX-License-Identifier: GPL-2.0-only */
      4 /*
      5  * nomadik.h
      6  *
      7  * Copyright (C) ST-Ericsson SA 2013
      8  * Author: Gabriel Fernandez <gabriel.fernandez (at) st.com> for ST-Ericsson.
      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