===============================================================================
			U S E R  M A N U A L

 Copyright (C) 2003-2014, 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 mbtc_src/.
		make [clean] build
	The driver binary can be found in ../bin_xxxx_btchar directory.

2) FOR DRIVER INSTALL

	a) Install bluetooth driver,
		insmod bt8xxx.ko | mbt8xxx.ko | ...
		insmod bt8xxx.ko | mbt8xxx.ko | ...
	b) Uninstall bluetooth driver,
		rmmod bt8xxx | mbt8xxx

	There are some other parameters for debugging purpose etc. Use modinfo to check details.
	  drvdbg=<bit mask of driver debug message control>
	  psmode=1|0 <enable PS mode (default) | disable PS mode>
	  bt_name=<BT interface name>
	  fm_name=<FM interface name>
	  nfc_name=<NFC interface name>
	  init_cfg=<init config (MAC addresses, registers etc.) file name>
		e.g. copy bt_init_cfg.conf to firmware directory, init_cfg=mrvl/bt_init_cfg.conf
      bt_mac=xx:xx:xx:xx:xx:xx <override the MAC address (in hex)>
      cal_cfg=<BT CAL data config file name>
		e.g. copy bt_cal_data.conf to firmware directory, cal_cfg=mrvl/bt_cal_data.conf
      cal_cfg_ext=<CAL data config file name>
		e.g. copy cal_data.conf to firmware directory, cal_cfg_ext=mrvl/cal_data.conf

	Note: On some platforms (e.g. PXA910/920) double quotation marks ("") need to used
	for module parameters.
		insmod mbt8xxx.ko "<para1> <para2> ..."

3) cat /proc/mbt/mbtcharx/status
	This command is used to get driver status.

4) cat /proc/mbt/mbtcharx/config
	This command is used to get the current driver settings.

5) proc commands to config bluetooth parameters

drvdbg=[n]
	This command is used to set the bit mask of driver debug message control.

	bit 0:  MSG  		PRINTM(MSG,...)
	bit 1:  FATAL		PRINTM(FATAL,...)
	bit 2:  ERROR		PRINTM(ERROR,...)
	bit 3:  DATA 		PRINTM(DATA,...)
	bit 4:  CMD  		PRINTM(CMD,...)
	bit 5:  EVENT		PRINTM(EVENT,...)
	bit 6:  INTR		PRINTM(INTR,...)
	...
	bit 16: DAT_D		PRINTM(DAT_D,...), DBG_HEXDUMP(DAT_D,...)
	bit 17: CMD_D		PRINTM(CMD_D,...), DBG_HEXDUMP(CMD_D,...)
	...
	bit 28: ENTRY		PRINTM(ENTRY,...), ENTER(), LEAVE()
	bit 29: WARN 		PRINTM(WARN,...)
	bit 30: INFO 		PRINTM(INFO,...)

	Usage:
		echo "drvdbg=0x7" > /proc/mbt/mbtcharx/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 milliseconds between wakeup signal and wakeup event
		or 0xff for special setting when GPIO is used to wakeup host.

	Usage:
		echo "gpio_gap=0xff80" > /proc/mbt/mbtcharx/config   	# use Interface (e.g. SDIO)
		echo "hscfgcmd=1" > /proc/mbt/mbtcharx/config		# gap = 0x80

		echo "gpio_gap=0x03ff" > /proc/mbt/mbtcharx/config   	# use gpio 3
		echo "hscfgcmd=1" > /proc/mbt/mbtcharx/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/mbtcharx/config			#enable power save mode
		echo "idle_timeout=0x0100" > /proc/mbt/mbtcharx/config		#configure idle, timeout value in ms
		echo "pscmd=1" > /proc/mbt/mbtcharx/config

		echo "psmode=0" > /proc/mbt/mbtcharx/config			#disable power save mode
		echo "pscmd=1" > /proc/mbt/mbtcharx/config

proc command to enable BT test mode
    Usage:
        echo "test_mode=1" > /proc/mbt/mbtcharx/config   #enable BT test mode

==============================================================================
			U S E R  M A N U A L  F O R  F M A P P

1) FOR TOOL BUILD

	a) Enter directory
	b) make
	c) After building, the executable binary "fmapp" is in the directory

2) FOR TOOL RUN

	a) chmod 777 fmapp (optional)
	b) Run fmapp utility based on usage below
		Usage: fmapp <Options> devicename [command content]
		devicename example: mfmchar0

	Options:
		-h: Display help
		-v: Verbose

3) TEST EXAMPLES
	./fmapp mfmchar0 0x02 0x03
