1 /* $NetBSD: mt65xx.h,v 1.1.1.2 2020/01/03 14:33:03 skrll Exp $ */ 2 3 /* SPDX-License-Identifier: GPL-2.0-only */ 4 /* 5 * Copyright (c) 2014 MediaTek Inc. 6 * Author: Hongzhou.Yang <hongzhou.yang (at) mediatek.com> 7 */ 8 9 #ifndef _DT_BINDINGS_PINCTRL_MT65XX_H 10 #define _DT_BINDINGS_PINCTRL_MT65XX_H 11 12 #define MTK_PIN_NO(x) ((x) << 8) 13 #define MTK_GET_PIN_NO(x) ((x) >> 8) 14 #define MTK_GET_PIN_FUNC(x) ((x) & 0xf) 15 16 #define MTK_PUPD_SET_R1R0_00 100 17 #define MTK_PUPD_SET_R1R0_01 101 18 #define MTK_PUPD_SET_R1R0_10 102 19 #define MTK_PUPD_SET_R1R0_11 103 20 21 #define MTK_DRIVE_2mA 2 22 #define MTK_DRIVE_4mA 4 23 #define MTK_DRIVE_6mA 6 24 #define MTK_DRIVE_8mA 8 25 #define MTK_DRIVE_10mA 10 26 #define MTK_DRIVE_12mA 12 27 #define MTK_DRIVE_14mA 14 28 #define MTK_DRIVE_16mA 16 29 #define MTK_DRIVE_20mA 20 30 #define MTK_DRIVE_24mA 24 31 #define MTK_DRIVE_28mA 28 32 #define MTK_DRIVE_32mA 32 33 34 #endif /* _DT_BINDINGS_PINCTRL_MT65XX_H */ 35