Board-specific GPIO setup code

Fabio Estevam festevam at gmail.com
Mon Jul 29 13:21:05 EDT 2013


On Mon, Jul 29, 2013 at 1:49 PM, Stephen Warren <swarren at wwwdotorg.org> wrote:
> On 07/28/2013 12:53 PM, Tony Prisk wrote:
>> On the Wandboard (IMX6Q SoC), there is a WiFi module connected via SDIO
>> that requires a reset procedure to enable it. This would be board
>> specific setup, but gpio_* functions can't be used in
>> arch/arm/mach-imx/imx6q.c
>>
>> What would be the correct place to perform the reset code (basically a
>> series of gpio calls) to reset the WiFi controller or should it be done
>> earlier in uboot?
>
> The correct approach is probably to enhance the SDIO controller (or SDIO
> core) to know how to power/reset/... the device that's attached to it.

Can't we just use the gpio reset driver proposed by Philipp Zabel?
http://www.spinics.net/lists/arm-kernel/msg261771.html

Regards,

Fabio Estevam



More information about the linux-arm-kernel mailing list