Home | History | Annotate | Line # | Download | only in pinctrl
      1 /*	$NetBSD: sun4i-a10.h,v 1.1.1.1 2017/06/15 20:14:23 jmcneill Exp $	*/
      2 
      3 /*
      4  * Copyright 2014 Maxime Ripard
      5  *
      6  * Maxime Ripard <maxime.ripard (at) free-electrons.com>
      7  *
      8  * This file is dual-licensed: you can use it either under the terms
      9  * of the GPL or the X11 license, at your option. Note that this dual
     10  * licensing only applies to this file, and not this project as a
     11  * whole.
     12  *
     13  *  a) This file is free software; you can redistribute it and/or
     14  *     modify it under the terms of the GNU General Public License as
     15  *     published by the Free Software Foundation; either version 2 of the
     16  *     License, or (at your option) any later version.
     17  *
     18  *     This file is distributed in the hope that it will be useful,
     19  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
     20  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     21  *     GNU General Public License for more details.
     22  *
     23  *     You should have received a copy of the GNU General Public
     24  *     License along with this file; if not, write to the Free
     25  *     Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
     26  *     MA 02110-1301 USA
     27  *
     28  * Or, alternatively,
     29  *
     30  *  b) Permission is hereby granted, free of charge, to any person
     31  *     obtaining a copy of this software and associated documentation
     32  *     files (the "Software"), to deal in the Software without
     33  *     restriction, including without limitation the rights to use,
     34  *     copy, modify, merge, publish, distribute, sublicense, and/or
     35  *     sell copies of the Software, and to permit persons to whom the
     36  *     Software is furnished to do so, subject to the following
     37  *     conditions:
     38  *
     39  *     The above copyright notice and this permission notice shall be
     40  *     included in all copies or substantial portions of the Software.
     41  *
     42  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
     43  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
     44  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
     45  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
     46  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
     47  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
     48  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
     49  *     OTHER DEALINGS IN THE SOFTWARE.
     50  */
     51 
     52 #ifndef __DT_BINDINGS_PINCTRL_SUN4I_A10_H_
     53 #define __DT_BINDINGS_PINCTRL_SUN4I_A10_H_
     54 
     55 #define SUN4I_PINCTRL_10_MA	0
     56 #define SUN4I_PINCTRL_20_MA	1
     57 #define SUN4I_PINCTRL_30_MA	2
     58 #define SUN4I_PINCTRL_40_MA	3
     59 
     60 #define SUN4I_PINCTRL_NO_PULL	0
     61 #define SUN4I_PINCTRL_PULL_UP	1
     62 #define SUN4I_PINCTRL_PULL_DOWN	2
     63 
     64 #endif /* __DT_BINDINGS_PINCTRL_SUN4I_A10_H_ */
     65