History

mfd: madera: Add support for requesting the supply clocks

Add the ability to get the clock for each clock input pin of the chip and enable MCLK2 since that is expected to be a permanently enabled 32kHz clock.

Charles Keepax committed 7 years ago

Commit 1e624fc1 parent c9d93422 files · +37 −1Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/mfd/madera/core.h+11−0
@@ -8,6 +8,7 @@ · 7 unmodified lines
88 #ifndef MADERA_CORE_H
99 #define MADERA_CORE_H
1010
11+#include <linux/clk.h>
1112 #include <linux/gpio/consumer.h>
1213 #include <linux/interrupt.h>
1314 #include <linux/mfd/madera/pdata.h>
@@ -29,6 +30,13 @@ enum madera_type { · 15 unmodified lines
2930 CS42L92 = 9,
3031 };
3132
33+enum {
34+ MADERA_MCLK1,
35+ MADERA_MCLK2,
36+ MADERA_MCLK3,
37+ MADERA_NUM_MCLK
38+};
39+
3240 #define MADERA_MAX_CORE_SUPPLIES 2
3341 #define MADERA_MAX_GPIOS 40
3442
@@ -155,6 +163,7 @@ struct snd_soc_dapm_context; · 120 unmodified lines
155163 * @irq_dev: the irqchip child driver device
156164 * @irq_data: pointer to irqchip data for the child irqchip driver
157165 * @irq: host irq number from SPI or I2C configuration
166+ * @mclk: Structure holding clock supplies
158167 * @out_clamp: indicates output clamp state for each analogue output
159168 * @out_shorted: indicates short circuit state for each analogue output
160169 * @hp_ena: bitflags of enable state for the headphone outputs
@@ -184,6 +193,8 @@ struct madera { · 23 unmodified lines
184193 struct regmap_irq_chip_data *irq_data;
185194 int irq;
186195
196+ struct clk_bulk_data mclk[MADERA_NUM_MCLK];
197+
187198 unsigned int num_micbias;
188199 unsigned int num_childbias[MADERA_MAX_MICBIAS];
189200

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t