1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * First generation of pinmux driver for Amlogic Meson SoCs
5 * Copyright (C) 2014 Beniamino Galvani <b.galvani@gmail.com>
6 * Copyright (C) 2017 Jerome Brunet <jbrunet@baylibre.com>
9 struct meson8_pmx_data
{
15 #define PMX_DATA(r, b, g) \
22 #define GROUP(grp, r, b) \
25 .pins = grp ## _pins, \
26 .num_pins = ARRAY_SIZE(grp ## _pins), \
27 .data = (const struct meson8_pmx_data[]){ \
28 PMX_DATA(r, b, false), \
32 #define GPIO_GROUP(gpio) \
35 .pins = (const unsigned int[]){ gpio }, \
37 .data = (const struct meson8_pmx_data[]){ \
38 PMX_DATA(0, 0, true), \
42 extern const struct pinmux_ops meson8_pmx_ops
;