diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2016-08-31 11:46:21 (GMT) |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2016-10-04 14:48:05 (GMT) |
commit | 0133d323463ec20131f7fd5a70051bd89db4f7a1 (patch) | |
tree | 919f9651c5457d77ec6607fc7df686d0be6f7f39 /drivers/mfd/twl6040.c | |
parent | 25d94a11db6d1e07a8a0914f33456c018049992e (diff) | |
download | linux-0133d323463ec20131f7fd5a70051bd89db4f7a1.tar.xz |
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 <peter.ujfalusi@ti.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/twl6040.c')
-rw-r--r-- | drivers/mfd/twl6040.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mfd/twl6040.c b/drivers/mfd/twl6040.c index c3ad59e..d66502d 100644 --- a/drivers/mfd/twl6040.c +++ b/drivers/mfd/twl6040.c @@ -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); |