18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (c) 2014 MediaTek Inc. 48c2ecf20Sopenharmony_ci * Author: Hongzhou.Yang <hongzhou.yang@mediatek.com> 58c2ecf20Sopenharmony_ci */ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#ifndef _DT_BINDINGS_PINCTRL_MT65XX_H 88c2ecf20Sopenharmony_ci#define _DT_BINDINGS_PINCTRL_MT65XX_H 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#define MTK_PIN_NO(x) ((x) << 8) 118c2ecf20Sopenharmony_ci#define MTK_GET_PIN_NO(x) ((x) >> 8) 128c2ecf20Sopenharmony_ci#define MTK_GET_PIN_FUNC(x) ((x) & 0xf) 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci#define MTK_PUPD_SET_R1R0_00 100 158c2ecf20Sopenharmony_ci#define MTK_PUPD_SET_R1R0_01 101 168c2ecf20Sopenharmony_ci#define MTK_PUPD_SET_R1R0_10 102 178c2ecf20Sopenharmony_ci#define MTK_PUPD_SET_R1R0_11 103 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci#define MTK_DRIVE_2mA 2 208c2ecf20Sopenharmony_ci#define MTK_DRIVE_4mA 4 218c2ecf20Sopenharmony_ci#define MTK_DRIVE_6mA 6 228c2ecf20Sopenharmony_ci#define MTK_DRIVE_8mA 8 238c2ecf20Sopenharmony_ci#define MTK_DRIVE_10mA 10 248c2ecf20Sopenharmony_ci#define MTK_DRIVE_12mA 12 258c2ecf20Sopenharmony_ci#define MTK_DRIVE_14mA 14 268c2ecf20Sopenharmony_ci#define MTK_DRIVE_16mA 16 278c2ecf20Sopenharmony_ci#define MTK_DRIVE_20mA 20 288c2ecf20Sopenharmony_ci#define MTK_DRIVE_24mA 24 298c2ecf20Sopenharmony_ci#define MTK_DRIVE_28mA 28 308c2ecf20Sopenharmony_ci#define MTK_DRIVE_32mA 32 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci#endif /* _DT_BINDINGS_PINCTRL_MT65XX_H */ 33