File: s5pv210-pinctrl.h

package info (click to toggle)
linux 6.1.137-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,496,408 kB
  • sloc: ansic: 23,468,339; asm: 266,595; sh: 110,522; makefile: 49,887; python: 36,990; perl: 36,834; cpp: 6,056; yacc: 4,908; lex: 2,725; awk: 1,440; ruby: 25; sed: 5
file content (39 lines) | stat: -rw-r--r-- 1,092 bytes parent folder | download | duplicates (28)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Samsung S5PV210 DTS pinctrl constants
 *
 * Copyright (c) 2016 Samsung Electronics Co., Ltd.
 *		http://www.samsung.com
 * Copyright (c) 2022 Linaro Ltd
 * Author: Krzysztof Kozlowski <krzk@kernel.org>
 */

#ifndef __DTS_ARM_SAMSUNG_S5PV210_PINCTRL_H__
#define __DTS_ARM_SAMSUNG_S5PV210_PINCTRL_H__

#define S5PV210_PIN_PULL_NONE		0
#define S5PV210_PIN_PULL_DOWN		1
#define S5PV210_PIN_PULL_UP		2

/* Pin function in power down mode */
#define S5PV210_PIN_PDN_OUT0		0
#define S5PV210_PIN_PDN_OUT1		1
#define S5PV210_PIN_PDN_INPUT		2
#define S5PV210_PIN_PDN_PREV		3

#define S5PV210_PIN_DRV_LV1		0
#define S5PV210_PIN_DRV_LV2		2
#define S5PV210_PIN_DRV_LV3		1
#define S5PV210_PIN_DRV_LV4		3

#define S5PV210_PIN_FUNC_INPUT		0
#define S5PV210_PIN_FUNC_OUTPUT		1
#define S5PV210_PIN_FUNC_2		2
#define S5PV210_PIN_FUNC_3		3
#define S5PV210_PIN_FUNC_4		4
#define S5PV210_PIN_FUNC_5		5
#define S5PV210_PIN_FUNC_6		6
#define S5PV210_PIN_FUNC_EINT		0xf
#define S5PV210_PIN_FUNC_F		S5PV210_PIN_FUNC_EINT

#endif /* __DTS_ARM_SAMSUNG_S5PV210_PINCTRL_H__ */