Back to home page

LXR

 
 

    


0001 =======================================================================
0002                 README for btmrvl driver
0003 =======================================================================
0004 
0005 
0006 All commands are used via debugfs interface.
0007 
0008 =====================
0009 Set/get driver configurations:
0010 
0011 Path:   /debug/btmrvl/config/
0012 
0013 gpiogap=[n]
0014 hscfgcmd
0015         These commands are used to configure the host sleep parameters.
0016         bit 8:0  -- Gap
0017         bit 16:8 -- GPIO
0018 
0019         where GPIO is the pin number of GPIO used to wake up the host.
0020         It could be any valid GPIO pin# (e.g. 0-7) or 0xff (SDIO interface
0021         wakeup will be used instead).
0022 
0023         where Gap is the gap in milli seconds between wakeup signal and
0024         wakeup event, or 0xff for special host sleep setting.
0025 
0026         Usage:
0027                 # Use SDIO interface to wake up the host and set GAP to 0x80:
0028                 echo 0xff80 > /debug/btmrvl/config/gpiogap
0029                 echo 1 > /debug/btmrvl/config/hscfgcmd
0030 
0031                 # Use GPIO pin #3 to wake up the host and set GAP to 0xff:
0032                 echo 0x03ff >  /debug/btmrvl/config/gpiogap
0033                 echo 1 > /debug/btmrvl/config/hscfgcmd
0034 
0035 psmode=[n]
0036 pscmd
0037         These commands are used to enable/disable auto sleep mode
0038 
0039         where the option is:
0040                         1       -- Enable auto sleep mode
0041                         0       -- Disable auto sleep mode
0042 
0043         Usage:
0044                 # Enable auto sleep mode
0045                 echo 1 > /debug/btmrvl/config/psmode
0046                 echo 1 > /debug/btmrvl/config/pscmd
0047 
0048                 # Disable auto sleep mode
0049                 echo 0 > /debug/btmrvl/config/psmode
0050                 echo 1 > /debug/btmrvl/config/pscmd
0051 
0052 
0053 hsmode=[n]
0054 hscmd
0055         These commands are used to enable host sleep or wake up firmware
0056 
0057         where the option is:
0058                         1       -- Enable host sleep
0059                         0       -- Wake up firmware
0060 
0061         Usage:
0062                 # Enable host sleep
0063                 echo 1 > /debug/btmrvl/config/hsmode
0064                 echo 1 > /debug/btmrvl/config/hscmd
0065 
0066                 # Wake up firmware
0067                 echo 0 > /debug/btmrvl/config/hsmode
0068                 echo 1 > /debug/btmrvl/config/hscmd
0069 
0070 
0071 ======================
0072 Get driver status:
0073 
0074 Path:   /debug/btmrvl/status/
0075 
0076 Usage:
0077         cat /debug/btmrvl/status/<args>
0078 
0079 where the args are:
0080 
0081 curpsmode
0082         This command displays current auto sleep status.
0083 
0084 psstate
0085         This command display the power save state.
0086 
0087 hsstate
0088         This command display the host sleep state.
0089 
0090 txdnldrdy
0091         This command displays the value of Tx download ready flag.
0092 
0093 
0094 =====================
0095 
0096 Use hcitool to issue raw hci command, refer to hcitool manual
0097 
0098         Usage: Hcitool cmd <ogf> <ocf> [Parameters]
0099 
0100         Interface Control Command
0101         hcitool cmd 0x3f 0x5b 0xf5 0x01 0x00    --Enable All interface
0102         hcitool cmd 0x3f 0x5b 0xf5 0x01 0x01    --Enable Wlan interface
0103         hcitool cmd 0x3f 0x5b 0xf5 0x01 0x02    --Enable BT interface
0104         hcitool cmd 0x3f 0x5b 0xf5 0x00 0x00    --Disable All interface
0105         hcitool cmd 0x3f 0x5b 0xf5 0x00 0x01    --Disable Wlan interface
0106         hcitool cmd 0x3f 0x5b 0xf5 0x00 0x02    --Disable BT interface
0107 
0108 =======================================================================
0109 
0110 
0111 SD8688 firmware:
0112 
0113 /lib/firmware/sd8688_helper.bin
0114 /lib/firmware/sd8688.bin
0115 
0116 
0117 The images can be downloaded from:
0118 
0119 git.infradead.org/users/dwmw2/linux-firmware.git/libertas/