mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
mfd: twl6040: Register child device for twl6040-pdmclk
The McPDM in OMAP4/5 is using the pdmclk from twl6040 as functional clock. The twl6040-pdmclk driver provides a clock which can be used to make sure that the pdmclk is active when the McPDM is in use. Signed-off-by: Peter Ujfalusi <[email protected]> Acked-by: Rob Herring <[email protected]> Signed-off-by: Lee Jones <[email protected]>
This commit is contained in:
parent
25d94a11db
commit
0133d32346
3 changed files with 7 additions and 1 deletions
|
|
@ -783,6 +783,11 @@ static int twl6040_probe(struct i2c_client *client,
|
|||
cell->name = "twl6040-gpo";
|
||||
children++;
|
||||
|
||||
/* PDM clock support */
|
||||
cell = &twl6040->cells[children];
|
||||
cell->name = "twl6040-pdmclk";
|
||||
children++;
|
||||
|
||||
/* The chip is powered down so mark regmap to cache only and dirty */
|
||||
regcache_cache_only(twl6040->regmap, true);
|
||||
regcache_mark_dirty(twl6040->regmap);
|
||||
|
|
|
|||
Loading…
Reference in a new issue