mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-27 20:26:07 +00:00
The DTS uses hardware register values directly in pin controller pin configuration. These are not some IDs or other abstraction layer but raw numbers used in the registers. These numbers were previously put in the bindings header to avoid code duplication and to provide some context meaning (name), but they do not fit the purpose of bindings. It is also quite confusing to use constants prefixed with Exynos for other SoC, because there is actually nothing here in common, except the actual value. Store the constants in a header next to DTS and use them instead of bindings. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Chanho Park <chanho61.park@samsung.com> Acked-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20220605160508.134075-3-krzysztof.kozlowski@linaro.org
28 lines
747 B
C
28 lines
747 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Samsung S3C64xx 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_S3C64XX_PINCTRL_H__
|
|
#define __DTS_ARM_SAMSUNG_S3C64XX_PINCTRL_H__
|
|
|
|
#define S3C64XX_PIN_PULL_NONE 0
|
|
#define S3C64XX_PIN_PULL_DOWN 1
|
|
#define S3C64XX_PIN_PULL_UP 2
|
|
|
|
#define S3C64XX_PIN_FUNC_INPUT 0
|
|
#define S3C64XX_PIN_FUNC_OUTPUT 1
|
|
#define S3C64XX_PIN_FUNC_2 2
|
|
#define S3C64XX_PIN_FUNC_3 3
|
|
#define S3C64XX_PIN_FUNC_4 4
|
|
#define S3C64XX_PIN_FUNC_5 5
|
|
#define S3C64XX_PIN_FUNC_6 6
|
|
#define S3C64XX_PIN_FUNC_EINT 7
|
|
|
|
#endif /* __DTS_ARM_SAMSUNG_S3C64XX_PINCTRL_H__ */
|