Changeset 3487


Ignore:
Timestamp:
Dec 13, 2012, 1:19:45 AM (20 months ago)
Author:
wmb
Message:

Marvell WLAN driver - moved the host interrupt mask setting code earlier in the startup sequence to make newer 8787 firmware happy. Also fixed a name collision that was causing (harmless) compilation warnings.

Location:
dev/mmc/sdhci/mv8686
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • dev/mmc/sdhci/mv8686/fw8686.fth

    r3337 r3487  
    7373   fw-download-ok? 0=  if  true exit  then 
    7474 
    75    3 host-int-mask-reg 1 sdio-reg!      \ Enable upload (1) and download (2) 
    7675   mv8787?  if 
    7776      2 config-reg 1 sdio-reg!             \ Host power up 
  • dev/mmc/sdhci/mv8686/sdio.fth

    r3352 r3487  
    2222 
    2323\ FCode doesn't have 2value so we do it this way 
    24 0 value fw-adr 
    25 0 value fw-len 
    26 : default-fw$  ( -- adr len )  fw-adr fw-len  ; 
    27 : set-default-fw$  ( adr len -- )  to fw-len  to fw-adr  ; 
     240 value fw-name-adr 
     250 value fw-name-len 
     26: default-fw$  ( -- adr len )  fw-name-adr fw-name-len  ; 
     27: set-default-fw$  ( adr len -- )  to fw-name-len  to fw-name-adr  ; 
    2828 
    29290 value ioport 
     
    227227      host-int-rsr-reg 1 sdio-reg@  h# 3f or  host-int-rsr-reg 1 sdio-reg! 
    228228 
    229 \     3  host-int-mask-reg 1 sdio-reg!  \ Enable upload (1) and download (2) 
    230  
    231229      \ Set Dnld/upld to "auto reset" 
    232230      card-misc-cfg-reg 1 sdio-reg@   h# 10 or  card-misc-cfg-reg 1 sdio-reg! 
    233231   then 
     232   \ Newer revisions of the 8787 firmware empirically require that this 
     233   \ be enabled early, before firmware download.  Older versions, and 
     234   \ 8686 firmware, appear to be content with it either here or after 
     235   \ firmware startup. 
     236   3  host-int-mask-reg 1 sdio-reg!  \ Enable upload (1) and download (2) 
    234237; 
    235238 
Note: See TracChangeset for help on using the changeset viewer.