18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * Copyright 2014 Maxime Ripard
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Maxime Ripard <maxime.ripard@free-electrons.com>
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * This file is dual-licensed: you can use it either under the terms
78c2ecf20Sopenharmony_ci * of the GPL or the X11 license, at your option. Note that this dual
88c2ecf20Sopenharmony_ci * licensing only applies to this file, and not this project as a
98c2ecf20Sopenharmony_ci * whole.
108c2ecf20Sopenharmony_ci *
118c2ecf20Sopenharmony_ci *  a) This file is free software; you can redistribute it and/or
128c2ecf20Sopenharmony_ci *     modify it under the terms of the GNU General Public License as
138c2ecf20Sopenharmony_ci *     published by the Free Software Foundation; either version 2 of the
148c2ecf20Sopenharmony_ci *     License, or (at your option) any later version.
158c2ecf20Sopenharmony_ci *
168c2ecf20Sopenharmony_ci *     This file is distributed in the hope that it will be useful,
178c2ecf20Sopenharmony_ci *     but WITHOUT ANY WARRANTY; without even the implied warranty of
188c2ecf20Sopenharmony_ci *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
198c2ecf20Sopenharmony_ci *     GNU General Public License for more details.
208c2ecf20Sopenharmony_ci *
218c2ecf20Sopenharmony_ci *     You should have received a copy of the GNU General Public
228c2ecf20Sopenharmony_ci *     License along with this file; if not, write to the Free
238c2ecf20Sopenharmony_ci *     Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
248c2ecf20Sopenharmony_ci *     MA 02110-1301 USA
258c2ecf20Sopenharmony_ci *
268c2ecf20Sopenharmony_ci * Or, alternatively,
278c2ecf20Sopenharmony_ci *
288c2ecf20Sopenharmony_ci *  b) Permission is hereby granted, free of charge, to any person
298c2ecf20Sopenharmony_ci *     obtaining a copy of this software and associated documentation
308c2ecf20Sopenharmony_ci *     files (the "Software"), to deal in the Software without
318c2ecf20Sopenharmony_ci *     restriction, including without limitation the rights to use,
328c2ecf20Sopenharmony_ci *     copy, modify, merge, publish, distribute, sublicense, and/or
338c2ecf20Sopenharmony_ci *     sell copies of the Software, and to permit persons to whom the
348c2ecf20Sopenharmony_ci *     Software is furnished to do so, subject to the following
358c2ecf20Sopenharmony_ci *     conditions:
368c2ecf20Sopenharmony_ci *
378c2ecf20Sopenharmony_ci *     The above copyright notice and this permission notice shall be
388c2ecf20Sopenharmony_ci *     included in all copies or substantial portions of the Software.
398c2ecf20Sopenharmony_ci *
408c2ecf20Sopenharmony_ci *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
418c2ecf20Sopenharmony_ci *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
428c2ecf20Sopenharmony_ci *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
438c2ecf20Sopenharmony_ci *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
448c2ecf20Sopenharmony_ci *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
458c2ecf20Sopenharmony_ci *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
468c2ecf20Sopenharmony_ci *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
478c2ecf20Sopenharmony_ci *     OTHER DEALINGS IN THE SOFTWARE.
488c2ecf20Sopenharmony_ci */
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ci#ifndef __DT_BINDINGS_PINCTRL_SUN4I_A10_H_
518c2ecf20Sopenharmony_ci#define __DT_BINDINGS_PINCTRL_SUN4I_A10_H_
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ci#define SUN4I_PINCTRL_10_MA	0
548c2ecf20Sopenharmony_ci#define SUN4I_PINCTRL_20_MA	1
558c2ecf20Sopenharmony_ci#define SUN4I_PINCTRL_30_MA	2
568c2ecf20Sopenharmony_ci#define SUN4I_PINCTRL_40_MA	3
578c2ecf20Sopenharmony_ci
588c2ecf20Sopenharmony_ci#define SUN4I_PINCTRL_NO_PULL	0
598c2ecf20Sopenharmony_ci#define SUN4I_PINCTRL_PULL_UP	1
608c2ecf20Sopenharmony_ci#define SUN4I_PINCTRL_PULL_DOWN	2
618c2ecf20Sopenharmony_ci
628c2ecf20Sopenharmony_ci#endif /* __DT_BINDINGS_PINCTRL_SUN4I_A10_H_ */
63