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
8#ifndef MADERA_CORE_H8#ifndef MADERA_CORE_H
9#define MADERA_CORE_H9#define MADERA_CORE_H
10 10
11#include <linux/clk.h>
11#include <linux/gpio/consumer.h>12#include <linux/gpio/consumer.h>
12#include <linux/interrupt.h>13#include <linux/interrupt.h>
13#include <linux/mfd/madera/pdata.h>14#include <linux/mfd/madera/pdata.h>
@@ -29,6 +30,13 @@ enum madera_type { · 15 unmodified lines
29 CS42L92 = 9,30 CS42L92 = 9,
30};31};
31 32
33enum {
34 MADERA_MCLK1,
35 MADERA_MCLK2,
36 MADERA_MCLK3,
37 MADERA_NUM_MCLK
38};
39
32#define MADERA_MAX_CORE_SUPPLIES 240#define MADERA_MAX_CORE_SUPPLIES 2
33#define MADERA_MAX_GPIOS 4041#define MADERA_MAX_GPIOS 40
34 42
@@ -155,6 +163,7 @@ struct snd_soc_dapm_context; · 120 unmodified lines
155 * @irq_dev: the irqchip child driver device163 * @irq_dev: the irqchip child driver device
156 * @irq_data: pointer to irqchip data for the child irqchip driver164 * @irq_data: pointer to irqchip data for the child irqchip driver
157 * @irq: host irq number from SPI or I2C configuration165 * @irq: host irq number from SPI or I2C configuration
166 * @mclk: Structure holding clock supplies
158 * @out_clamp: indicates output clamp state for each analogue output167 * @out_clamp: indicates output clamp state for each analogue output
159 * @out_shorted: indicates short circuit state for each analogue output168 * @out_shorted: indicates short circuit state for each analogue output
160 * @hp_ena: bitflags of enable state for the headphone outputs169 * @hp_ena: bitflags of enable state for the headphone outputs
@@ -184,6 +193,8 @@ struct madera { · 23 unmodified lines
184 struct regmap_irq_chip_data *irq_data;193 struct regmap_irq_chip_data *irq_data;
185 int irq;194 int irq;
186 195
196 struct clk_bulk_data mclk[MADERA_NUM_MCLK];
197
187 unsigned int num_micbias;198 unsigned int num_micbias;
188 unsigned int num_childbias[MADERA_MAX_MICBIAS];199 unsigned int num_childbias[MADERA_MAX_MICBIAS];
189 200

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