Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / pinctrl / cirrus / pinctrl-madera.h
blobc16a4dc19a2a07ea1693041202417c5a342de532
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Pinctrl for Cirrus Logic Madera codecs
5 * Copyright (C) 2016-2017 Cirrus Logic
6 */
8 #ifndef PINCTRL_MADERA_H
9 #define PINCTRL_MADERA_H
11 struct madera_pin_groups {
12 const char *name;
13 const unsigned int *pins;
14 unsigned int n_pins;
17 struct madera_pin_chip {
18 unsigned int n_pins;
20 const struct madera_pin_groups *pin_groups;
21 unsigned int n_pin_groups;
24 struct madera_pin_private {
25 struct madera *madera;
27 const struct madera_pin_chip *chip; /* chip-specific groups */
29 struct device *dev;
30 struct pinctrl_dev *pctl;
33 extern const struct madera_pin_chip cs47l15_pin_chip;
34 extern const struct madera_pin_chip cs47l35_pin_chip;
35 extern const struct madera_pin_chip cs47l85_pin_chip;
36 extern const struct madera_pin_chip cs47l90_pin_chip;
37 extern const struct madera_pin_chip cs47l92_pin_chip;
39 #endif