1 /* SPDX-License-Identifier: (GPL-2.0+ or MIT) */
3 * Copyright (c) 2017 Baylibre SAS.
4 * Author: Jerome Brunet <jbrunet@baylibre.com>
6 * Copyright (c) 2017 Amlogic, Inc. All rights reserved.
7 * Author: Xingyu Chen <xingyu.chen@amlogic.com>
11 struct meson_pmx_bank
{
19 struct meson_axg_pmx_data
{
20 struct meson_pmx_bank
*pmx_banks
;
21 unsigned int num_pmx_banks
;
24 #define BANK_PMX(n, f, l, r, o) \
33 struct meson_pmx_axg_data
{
42 #define GROUP(grp, f) \
45 .pins = grp ## _pins, \
46 .num_pins = ARRAY_SIZE(grp ## _pins), \
47 .data = (const struct meson_pmx_axg_data[]){ \
52 #define GPIO_GROUP(gpio) \
55 .pins = (const unsigned int[]){ gpio }, \
57 .data = (const struct meson_pmx_axg_data[]){ \
62 extern const struct pinmux_ops meson_axg_pmx_ops
;