• Jarkko Nikula's avatar
    ARM: OMAP: mcbsp: Move sidetone clock management to mach-omap2/mcbsp.c · 1743d14f
    Jarkko Nikula authored
    Active sidetone requires that McBSP interface clock doesn't idle and there
    is no mechanism in hwmod to turn autoidling on/off in runtime. McBSP2 and 3
    in OMAP34xx share their interface clock with McBSP sidetone module and
    that interface clock must be active when the sidetone is operating.
    
    Sidetone has its own autoidle bit which should keep the interface clock
    active but it is broken. Putting the McBSP core to no-idle mode when the
    sidetone is active is no good either since it results to higher power
    consumption when using the threshold based DMA transfers.
    
    For making the McBSP code more generic, move this sidetone clock management
    with fixme comments to mach-omap2/mcbsp.c and pass pointer to it via
    platform data.
    Signed-off-by: default avatarJarkko Nikula <jhnikula@gmail.com>
    Cc: Paul Wamsley <paul@pwsan.com>
    Acked-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
    Tested-by: default avatarJanusz Krzysztofik <jkrzyszt@tis.icnet.pl>
    Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
    1743d14f
mcbsp.c 31.8 KB