1295711Sandrew/*-
2331182Seadler * Copyright (c) 2016 Emmanuel Vadot <manu@freebsd.org>
3295711Sandrew * All rights reserved.
4295711Sandrew *
5295711Sandrew * Redistribution and use in source and binary forms, with or without
6295711Sandrew * modification, are permitted provided that the following conditions
7295711Sandrew * are met:
8295711Sandrew * 1. Redistributions of source code must retain the above copyright
9295711Sandrew *    notice, this list of conditions and the following disclaimer.
10295711Sandrew * 2. Redistributions in binary form must reproduce the above copyright
11295711Sandrew *    notice, this list of conditions and the following disclaimer in the
12295711Sandrew *    documentation and/or other materials provided with the distribution.
13295711Sandrew *
14295711Sandrew * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15295711Sandrew * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16295711Sandrew * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17295711Sandrew * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18295711Sandrew * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19295711Sandrew * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20295711Sandrew * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21295711Sandrew * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22295711Sandrew * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23295711Sandrew * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24295711Sandrew * SUCH DAMAGE.
25295711Sandrew *
26295711Sandrew * $FreeBSD: stable/11/sys/arm/allwinner/allwinner_pinctrl.h 331182 2018-03-19 06:40:11Z eadler $
27295711Sandrew */
28295711Sandrew
29295711Sandrew#ifndef _ALLWINNER_PINCTRL_H_
30295711Sandrew#define	_ALLWINNER_PINCTRL_H_
31295711Sandrew
32295711Sandrew#define AW_MAX_FUNC_BY_PIN	8
33295711Sandrew
34295711Sandrewstruct allwinner_pins {
35295711Sandrew	const char *name;
36295711Sandrew	uint8_t port;
37295711Sandrew	uint8_t pin;
38295711Sandrew	const char *functions[8];
39295711Sandrew};
40295711Sandrew
41295711Sandrewstruct allwinner_padconf {
42295711Sandrew	uint32_t			npins;
43295711Sandrew	const struct allwinner_pins *	pins;
44295711Sandrew};
45295711Sandrew
46295711Sandrew#endif /* _ALLWINNER_PINCTRL_H_ */
47