1*4b68de9cSAndrew Turner /*- 2*4b68de9cSAndrew Turner * Copyright (c) 2016 Emmanuel Vadot <manu@bidouilliste.com> 3*4b68de9cSAndrew Turner * All rights reserved. 4*4b68de9cSAndrew Turner * 5*4b68de9cSAndrew Turner * Redistribution and use in source and binary forms, with or without 6*4b68de9cSAndrew Turner * modification, are permitted provided that the following conditions 7*4b68de9cSAndrew Turner * are met: 8*4b68de9cSAndrew Turner * 1. Redistributions of source code must retain the above copyright 9*4b68de9cSAndrew Turner * notice, this list of conditions and the following disclaimer. 10*4b68de9cSAndrew Turner * 2. Redistributions in binary form must reproduce the above copyright 11*4b68de9cSAndrew Turner * notice, this list of conditions and the following disclaimer in the 12*4b68de9cSAndrew Turner * documentation and/or other materials provided with the distribution. 13*4b68de9cSAndrew Turner * 14*4b68de9cSAndrew Turner * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15*4b68de9cSAndrew Turner * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16*4b68de9cSAndrew Turner * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17*4b68de9cSAndrew Turner * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18*4b68de9cSAndrew Turner * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19*4b68de9cSAndrew Turner * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20*4b68de9cSAndrew Turner * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21*4b68de9cSAndrew Turner * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22*4b68de9cSAndrew Turner * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23*4b68de9cSAndrew Turner * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24*4b68de9cSAndrew Turner * SUCH DAMAGE. 25*4b68de9cSAndrew Turner * 26*4b68de9cSAndrew Turner * $FreeBSD$ 27*4b68de9cSAndrew Turner */ 28*4b68de9cSAndrew Turner 29*4b68de9cSAndrew Turner #ifndef _ALLWINNER_PINCTRL_H_ 30*4b68de9cSAndrew Turner #define _ALLWINNER_PINCTRL_H_ 31*4b68de9cSAndrew Turner 32*4b68de9cSAndrew Turner #define AW_MAX_FUNC_BY_PIN 8 33*4b68de9cSAndrew Turner 34*4b68de9cSAndrew Turner struct allwinner_pins { 35*4b68de9cSAndrew Turner const char *name; 36*4b68de9cSAndrew Turner uint8_t port; 37*4b68de9cSAndrew Turner uint8_t pin; 38*4b68de9cSAndrew Turner const char *functions[8]; 39*4b68de9cSAndrew Turner }; 40*4b68de9cSAndrew Turner 41*4b68de9cSAndrew Turner struct allwinner_padconf { 42*4b68de9cSAndrew Turner uint32_t npins; 43*4b68de9cSAndrew Turner const struct allwinner_pins * pins; 44*4b68de9cSAndrew Turner }; 45*4b68de9cSAndrew Turner 46*4b68de9cSAndrew Turner #endif /* _ALLWINNER_PINCTRL_H_ */ 47