[PATCH v3] davinci: Add wl1271/wlan support for AM18x
Troy Kisky
troy.kisky at boundarydevices.com
Fri Jul 29 14:51:46 EDT 2011
On 7/28/2011 3:06 PM, Ido Yariv wrote:
> Hi Troy,
>
> On Thu, Jul 28, 2011 at 02:15:41PM -0700, Troy Kisky wrote:
>>> + if (power_on) {
>>> + /* Power up sequence required for wl127x devices */
>>> + gpio_set_value(DA850_WLAN_EN, 1);
>>> + usleep_range(15000, 15000);
>>> + gpio_set_value(DA850_WLAN_EN, 0);
>>> + usleep_range(1000, 1000);
>>> + gpio_set_value(DA850_WLAN_EN, 1);
>>> + msleep(70);
>>
>> Why turn on, then off, and then back on?
>> Isn't off, then back on sufficient?
>
> Unfortunately, no. This is a required power up sequence for some
> hardware revisions of the 1271 chip.
That's too bad.
>
>> Also, why not use regulator API like panda board does?
>
> Unlike omap_hsmmc, davinci's MMC host driver does not toggle any
> regulators. To keep things simple, a set_power callback function was
> added to the mmc host as part of this patch series.
> I've considered adding regulator support instead, but found it to be
> a bit over-complicated for this task. In addition, it would require
> either modifying the fixed regulator or adding a new one in order to
> support the above power sequence.
Yes, that is more effort. I'm fine with your method, but with all
the consolidation effort that's being expended currently, it would
be nice if all boards could use a common method to power up sdio cards.
It might make a device tree implementation for this driver easier too,
though I am certainly no expert there.
>
> Thanks for your review,
> Ido.
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>
More information about the linux-arm-kernel
mailing list