blob: 203faaf54da547d855e477bc6d8224c371a262d4 [file] [log] [blame]
===============================================================================
U S E R M A N U A L
Copyright (C) 2003-2008, Marvell International Ltd.
This software file (the "File") is distributed by Marvell International
Ltd. under the terms of the GNU General Public License Version 2, June 1991
(the "License"). You may use, redistribute and/or modify this File in
accordance with the terms and conditions of the License, a copy of which
is available along with the File in the gpl.txt file or by writing to
the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 or on the worldwide web at http://www.gnu.org/licenses/gpl.txt.
THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE
IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
ARE EXPRESSLY DISCLAIMED. The License provides additional details about
this warranty disclaimer.
===============================================================================
1) FOR DRIVER BUILD
Goto source code directory src_xxxx.
make [clean] build
The driver binaries can be found in ../bin_xxxx_bt directory.
2) FOR DRIVER INSTALL
a) Copy sd8790.bin | sd8787.bin | ... to /lib/firmware/mrvl/ directory,
create the directory if it doesn't exist.
b) Install bluetooth driver,
insmod bt8688.ko | bt8790.ko | ...
c) Uninstall bluetooth driver and sdio bus driver,
hciconfig hciX down
rmmod bt8xxx
3) cat /proc/mbt/hcix/config
This command is used to get the current driver settings.
4) cat /proc/mbt/hcix/status
This command is used to get driver status
5) proc commands to config bluetooth parameters.
drvdbg=[n]
This command is used to set the bit masks of driver debug message control.
bit 0: MSG PRINTM(MSG,...)
bit 1: FATAL PRINTM(FATAL,...)
bit 2: ERROR PRINTM(ERROR,...)
bit 3: CMD PRINTM(CMD,...)
bit 27: DATA DBG_HEXDUMP(DBG_DATA,...)
bit 28: ENTRY PRINTM(ENTRY,...), ENTER(), LEAVE()
bit 29: WARN PRINTM(WARN,...)
bit 30: INFO PRINTM(INFO,...)
Usage:
echo "drvdbg=0x7" > /proc/mbt/hcix/config #enable MSG,FATAL,ERROR messages
gpio_gap=[n]
This command is used to configure the host sleep parameters.
bit 8:0 -- Gap
bit 16:8 -- GPIO
where GPIO is the pin number of GPIO used to wakeup the host. It could be any valid
GPIO pin# (e.g. 0-7) or 0xff (Interface, e.g. SDIO will be used instead).
where Gap is the gap in milli seconds between wakeup signal and wakeup event
or 0xff for special setting.
Usage:
echo "gpio_gap=0xff80" > /proc/mbt/hcix/config # use Interface (e.g. SDIO)
echo "hscfgcmd=1" > /proc/mbt/hcix/config # gap = 0x80
echo "gpio_gap=0x03ff" > /proc/mbt/hcix/config # use gpio 3
echo "hscfgcmd=1" > /proc/mbt/hcix/config # and special host sleep mode
psmode=[n]
This command is used to enable/disable auto sleep mode
where the option is:
1 -- Enable auto sleep mode
0 -- Disable auto sleep mode
Usage:
echo "psmode=1" > /proc/mbt/hcix/config #enable power save mode
echo "pscmd=1" > /proc/mbt/hcix/config
echo "psmode=0" > /proc/mbt/hcix/config #disable power save mode
echo "pscmd=1" > /proc/mbt/hcix/config
6)Use hcitool to issue raw hci command, refer to hcitool manual
Usage: Hcitool cmd <ogf> <ocf> [Parameters]
1.Interface Control Command
hcitool cmd 0x3f 0x5b 0xf5 0x01 0x00 --Enable All interface
hcitool cmd 0x3f 0x5b 0xf5 0x01 0x01 --Enable Wlan interface
hcitool cmd 0x3f 0x5b 0xf5 0x01 0x02 --Enable BT interface
hcitool cmd 0x3f 0x5b 0xf5 0x00 0x00 --Disable All interface
hcitool cmd 0x3f 0x5b 0xf5 0x00 0x01 --Disable Wlan interface
hcitool cmd 0x3f 0x5b 0xf5 0x00 0x02 --Disable BT interface
==============================================================================