1#################### This file is used by NXP NFC NCI HAL ##################### 2############################################################################### 3# Application options 4# Logging Levels 5# NXPLOG_DEFAULT_LOGLEVEL 0x01 6# ANDROID_LOG_DEBUG 0x03 7# ANDROID_LOG_WARN 0x02 8# ANDROID_LOG_ERROR 0x01 9# ANDROID_LOG_SILENT 0x00 10NXPLOG_EXTNS_LOGLEVEL=0x03 11NXPLOG_NCIHAL_LOGLEVEL=0x03 12NXPLOG_NCIX_LOGLEVEL=0x03 13NXPLOG_NCIR_LOGLEVEL=0x03 14NXPLOG_FWDNLD_LOGLEVEL=0x03 15NXPLOG_TML_LOGLEVEL=0x03 16NFC_DEBUG_ENABLED=1 17 18############################################################################### 19# Nfc Device Node name 20NXP_NFC_DEV_NODE="/dev/pn553" 21 22############################################################################### 23# Extension for Mifare reader enable 24MIFARE_READER_ENABLE=0x01 25 26############################################################################### 27# Mifare Reader implementation 28# 0: General implementation 29# 1: Legacy implementation 30LEGACY_MIFARE_READER=0 31 32############################################################################### 33# NXP proprietary settings 34NXP_ACT_PROP_EXTN={2F, 02, 00} 35 36############################################################################### 37# NXP TVDD configurations settings 38# Allow NFCC to configure External TVDD, two configurations (1 and 2) supported, 39# out of them only one can be configured at a time. 40#NXP_EXT_TVDD_CFG=0x02 41 42############################################################################### 43#config1:SLALM, 3.3V for both RM and CM 44#NXP_EXT_TVDD_CFG_1={20, 02, 0F, 01, A0, 0E, 0B, 31, 01, 01, 31, 00, 00, 00, 01, 00, D0, 0C} 45 46############################################################################### 47#config2: use DCDC in CE, use Tx_Pwr_Req, set CFG2 mode, SLALM, 48#monitoring 5V from DCDC, 3.3V for both RM and CM, DCDCWaitTime=4.2ms 49#NXP_EXT_TVDD_CFG_2={20, 02, 0F, 01, A0, 0E, 0B, 11, 01, C2, B2, 00, B2, 1E, 1F, 00, D0, 0C} 50 51############################################################################### 52# Core configuration rf field filter settings to enable set to 01 to disable set 53# to 00 last bit 54#NXP_CORE_RF_FIELD={ 20, 02, 05, 01, A0, 62, 01, 00 } 55 56############################################################################### 57# To enable i2c fragmentation set i2c fragmentation enable 0x01 to disable set 58# to 0x00 59#NXP_I2C_FRAGMENTATION_ENABLED=0x00 60 61############################################################################### 62#set autonomous mode 63# disable autonomous 0x00 64# enable autonomous 0x01 65NXP_AUTONOMOUS_ENABLE=0x00 66############################################################################### 67#set Guard Timer 68# Gurad Timer range to 0x0F-0xFF(i.e.15-255 seconds) 69NXP_GUARD_TIMER_VALUE=0x0F 70############################################################################### 71#Enable SWP full power mode when phone is power off 72#NXP_SWP_FULL_PWR_ON=0x00 73 74################################################################################ 75#This is used to configure UICC2 at boot time. 76# UICC2 0x03 77NXP_DEFAULT_UICC2_SELECT=0x03 78############################################################################### 79# CE when Screen state is locked 80# This setting is for DEFAULT_AID_ROUTE, 81# DEFAULT_DESFIRE_ROUTE and DEFAULT_MIFARE_CLT_ROUTE 82# Disable 0x00 83# Enable 0x01 84NXP_CE_ROUTE_STRICT_DISABLE=0x01 85 86############################################################################### 87#SCR Read Tag Operation Timeout in secs 88NXP_SWP_RD_TAG_OP_TIMEOUT=20 89 90############################################################################### 91#Set the default AID route Location : 92#This settings will be used when application does not set this parameter 93# host 0x00 94# eSE 0x01 95# UICC 0x02 96# UICC2 0x03 97DEFAULT_AID_ROUTE=0x01 98 99############################################################################### 100#Set the ISODEP (Mifare Desfire) route Location : 101#This settings will be used when application does not set this parameter 102# host 0x00 103# eSE 0x01 104# UICC 0x02 105# UICC2 0x03 106DEFAULT_ISODEP_ROUTE=0x01 107 108############################################################################### 109#Set the Mifare CLT route Location : 110#This settings will be used when application does not set this parameter 111# host 0x00 112# eSE 0x01 113# UICC 0x02 114# UICC2 0x03 115DEFAULT_MIFARE_CLT_ROUTE=0x01 116 117############################################################################### 118#Set the Felica CLT route Location : 119#This settings will be used when application does not set this parameter 120# eSE 0x01 121# UICC 0x02 122# UICC2 0x03 123DEFAULT_FELICA_CLT_ROUTE=0x01 124 125############################################################################### 126#Set the default AID Power state : 127#This settings will be used when application does not set this parameter 128# bit pos 0 = Switch On 129# bit pos 1 = Switch Off 130# bit pos 2 = Battery Off 131# bit pos 3 = Screen off unlock 132# bit pos 4 = Screen On lock 133# bit pos 5 = Screen Off lock 134DEFAULT_AID_PWR_STATE=0x39 135############################################################################### 136#Set the Mifare Desfire Power state : 137#This settings will be used when application does not set this parameter 138# bit pos 0 = Switch On 139# bit pos 1 = Switch Off 140# bit pos 2 = Battery Off 141# bit pos 3 = Screen off unlock 142# bit pos 4 = Screen On lock 143# bit pos 5 = Screen Off lock 144DEFAULT_DESFIRE_PWR_STATE=0x3B 145 146############################################################################### 147#Set the Mifare CLT Power state : 148#This settings will be used when application does not set this parameter 149# bit pos 0 = Switch On 150# bit pos 1 = Switch Off 151# bit pos 2 = Battery Off 152# bit pos 3 = Screen off unlock 153# bit pos 4 = Screen On lock 154# bit pos 5 = Screen Off lock 155DEFAULT_MIFARE_CLT_PWR_STATE=0x3B 156 157############################################################################### 158#Set the Felica CLT Power state : 159#This settings will be used when application does not set this parameter 160# bit pos 0 = Switch On 161# bit pos 1 = Switch Off 162# bit pos 2 = Battery Off 163# bit pos 3 = Screen off unlock 164# bit pos 4 = Screen On lock 165# bit pos 5 = Screen Off lock 166DEFAULT_FELICA_CLT_PWR_STATE=0x3B 167 168############################################################################### 169#Set the T4TNfcee AID Power state : 170#This settings will be used when application does not set this parameter 171# bit pos 0 = Switch On 172# bit pos 1 = Switch Off 173# bit pos 2 = Battery Off 174# bit pos 3 = Screen off unlock 175# bit pos 4 = Screen On lock 176# bit pos 5 = Screen Off lock 177DEFAULT_T4TNFCEE_AID_POWER_STATE=0x3B 178 179############################################################################### 180#Set the default Felica T3T System Code OffHost route Location : 181#This settings will be used when application does not set this parameter 182# host 0x00 183# eSE 0x01 184# UICC 0x02 185# UICC2 0x03 186DEFAULT_SYS_CODE_ROUTE=0x01 187############################################################################### 188# AID Matching platform options 189# AID_MATCHING_L 0x01 190# AID_MATCHING_K 0x02 191#AID_MATCHING_PLATFORM=0x01 192 193############################################################################### 194# P61 interface options 195# SPI 0x02 196NXP_P61_LS_DEFAULT_INTERFACE=0x00 197 198############################################################################### 199#CHINA_TIANJIN_RF_SETTING 200#Enable 0x01 201#Disable 0x00 202#NXP_CHINA_TIANJIN_RF_ENABLED=0x01 203 204############################################################################### 205#SWP_SWITCH_TIMEOUT_SETTING 206# Allowed range of swp timeout setting is 0x00 to 0x3C [0 - 60]. 207# Timeout in milliseconds, for example 208# No Timeout 0x00 209# 10 millisecond timeout 0x0A 210#NXP_SWP_SWITCH_TIMEOUT=0x0A 211 212############################################################################### 213# Flashing Options Configurations 214# FLASH_UPPER_VERSION 0x01 215# FLASH_DIFFERENT_VERSION 0x02 216# FLASH_ALWAYS 0x03 217NXP_FLASH_CONFIG=0x02 218 219############################################################################### 220# P61 interface options for JCOP Download 221# SPI 0x02 222NXP_P61_JCOP_DEFAULT_INTERFACE=0x00 223 224############################################################################### 225# Option to perform LS update every boot 226# Enable 0x01 227# Disable 0x00 228NXP_LS_FORCE_UPDATE_REQUIRED=0x00 229 230############################################################################### 231# Option to perform JCOP update every boot 232# Enable 0x01 233# Disable 0x00 234NXP_JCOP_FORCE_UPDATE_REQUIRED=0x00 235 236############################################################################### 237# Bail out mode 238# If set to 1, NFCC is using bail out mode for either Type A or Type B poll. 239NFA_POLL_BAIL_OUT_MODE=0x01 240 241############################################################################### 242# White list of Hosts 243# This values will be the Hosts(NFCEEs) in the HCI Network. 244DEVICE_HOST_WHITE_LIST={C0, 80} 245 246############################################################################### 247# Choose the presence-check algorithm for type-4 tag. If not defined, the default value is 1. 248# 0 NFA_RW_PRES_CHK_DEFAULT; Let stack selects an algorithm 249# 1 NFA_RW_PRES_CHK_I_BLOCK; ISO-DEP protocol's empty I-block 250# 2 NFA_RW_PRES_CHK_ISO_DEP_NAK; Type - 4 tag protocol iso-dep nak presence check 251# command is sent waiting for rsp and ntf. 252PRESENCE_CHECK_ALGORITHM=2 253############################################################################### 254# Options to Fallback to alternative route 255# DH 0x01 256# ESE 0x02 257NXP_CHECK_DEFAULT_PROTO_SE_ID=0x01 258############################################################################### 259# Vendor Specific Proprietary Protocol & Discovery Configuration 260# Set to 0xFF if unsupported 261# byte[0] NCI_PROTOCOL_18092_ACTIVE 262# byte[1] NCI_PROTOCOL_B_PRIME 263# byte[2] NCI_PROTOCOL_DUAL 264# byte[3] NCI_PROTOCOL_15693 265# byte[4] NCI_PROTOCOL_KOVIO 266# byte[5] NCI_PROTOCOL_MIFARE 267# byte[6] NCI_DISCOVERY_TYPE_POLL_KOVIO 268# byte[7] NCI_DISCOVERY_TYPE_POLL_B_PRIME 269# byte[8] NCI_DISCOVERY_TYPE_LISTEN_B_PRIME 270NFA_PROPRIETARY_CFG={05, FF, FF, 06, 81, 80, FF, FF, FF} 271 272############################################################################### 273#NXP_CN_TRANSIT_BLK_NUM_CHECK_ENABLE 274#Enable/Disable block number checks for china transit use case 275#Enable 0x01 276#Disable 0x00 277#NXP_CN_TRANSIT_BLK_NUM_CHECK_ENABLE=0x01 278 279################################################################################ 280#This flags will enable different modes of Lx Debug based on bits of the Byte0 281#Byte 0: 282# |_________Bit Mask_______| Debug Mode 283# b7|b6|b5|b4|b3|b2|b1|b0| 284# | |x | | | | | | Modulation Detected Notification 285# | | |X | | | | | Enable L1 Events (ISO14443-4, ISO18092) 286# | | | |X | | | | Enable L2 Reader Events(ROW specific) 287# | | | | |X | | | Enable Felica SystemCode 288# | | | | | |X | | Enable Felica RF (all Felica CM events) 289# | | | | | | |X | Enable L2 Events CE (ISO14443-3, RF Field ON/OFF) 290#Byte 1: RFU, shall always be 0x00 291# Byte1 Byte0 292# \__ __/ 293# e.g. NXP_CORE_PROP_SYSTEM_DEBUG=0x0031 ==> Modulation detected, L1, L2 CE 294NXP_CORE_PROP_SYSTEM_DEBUG=0x0000 295 296############################################################################### 297#Enable NXP NCI runtime parser library 298#Enable 0x01 299#Disable 0x00 300NXP_NCI_PARSER_LIBRARY=0x00 301 302############################################################################### 303# Timeout value in milliseconds for JCOP OS download to complete 304OS_DOWNLOAD_TIMEOUT_VALUE=60000 305 306############################################################################### 307# Enable forward functionality 308# Disable 0x00 309# Enable 0x01 //Any positive value as per below bit configuration 310# HOST power states when type A/B only UICC present 311# bit pos 0 = Switch On 312# bit pos 1 = Switch Off 313# bit pos 2 = Battery Off 314# bit pos 3 = Screen off unlock 315# bit pos 4 = Screen On lock 316# bit pos 5 = Screen Off lock 317FORWARD_FUNCTIONALITY_ENABLE=0x01 318 319############################################################################### 320# Configure the NFC Extras to open and use a static pipe. If the value is 321# not set or set to 0, then the default is use a dynamic pipe based on a 322# destination gate (see NFA_HCI_DEFAULT_DEST_GATE). Note there is a value 323# for each EE (ESE/SIM1/SIM2) 324OFF_HOST_ESE_PIPE_ID=0x16 325OFF_HOST_SIM_PIPE_ID=0x0A 326OFF_HOST_SIM2_PIPE_ID=0x23 327 328############################################################################### 329#Set the Felica T3T System Code Power state : 330#This settings will be used when application does not set this parameter 331#Update Power state as per NCI2.0 332DEFAULT_SYS_CODE_PWR_STATE=0x00 333############################################################################### 334#Default Secure Element route id 335DEFAULT_OFFHOST_ROUTE=0x01 336 337############################################################################### 338#Maximum SMB transceive wait for response 339NXP_SMB_TRANSCEIVE_TIMEOUT=2000 340############################################################################### 341# Firmware file type 342#.so file 0x01 343#.bin file 0x02 344NXP_FW_TYPE=0x01 345############################################################################ 346# Extended APDU length for ISO_DEP 347ISO_DEP_MAX_TRANSCEIVE=0xFEFF 348######################################################################### 349# Support for Amendment I SEMS specification 350# Support SEMS Amendment I 0x01 351# Support NXP LS client 0x00 352NXP_GP_AMD_I_SEMS_SUPPORTED=0x01 353############################################################################### 354#All eSE terminals shall be match with the /vendor/etc/vintf/manifest.xml file 355#under android.hardware.secure_element. 356# The terminal name shall start from 1 357# Assign terminal number to each interface based on system config 358NXP_SPI_SE_TERMINAL_NUM="eSE1" 359############################################################################### 360# Assign terminal number to each interface based on system config 361#NXP_VISO_SE_TERMINAL_NUM="eSE3" 362############################################################################### 363# Assign terminal number to each interface based on system config 364NXP_NFC_SE_TERMINAL_NUM="eSE2" 365############################################################################### 366#For static or dynamic dual UICC feature support 367#Enable static dual uicc feature by setting value 0x00 368#Enable dynamic dual uicc feature by setting value 0x01 369NXP_DUAL_UICC_ENABLE=0x01 370############################################################################### 371# Time to wait by DH when NFCC will report eSE Cold Temp Error. 372# The value is as per the UM and in seconds 373NXP_SE_COLD_TEMP_ERROR_DELAY=0x05 374 375############################################################################### 376# Set configuration optimization decision setting 377# Enable = 0x01 378# Disable = 0x00 379NXP_SET_CONFIG_ALWAYS=0x00 380 381############################################################################### 382#OffHost ESE route location for MultiSE 383#ESE = 01 384OFFHOST_ROUTE_ESE={01} 385 386############################################################################### 387#OffHost UICC route location for MultiSE 388#UICC1 = 02 389#UICC2 = 03 390OFFHOST_ROUTE_UICC={02:03} 391 392############################################################################### 393#T4T NFCEE ENABLE 394#bit pos 0 = T4T NFCEE Enable 395#bit pos 6 = T4T NFCEE Contactless write enable 396#bit pos 7 = Proprietary file enable 397NXP_T4T_NFCEE_ENABLE=0x01 398 399############################################################################### 400#WLC mode 401#0x00 = if WLC Application running in MW (non-autonomous mode) 402#0x01 = if WLC Application running in FW (autonomous mode) 403NXP_WLC_MODE=0x01 404 405############################################################################### 406#CORE_SET_CONF_CMD to reset Prop Emvco Flag 407NXP_PROP_RESET_EMVCO_CMD={20, 02, 05, 01, A0, 44, 01, 00} 408 409############################################################################### 410#Guard time in ms for the mPOS/SCR module to process the reader start/stop req 411NXP_RDR_REQ_GUARD_TIME=0 412 413############################################################################### 414#MW workaround to enable LPCD when EMVCO polling mode starts and disable 415#while switching back to NFC Forum mode 416# 0 --> Disable MW workaround 417# 1 --> Enable MW workaround 418# 2 --> Use this option only for FW versions below 1.10.52 419NXP_RDR_DISABLE_ENABLE_LPCD=1 420 421############################################################################### 422# Firmware patch format, Only 1 and 5 should be set 423# 0 -> NFC Default 424# 1 -> EMVCO Default 425# 3 -> EMVCO Polling, DISC_IDLE = POWER_OFF, DISC DEACTIVATE = Removal process 426# 5 -> EMVCO Cert Polling, DISC_IDLE = Removal process , DISC DEACTIVATE = POWER_OFF 427# 7 -> EMVCO Polling, DISC_IDLE = POWER_OFF, DISC DEACTIVATE = POWER_OFF 428NFA_CONFIG_FORMAT=1 429 430################################################################################ 431# Enable disconnect tag in screen off 432# Disable 0x00 433# Enable 0x01 434NXP_DISCONNECT_TAG_IN_SCRN_OFF=0x01 435 436################################################################################# 437# Core configuration extensions 438# It includes 439# Wired mode settings A0ED, A0EE 440# Tag Detector A040, A041, A043 441# Low Power mode A007 442# Clock settings A002, A003 443# PbF settings A008 444# Clock timeout settings A004 445# eSE (SVDD) PWR REQ settings A0F2 446# Window size A0D8 447# DWP Speed A0D5 448# How eSE connected to PN553 A012 449# UICC2 bit rate A0D1 450# SWP1A interface A0D4 451# DWP intf behavior config, SVDD Load activated by default if set to 0x31 A037 452NXP_CORE_CONF_EXTN={20, 02, 09, 02, 453 A0, EC, 01, 01, 454 A0, ED, 01, 01 455} 456# A0, F2, 01, 01, 457# A0, 40, 01, 01, 458# A0, 41, 01, 02, 459# A0, 43, 01, 04, 460# A0, 02, 01, 01, 461# A0, 03, 01, 11, 462# A0, 07, 01, 03, 463# A0, 08, 01, 01 464# } 465 466############################################################################### 467# Core configuration settings 468# Below params are not recommended to add in CONF block. 469# LA_BIT_FRAME_SDD(0x30) 470# LA_PLATFORM_CONFIG(0x31) 471# LA_SEL_INFO(0x32) 472# LB_SENSB_INFO(0x38) 473# LF_PROTOCOL(0x50) 474# NFCC_CONFIG_CONTROL(0x85) 475 476NXP_CORE_CONF={ 20, 02, 25, 0B, 477 28, 01, 00, 478 21, 01, 00, 479 33, 04, 01, 02, 03, 04, 480 54, 01, 06, 481 5B, 01, 00, 482 3E, 01, 00, 483 80, 01, 01, 484 81, 01, 01, 485 82, 01, 0E, 486 18, 01, 01, 487 68, 01, 01 488 } 489############################################################################### 490# Enable(0x01) or disable(0x00) non-standard tag reading 491# Disable Non-standard card read 0x00 492# Enable Non-standard card read 0x01 493NXP_SUPPORT_NON_STD_CARD=0x00 494################################################################################# 495# Enable(0x01) or disable(0x00 ) for getting HW Info log over SMB wired 496# Disable getting HW info log 0x00 497# Enable getting HW info log 0x01 498NXP_GET_HW_INFO_LOG=0x00 499################################################################################# 500# Enable(0x01) or disable(0x00) iso dep sak merge 501# Disable SAK merging 0x00 502# Enable SAK merging 0x01 503NXP_ISO_DEP_MERGE_SAK=0x01 504################################################################################# 505# Valid time difference range within for non-standard tag detection from first 506# Activation fail to next discovery 507# Note :- 1. This will take effect only when NXP_SUPPORT_NON_STD_CARD is enabled 508# 2. The number will be multiplied by 100ms by MW. 509# Default: 510# Set to 00 if not supported 511# byte[0] MIFARE_CLASSIC 100ms 512# byte[1] ISO_DEP 300ms 513NXP_NON_STD_CARD_TIMEDIFF={01, 03} 514################################################################################# 515# Enable or Disable UICC ETSI support 516# Disable UICC ETSI support 0 517# Enable UICC ETSI support 1 518NXP_UICC_ETSI_SUPPORT=0 519################################################################################# 520# Enable Stop/Start of RF discovery for NFCEE recovery 521# Disable RF Restart for NFCEE recovery 0 522# Enable RF Restart for NFCEE recovery 1 523NXP_RESTART_RF_FOR_NFCEE_RECOVERY=0 524################################################################################# 525