Path: blob/main/sys/contrib/device-tree/include/dt-bindings/pinctrl/mt65xx.h
48400 views
/* SPDX-License-Identifier: GPL-2.0-only */1/*2* Copyright (c) 2014 MediaTek Inc.3* Author: Hongzhou.Yang <[email protected]>4*/56#ifndef _DT_BINDINGS_PINCTRL_MT65XX_H7#define _DT_BINDINGS_PINCTRL_MT65XX_H89#define MTK_PIN_NO(x) ((x) << 8)10#define MTK_GET_PIN_NO(x) ((x) >> 8)11#define MTK_GET_PIN_FUNC(x) ((x) & 0xf)1213#define MTK_PUPD_SET_R1R0_00 10014#define MTK_PUPD_SET_R1R0_01 10115#define MTK_PUPD_SET_R1R0_10 10216#define MTK_PUPD_SET_R1R0_11 1031718#define MTK_PULL_SET_RSEL_000 20019#define MTK_PULL_SET_RSEL_001 20120#define MTK_PULL_SET_RSEL_010 20221#define MTK_PULL_SET_RSEL_011 20322#define MTK_PULL_SET_RSEL_100 20423#define MTK_PULL_SET_RSEL_101 20524#define MTK_PULL_SET_RSEL_110 20625#define MTK_PULL_SET_RSEL_111 2072627#define MTK_DRIVE_2mA 228#define MTK_DRIVE_4mA 429#define MTK_DRIVE_6mA 630#define MTK_DRIVE_8mA 831#define MTK_DRIVE_10mA 1032#define MTK_DRIVE_12mA 1233#define MTK_DRIVE_14mA 1434#define MTK_DRIVE_16mA 1635#define MTK_DRIVE_20mA 2036#define MTK_DRIVE_24mA 2437#define MTK_DRIVE_28mA 2838#define MTK_DRIVE_32mA 323940#endif /* _DT_BINDINGS_PINCTRL_MT65XX_H */414243