[PATCH 12/17] ARM: pxa/raumfeld: add audio related functions
Mark Brown
broonie at opensource.wolfsonmicro.com
Wed Nov 25 06:41:07 EST 2009
On Wed, Nov 25, 2009 at 11:42:26AM +0100, Daniel Mack wrote:
> + if (en) {
> + gpio_set_value(mfp_to_gpio(GPIO_AUDIO_VA_ENABLE), 1);
This looks like you want to add regulator support to the CODEC.
> + gpio_set_value(mfp_to_gpio(GPIO_MCLK_RESET), 1);
> +
> + /* wait some time to let VA and the clocks become stable */
> + schedule_timeout(HZ/10);
> +
> + gpio_set_value(mfp_to_gpio(GPIO_SPDIF_RESET), 1);
> + gpio_set_value(mfp_to_gpio(GPIO_CODEC_RESET), 1);
The relevant drivers really need to know about this... if you are going
to stick with this approach I'd push all this stuff into the audio
driver, splitting it into this separate file isn't really buying
anything since it's all machine specific and nothing except the audio
driver needs to know what's going on.
More information about the linux-arm-kernel
mailing list