1 1.1 jmcneill /* $NetBSD: nomadik.h,v 1.1.1.2 2020/01/03 14:33:03 skrll Exp $ */ 2 1.1 jmcneill 3 1.1.1.2 skrll /* SPDX-License-Identifier: GPL-2.0-only */ 4 1.1 jmcneill /* 5 1.1 jmcneill * nomadik.h 6 1.1 jmcneill * 7 1.1 jmcneill * Copyright (C) ST-Ericsson SA 2013 8 1.1 jmcneill * Author: Gabriel Fernandez <gabriel.fernandez (at) st.com> for ST-Ericsson. 9 1.1 jmcneill */ 10 1.1 jmcneill 11 1.1 jmcneill #define INPUT_NOPULL 0 12 1.1 jmcneill #define INPUT_PULLUP 1 13 1.1 jmcneill #define INPUT_PULLDOWN 2 14 1.1 jmcneill 15 1.1 jmcneill #define OUTPUT_LOW 0 16 1.1 jmcneill #define OUTPUT_HIGH 1 17 1.1 jmcneill #define DIR_OUTPUT 2 18 1.1 jmcneill 19 1.1 jmcneill #define SLPM_DISABLED 0 20 1.1 jmcneill #define SLPM_ENABLED 1 21 1.1 jmcneill 22 1.1 jmcneill #define SLPM_INPUT_NOPULL 0 23 1.1 jmcneill #define SLPM_INPUT_PULLUP 1 24 1.1 jmcneill #define SLPM_INPUT_PULLDOWN 2 25 1.1 jmcneill #define SLPM_DIR_INPUT 3 26 1.1 jmcneill 27 1.1 jmcneill #define SLPM_OUTPUT_LOW 0 28 1.1 jmcneill #define SLPM_OUTPUT_HIGH 1 29 1.1 jmcneill #define SLPM_DIR_OUTPUT 2 30 1.1 jmcneill 31 1.1 jmcneill #define SLPM_WAKEUP_DISABLE 0 32 1.1 jmcneill #define SLPM_WAKEUP_ENABLE 1 33 1.1 jmcneill 34 1.1 jmcneill #define GPIOMODE_DISABLED 0 35 1.1 jmcneill #define GPIOMODE_ENABLED 1 36 1.1 jmcneill 37 1.1 jmcneill #define SLPM_PDIS_DISABLED 0 38 1.1 jmcneill #define SLPM_PDIS_ENABLED 1 39