2 * First generation of pinmux driver for Amlogic Meson SoCs
4 * Copyright (C) 2014 Beniamino Galvani <b.galvani@gmail.com>
5 * Copyright (C) 2017 Jerome Brunet <jbrunet@baylibre.com>
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * version 2 as published by the Free Software Foundation.
11 * You should have received a copy of the GNU General Public License
12 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 struct meson8_pmx_data
{
21 #define PMX_DATA(r, b, g) \
28 #define GROUP(grp, r, b) \
31 .pins = grp ## _pins, \
32 .num_pins = ARRAY_SIZE(grp ## _pins), \
33 .data = (const struct meson8_pmx_data[]){ \
34 PMX_DATA(r, b, false), \
38 #define GPIO_GROUP(gpio) \
41 .pins = (const unsigned int[]){ gpio }, \
43 .data = (const struct meson8_pmx_data[]){ \
44 PMX_DATA(0, 0, true), \
48 extern const struct pinmux_ops meson8_pmx_ops
;