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