162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * nomadik.h
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Copyright (C) ST-Ericsson SA 2013
662306a36Sopenharmony_ci * Author: Gabriel Fernandez <gabriel.fernandez@st.com> for ST-Ericsson.
762306a36Sopenharmony_ci */
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci#define INPUT_NOPULL		0
1062306a36Sopenharmony_ci#define INPUT_PULLUP		1
1162306a36Sopenharmony_ci#define INPUT_PULLDOWN		2
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci#define OUTPUT_LOW		0
1462306a36Sopenharmony_ci#define OUTPUT_HIGH		1
1562306a36Sopenharmony_ci#define DIR_OUTPUT		2
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci#define SLPM_DISABLED		0
1862306a36Sopenharmony_ci#define SLPM_ENABLED		1
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci#define SLPM_INPUT_NOPULL	0
2162306a36Sopenharmony_ci#define SLPM_INPUT_PULLUP	1
2262306a36Sopenharmony_ci#define SLPM_INPUT_PULLDOWN	2
2362306a36Sopenharmony_ci#define SLPM_DIR_INPUT		3
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ci#define SLPM_OUTPUT_LOW		0
2662306a36Sopenharmony_ci#define SLPM_OUTPUT_HIGH	1
2762306a36Sopenharmony_ci#define SLPM_DIR_OUTPUT		2
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ci#define SLPM_WAKEUP_DISABLE	0
3062306a36Sopenharmony_ci#define SLPM_WAKEUP_ENABLE	1
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ci#define GPIOMODE_DISABLED	0
3362306a36Sopenharmony_ci#define GPIOMODE_ENABLED	1
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ci#define SLPM_PDIS_DISABLED	0
3662306a36Sopenharmony_ci#define SLPM_PDIS_ENABLED	1
37