Home | History | Annotate | Line # | Download | only in pinctrl
rockchip.h revision 1.1
      1 /*	$NetBSD: rockchip.h,v 1.1 2017/06/15 20:14:23 jmcneill Exp $	*/
      2 
      3 /*
      4  * Header providing constants for Rockchip pinctrl bindings.
      5  *
      6  * Copyright (c) 2013 MundoReader S.L.
      7  * Author: Heiko Stuebner <heiko (at) sntech.de>
      8  *
      9  * This program is free software; you can redistribute it and/or modify
     10  * it under the terms of the GNU General Public License as published by
     11  * the Free Software Foundation; either version 2 of the License, or
     12  * (at your option) any later version.
     13  *
     14  * This program is distributed in the hope that it will be useful,
     15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
     16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     17  * GNU General Public License for more details.
     18  */
     19 
     20 #ifndef __DT_BINDINGS_ROCKCHIP_PINCTRL_H__
     21 #define __DT_BINDINGS_ROCKCHIP_PINCTRL_H__
     22 
     23 #define RK_GPIO0	0
     24 #define RK_GPIO1	1
     25 #define RK_GPIO2	2
     26 #define RK_GPIO3	3
     27 #define RK_GPIO4	4
     28 #define RK_GPIO6	6
     29 
     30 #define RK_PA0		0
     31 #define RK_PA1		1
     32 #define RK_PA2		2
     33 #define RK_PA3		3
     34 #define RK_PA4		4
     35 #define RK_PA5		5
     36 #define RK_PA6		6
     37 #define RK_PA7		7
     38 #define RK_PB0		8
     39 #define RK_PB1		9
     40 #define RK_PB2		10
     41 #define RK_PB3		11
     42 #define RK_PB4		12
     43 #define RK_PB5		13
     44 #define RK_PB6		14
     45 #define RK_PB7		15
     46 #define RK_PC0		16
     47 #define RK_PC1		17
     48 #define RK_PC2		18
     49 #define RK_PC3		19
     50 #define RK_PC4		20
     51 #define RK_PC5		21
     52 #define RK_PC6		22
     53 #define RK_PC7		23
     54 #define RK_PD0		24
     55 #define RK_PD1		25
     56 #define RK_PD2		26
     57 #define RK_PD3		27
     58 #define RK_PD4		28
     59 #define RK_PD5		29
     60 #define RK_PD6		30
     61 #define RK_PD7		31
     62 
     63 #define RK_FUNC_GPIO	0
     64 #define RK_FUNC_1	1
     65 #define RK_FUNC_2	2
     66 #define RK_FUNC_3	3
     67 #define RK_FUNC_4	4
     68 
     69 #endif
     70