| /* SPDX-License-Identifier: GPL-2.0+ */ |
| * Copyright (C) 2017 Jerome Brunet <jbrunet@baylibre.com> |
| * Copyright (C) 2017 Xingyu Chen <xingyu.chen@amlogic.com> |
| #ifndef __PINCTRL_MESON_AXG_H__ |
| #define __PINCTRL_MESON_AXG_H__ |
| #include "pinctrl-meson.h" |
| struct meson_axg_pmx_data { |
| struct meson_pmx_bank *pmx_banks; |
| unsigned int num_pmx_banks; |
| #define BANK_PMX(n, f, l, r, o) \ |
| struct meson_pmx_axg_data { |
| .num_pins = ARRAY_SIZE(grp ## _pins), \ |
| .data = (const struct meson_pmx_axg_data[]){ \ |
| #define GPIO_GROUP(gpio, b) \ |
| .pins = (const unsigned int[]){ PIN(gpio, b) }, \ |
| .data = (const struct meson_pmx_axg_data[]){ \ |
| extern const struct pinctrl_ops meson_axg_pinctrl_ops; |
| extern const struct driver meson_axg_gpio_driver; |
| #endif /* __PINCTRL_MESON_AXG_H__ */ |