1299113Sjmcneill/*- 2299113Sjmcneill * Copyright (c) 2016 Jared McNeill <jmcneill@invisible.ca> 3299113Sjmcneill * All rights reserved. 4299113Sjmcneill * 5299113Sjmcneill * Redistribution and use in source and binary forms, with or without 6299113Sjmcneill * modification, are permitted provided that the following conditions 7299113Sjmcneill * are met: 8299113Sjmcneill * 1. Redistributions of source code must retain the above copyright 9299113Sjmcneill * notice, this list of conditions and the following disclaimer. 10299113Sjmcneill * 2. Redistributions in binary form must reproduce the above copyright 11299113Sjmcneill * notice, this list of conditions and the following disclaimer in the 12299113Sjmcneill * documentation and/or other materials provided with the distribution. 13299113Sjmcneill * 14299113Sjmcneill * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 15299113Sjmcneill * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 16299113Sjmcneill * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 17299113Sjmcneill * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 18299113Sjmcneill * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 19299113Sjmcneill * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 20299113Sjmcneill * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 21299113Sjmcneill * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 22299113Sjmcneill * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23299113Sjmcneill * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24299113Sjmcneill * SUCH DAMAGE. 25299113Sjmcneill * 26299113Sjmcneill * $FreeBSD: releng/11.0/sys/arm/allwinner/a83t/a83t_r_padconf.c 299113 2016-05-05 09:41:57Z jmcneill $ 27299113Sjmcneill */ 28299113Sjmcneill 29299113Sjmcneill#include <sys/cdefs.h> 30299113Sjmcneill__FBSDID("$FreeBSD: releng/11.0/sys/arm/allwinner/a83t/a83t_r_padconf.c 299113 2016-05-05 09:41:57Z jmcneill $"); 31299113Sjmcneill 32299113Sjmcneill#include <sys/param.h> 33299113Sjmcneill#include <sys/systm.h> 34299113Sjmcneill#include <sys/kernel.h> 35299113Sjmcneill#include <sys/types.h> 36299113Sjmcneill 37299113Sjmcneill#include <arm/allwinner/allwinner_pinctrl.h> 38299113Sjmcneill 39299113Sjmcneill#ifdef SOC_ALLWINNER_A83T 40299113Sjmcneill 41299113Sjmcneillstatic const struct allwinner_pins a83t_r_pins[] = { 42299113Sjmcneill { "PL0", 0, 0, { "gpio_in", "gpio_out", "s_rsb", "s_i2c", NULL, NULL, "eint" } }, 43299113Sjmcneill { "PL1", 0, 1, { "gpio_in", "gpio_out", "s_rsb", "s_i2c", NULL, NULL, "eint" } }, 44299113Sjmcneill { "PL2", 0, 2, { "gpio_in", "gpio_out", "s_uart", NULL, NULL, NULL, "eint" } }, 45299113Sjmcneill { "PL3", 0, 3, { "gpio_in", "gpio_out", "s_uart", NULL, NULL, NULL, "eint" } }, 46299113Sjmcneill { "PL4", 0, 4, { "gpio_in", "gpio_out", "s_jtag", NULL, NULL, NULL, "eint" } }, 47299113Sjmcneill { "PL5", 0, 5, { "gpio_in", "gpio_out", "s_jtag", NULL, NULL, NULL, "eint" } }, 48299113Sjmcneill { "PL6", 0, 6, { "gpio_in", "gpio_out", "s_jtag", NULL, NULL, NULL, "eint" } }, 49299113Sjmcneill { "PL7", 0, 7, { "gpio_in", "gpio_out", "s_jtag", NULL, NULL, NULL, "eint" } }, 50299113Sjmcneill { "PL8", 0, 8, { "gpio_in", "gpio_out", "s_i2c", NULL, NULL, NULL, "eint" } }, 51299113Sjmcneill { "PL9", 0, 9, { "gpio_in", "gpio_out", "s_i2c", NULL, NULL, NULL, "eint" } }, 52299113Sjmcneill { "PL10", 0, 10, { "gpio_in", "gpio_out", "s_pwm", NULL, NULL, NULL, "eint" } }, 53299113Sjmcneill { "PL11", 0, 11, { "gpio_in", "gpio_out", NULL, NULL, NULL, "eint" } }, 54299113Sjmcneill { "PL12", 0, 12, { "gpio_in", "gpio_out", "s_cir", NULL, NULL, NULL, "eint" } }, 55299113Sjmcneill}; 56299113Sjmcneill 57299113Sjmcneillconst struct allwinner_padconf a83t_r_padconf = { 58299113Sjmcneill .npins = nitems(a83t_r_pins), 59299113Sjmcneill .pins = a83t_r_pins, 60299113Sjmcneill}; 61299113Sjmcneill 62299113Sjmcneill#endif /* !SOC_ALLWINNER_A83T */ 63