18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * nomadik.h
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (C) ST-Ericsson SA 2013
68c2ecf20Sopenharmony_ci * Author: Gabriel Fernandez <gabriel.fernandez@st.com> for ST-Ericsson.
78c2ecf20Sopenharmony_ci */
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#define INPUT_NOPULL		0
108c2ecf20Sopenharmony_ci#define INPUT_PULLUP		1
118c2ecf20Sopenharmony_ci#define INPUT_PULLDOWN		2
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#define OUTPUT_LOW		0
148c2ecf20Sopenharmony_ci#define OUTPUT_HIGH		1
158c2ecf20Sopenharmony_ci#define DIR_OUTPUT		2
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#define SLPM_DISABLED		0
188c2ecf20Sopenharmony_ci#define SLPM_ENABLED		1
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci#define SLPM_INPUT_NOPULL	0
218c2ecf20Sopenharmony_ci#define SLPM_INPUT_PULLUP	1
228c2ecf20Sopenharmony_ci#define SLPM_INPUT_PULLDOWN	2
238c2ecf20Sopenharmony_ci#define SLPM_DIR_INPUT		3
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#define SLPM_OUTPUT_LOW		0
268c2ecf20Sopenharmony_ci#define SLPM_OUTPUT_HIGH	1
278c2ecf20Sopenharmony_ci#define SLPM_DIR_OUTPUT		2
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci#define SLPM_WAKEUP_DISABLE	0
308c2ecf20Sopenharmony_ci#define SLPM_WAKEUP_ENABLE	1
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci#define GPIOMODE_DISABLED	0
338c2ecf20Sopenharmony_ci#define GPIOMODE_ENABLED	1
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci#define SLPM_PDIS_DISABLED	0
368c2ecf20Sopenharmony_ci#define SLPM_PDIS_ENABLED	1
37