diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2016-05-30 10:23:47 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2016-06-10 14:07:23 +0200 |
commit | c26c84c92ba8907402faaab760dc0e4ecec89dd0 (patch) | |
tree | 6c456728d821d77018a222be747fe5932646cbe5 /arch/arm/mach-omap2/mcbsp.c | |
parent | ARM: OMAP3: McBSP: New callback for McBSP2/3 ICLK idle configuration (diff) | |
download | linux-c26c84c92ba8907402faaab760dc0e4ecec89dd0.tar.xz linux-c26c84c92ba8907402faaab760dc0e4ecec89dd0.zip |
ARM: OMAP3: pdata-quirks: Add support for McBSP2/3 sidetone handling
McBSP2/3 module's sidetone module operates using the module's ICLK clock.
When the Sidetone is in use the interface clock of the module must not
idle. To prevent the iclk idling the driver expects to have pdata callback
to call. With this patch the callback is going to be set up for DT boot
also.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/mcbsp.c')
-rw-r--r-- | arch/arm/mach-omap2/mcbsp.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/mcbsp.c b/arch/arm/mach-omap2/mcbsp.c index 959cb4cb1062..edf4f41c0135 100644 --- a/arch/arm/mach-omap2/mcbsp.c +++ b/arch/arm/mach-omap2/mcbsp.c @@ -59,6 +59,15 @@ static int omap3_mcbsp_force_ick_on(struct clk *clk, bool force_on) return omap2_clk_allow_idle(clk); } +void __init omap3_mcbsp_init_pdata_callback( + struct omap_mcbsp_platform_data *pdata) +{ + if (!pdata) + return; + + pdata->force_ick_on = omap3_mcbsp_force_ick_on; +} + static int __init omap_init_mcbsp(struct omap_hwmod *oh, void *unused) { int id, count = 1; |