xref: /linux/arch/arm/boot/dts/samsung/s5pv210-pinctrl.h (revision cdd5b5a9761fd66d17586e4f4ba6588c70e640ea)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Samsung S5PV210 DTS pinctrl constants
4  *
5  * Copyright (c) 2016 Samsung Electronics Co., Ltd.
6  *		http://www.samsung.com
7  * Copyright (c) 2022 Linaro Ltd
8  * Author: Krzysztof Kozlowski <krzk@kernel.org>
9  */
10 
11 #ifndef __DTS_ARM_SAMSUNG_S5PV210_PINCTRL_H__
12 #define __DTS_ARM_SAMSUNG_S5PV210_PINCTRL_H__
13 
14 #define S5PV210_PIN_PULL_NONE		0
15 #define S5PV210_PIN_PULL_DOWN		1
16 #define S5PV210_PIN_PULL_UP		2
17 
18 /* Pin function in power down mode */
19 #define S5PV210_PIN_PDN_OUT0		0
20 #define S5PV210_PIN_PDN_OUT1		1
21 #define S5PV210_PIN_PDN_INPUT		2
22 #define S5PV210_PIN_PDN_PREV		3
23 
24 #define S5PV210_PIN_DRV_LV1		0
25 #define S5PV210_PIN_DRV_LV2		2
26 #define S5PV210_PIN_DRV_LV3		1
27 #define S5PV210_PIN_DRV_LV4		3
28 
29 #define S5PV210_PIN_FUNC_INPUT		0
30 #define S5PV210_PIN_FUNC_OUTPUT		1
31 #define S5PV210_PIN_FUNC_2		2
32 #define S5PV210_PIN_FUNC_3		3
33 #define S5PV210_PIN_FUNC_4		4
34 #define S5PV210_PIN_FUNC_5		5
35 #define S5PV210_PIN_FUNC_6		6
36 #define S5PV210_PIN_FUNC_EINT		0xf
37 #define S5PV210_PIN_FUNC_F		S5PV210_PIN_FUNC_EINT
38 
39 #endif /* __DTS_ARM_SAMSUNG_S5PV210_PINCTRL_H__ */
40