From: swarren@wwwdotorg.org (Stephen Warren)
To: linux-arm-kernel@lists.infradead.org
Subject: Board-specific GPIO setup code
Date: Mon, 29 Jul 2013 10:49:47 -0600 [thread overview]
Message-ID: <51F69D2B.6030605@wwwdotorg.org> (raw)
In-Reply-To: <51F568AD.8030001@prisktech.co.nz>
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.
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.
next prev parent reply other threads:[~2013-07-29 16:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-28 18:53 Board-specific GPIO setup code Tony Prisk
2013-07-29 16:49 ` Stephen Warren [this message]
2013-07-29 17:21 ` Fabio Estevam
2013-07-29 17:33 ` Stephen Warren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51F69D2B.6030605@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.