Board-specific GPIO setup code
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?
Regards
Tony Prisk
Quoted 8 lines · Tony Prisk
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.cWhat 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. For WiFi, this probably also includes turning on a clock to the conencted device too. Hopefully this is all common enough that the same set of signals/sequencing/... works for all connected devices, so we don't have to do custom stuff on different boards.
Quoted 6 lines · Stephen Warren
Quoted 5 lines · Tony Prisk
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
Quoted 6 lines
Quoted 3 lines
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
Quoted 11 lines · Fabio Estevam
Quoted 10 lines · Stephen Warren
Quoted 8 lines · Tony Prisk
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.cWhat 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?
Quoted 5 lines
Quoted 2 lines
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
Quite possibly, but the SD binding and driver still would need to be updated to actually invoke it.
Also, that only covers reset, not any enable GPIO, 32KHz clock, regulator, etc.