On Sun, Jul 07, 2013 at 09:19:49AM +0200, Markus Pargmann wrote:
On Wed, Jul 03, 2013 at 05:17:27PM +0100, Mark Brown wrote:
+extern void pca100_ac97_cold_reset(struct snd_ac97 *ac97); +extern void pca100_ac97_warm_reset(struct snd_ac97 *ac97); +#else +static void pca100_ac97_cold_reset(struct snd_ac97 *ac97) { } +static void pca100_ac97_warm_reset(struct snd_ac97 *ac97) { }
These functions have no reason to be anywhere except in the driver and really you should just be specifying which pins to use there - ideally via pinctrl but I don't think i.MX has adopted that yet.
There are no pinctrl driver for imx27(pca100) or imx35(pcm043). The iomux/pad configure functions are defined inside mach-imx/ including their headers. Both reset functions have to configure iomux/pad before and after using gpio. So I think it's not possible to make the reset based on the gpio pins without the necessary iomux/pad configuration.
That all sounds fixable - either make pinctrl available or make the headers usefully visible. You can see the arch headers in the build of the entire kernel...