android13/device/rockchip/common/nfc/libnfc-brcm-20791b04.conf

74 lines
3.7 KiB
Plaintext

###############################################################################
# Firmware patch file
# If the value is not set then patch download is disabled.
# I2C (supports NVM=1, no UICC1)
#FW_PATCH="/vendor/firmware/BCM20791B4_002.005.010.0121.0000_Generic_I2C_NCD_Unsigned_configdata.ncd"
# NVM=EEPROM and no UICC1
#FW_PATCH="/vendor/firmware/BCM20791B4_002.005.010.0121.0000_Generic_I2CNVM1NOUICC1_NCD_Unsigned_configdata.ncd"
# NVM=UICC
#FW_PATCH="/vendor/firmware/BCM20791B4_002.005.010.0121.0000_Generic_I2CNVM2_NCD_Unsigned_configdata.ncd"
# GEDI2C (supports NVM=1, UICC1)
#FW_PATCH="/vendor/firmware/BCM20791B4_002.005.010.0121.0000_Generic_I2CGED_NCD_Unsigned_configdata.ncd"
###############################################################################
# Firmware pre-patch file (sent before the above patch file)
# If the value is not set then pre-patch is not used.
#FW_PRE_PATCH="/vendor/firmware/BCM20791B4_002.005.010.0121.0000_Generic_PreI2C_NCD_Unsigned_configdata.ncd"
###############################################################################
# LPTD mode configuration
# byte[0] is the length of the remaining bytes in this value
# if set to 0, LPTD params will NOT be sent to NFCC (i.e. disabled).
# byte[1] is the param id it should be set to B9.
# byte[2] is the length of the LPTD parameters
# byte[3] indicates if LPTD is enabled
# if set to 0, LPTD will be disabled (parameters will still be sent).
# byte[4-n] are the LPTD parameters.
# By default, LPTD is enabled and default settings are used.
# See nfc_hal_dm_cfg.c for defaults
#
# NOTE: LPTD is not supported and should be disabled for I2CGCF & I2CLite of the B4 patch
#
LPTD_CFG={29:B9:27:01:00:FF:FF:08:A0:0F:40:00:80:12:02:10:00:00:00:31:0B:30:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00}
# To disable LPTD, do the following
#LPTD_CFG={03:B9:01:00}
###############################################################################
# Startup Configuration (256 bytes maximum)
#
# This adjusts the configuration to set the C2 parameter byte[1] to 00 (to
# discover all UICC).
#
NFA_DM_START_UP_CFG={48:CB:01:01:A5:01:01:CA:14:00:00:00:00:0E:F0:55:00:00:0F:00:00:00:00:00:00:00:00:00:00:B5:03:01:03:FF:C2:08:61:08:00:04:80:C3:C9:01:80:01:01:C9:03:03:0F:AB:5B:01:02:B2:04:E8:03:00:00:CF:02:02:08:B1:06:00:20:00:00:00:12}
###############################################################################
# Antenna Configuration - This data is used when setting 0xC8 config item
# at startup (before discovery is started). If not used, no value is sent.
#
# The settings for this value are documented here:
# http://wcgbu.broadcom.com/wpan/PM/Project%20Document%20Library/bcm20791B0/
# Design/Doc/PHY%20register%20settings/BCM20791-B2-1027-02_PHY_Recommended_Reg_Settings.xlsx
#
# The values marked as ?? should be tweaked per antenna or customer/app:
# {20:C8:1E:06:??:00:??:??:??:00:??:24:00:1C:00:75:00:77:00:76:00:1C:00:03:00:0A:00:??:01:00:00:40:04}
# array[0] = 0x20 is length of the payload from array[1] to the end
# array[1] = 0xC8 is PREINIT_DSP_CFG
#PREINIT_DSP_CFG={20:C8:1E:06:1F:00:0A:03:30:00:04:24:00:1C:00:75:00:77:00:76:00:1C:00:03:00:0A:00:48:01:00:00:40:04}
###############################################################################
# Snooze Mode Settings
#
# By default snooze mode is enabled. Set SNOOZE_MODE_CFG byte[0] to 0
# to disable.
#
# If SNOOZE_MODE_CFG is not provided, the default settings are used:
# They are as follows:
# 8 Sleep Mode (0=Disabled 1=UART 8=SPI/I2C)
# 0 Idle Threshold Host
# 0 Idle Threshold HC
# 0 NFC Wake active mode (0=ActiveLow 1=ActiveHigh)
# 1 Host Wake active mode (0=ActiveLow 1=ActiveHigh)
#
#SNOOZE_MODE_CFG={08:00:00:00:01}