Search Linux Wireless

Re: [WIP PATCH] sdio support for wl12xx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 20, 2009 at 3:05 PM, Kalle Valo <kalle.valo@xxxxxx> wrote:
> Bob Copeland <me@xxxxxxxxxxxxxxx> writes:
>> So much for hubris!
>
> Don't feel down about this, this is always difficult and you are making
> good progress already.

Heh, just a joke :)

> Current wl12xx code assumes that user space provides the NVS file. I'm
> guessing that Android has NVS file stored in chip's EEPROM. Check the
> !pWhalBus->pEEPROMBuf code path from TI's driver how to implement it.

If you don't mind, check my work -- the shmFwCtrl.c code seems to do
the equivalent of:

   // initiate eeprom transfer
   wl12xx_reg_write32(wl, ACX_REG_EE_START, ACX_REG_EEPROM_START_BIT); // ***
   msleep(40);
   msleep(40);

   // sets spad4 to 0, I guess this is some kind of address register?
   wl12xx_reg_write32(wl, ACX_EEPROMLESS_IND_REG, 0);

   // everything from here on out is the same - read spad2 and 3 then boot.

*** NB: I redefined ACX_REG_EEPROM_START_BIT to BIT(0) -- BIT(1) looked
wrong unless that define is meant for something else.

The state machine is kind of hard to read, but it seems like there should
be more to it.  Did I miss anything as far as you can tell?  I get all
zeros from spad2 and spad3 so it's not working with just the above...

> Please let me know if you have any questions. I try to get hold of
> pandora, it has wl1251 using SDIO, so that I could help you with
> testing.
>
> http://www.openpandora.org/

I'll take one too :)

-- 
Bob Copeland %% www.bobcopeland.com
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux