1 // SPDX-License-Identifier: GPL-2.0
3 * Pinctrl for Cirrus Logic Madera codecs
5 * Copyright (C) 2016-2017 Cirrus Logic
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; version 2.
12 #ifndef PINCTRL_MADERA_H
13 #define PINCTRL_MADERA_H
15 struct madera_pin_groups {
17 const unsigned int *pins;
21 struct madera_pin_chip {
24 const struct madera_pin_groups *pin_groups;
25 unsigned int n_pin_groups;
28 struct madera_pin_private {
29 struct madera *madera;
31 const struct madera_pin_chip *chip; /* chip-specific groups */
34 struct pinctrl_dev *pctl;
37 extern const struct madera_pin_chip cs47l35_pin_chip;
38 extern const struct madera_pin_chip cs47l85_pin_chip;
39 extern const struct madera_pin_chip cs47l90_pin_chip;