.. | .. |
---|
1 | | -// SPDX-License-Identifier: GPL-2.0 |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
2 | 2 | /* |
---|
3 | 3 | * Platform data for Cirrus Logic Madera codecs |
---|
4 | 4 | * |
---|
5 | 5 | * Copyright (C) 2015-2018 Cirrus Logic |
---|
6 | | - * |
---|
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. |
---|
10 | 6 | */ |
---|
11 | 7 | |
---|
12 | 8 | #ifndef MADERA_PDATA_H |
---|
.. | .. |
---|
16 | 12 | #include <linux/regulator/arizona-ldo1.h> |
---|
17 | 13 | #include <linux/regulator/arizona-micsupp.h> |
---|
18 | 14 | #include <linux/regulator/machine.h> |
---|
| 15 | +#include <sound/madera-pdata.h> |
---|
19 | 16 | |
---|
20 | 17 | #define MADERA_MAX_MICBIAS 4 |
---|
21 | 18 | #define MADERA_MAX_CHILD_MICBIAS 4 |
---|
.. | .. |
---|
24 | 21 | |
---|
25 | 22 | struct gpio_desc; |
---|
26 | 23 | struct pinctrl_map; |
---|
27 | | -struct madera_irqchip_pdata; |
---|
28 | | -struct madera_codec_pdata; |
---|
29 | 24 | |
---|
30 | 25 | /** |
---|
31 | 26 | * struct madera_pdata - Configuration data for Madera devices |
---|
.. | .. |
---|
35 | 30 | * @micvdd: Substruct of pdata for the MICVDD regulator |
---|
36 | 31 | * @irq_flags: Mode for primary IRQ (defaults to active low) |
---|
37 | 32 | * @gpio_base: Base GPIO number |
---|
38 | | - * @gpio_configs: Array of GPIO configurations (See Documentation/pinctrl.txt) |
---|
| 33 | + * @gpio_configs: Array of GPIO configurations (See |
---|
| 34 | + * Documentation/driver-api/pinctl.rst) |
---|
39 | 35 | * @n_gpio_configs: Number of entries in gpio_configs |
---|
40 | 36 | * @gpsw: General purpose switch mode setting. Depends on the external |
---|
41 | 37 | * hardware connected to the switch. (See the SW1_MODE field |
---|
42 | 38 | * in the datasheet for the available values for your codec) |
---|
| 39 | + * @codec: Substruct of pdata for the ASoC codec driver |
---|
43 | 40 | */ |
---|
44 | 41 | struct madera_pdata { |
---|
45 | 42 | struct gpio_desc *reset; |
---|
.. | .. |
---|
54 | 51 | int n_gpio_configs; |
---|
55 | 52 | |
---|
56 | 53 | u32 gpsw[MADERA_MAX_GPSW]; |
---|
| 54 | + |
---|
| 55 | + struct madera_codec_pdata codec; |
---|
57 | 56 | }; |
---|
58 | 57 | |
---|
59 | 58 | #endif |
---|