• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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###############################################################################
80#SCR Read Tag Operation Timeout in secs
81NXP_SWP_RD_TAG_OP_TIMEOUT=20
82
83###############################################################################
84#Set the default route Location :
85#This settings will be used when application does not set this parameter
86# host  0x00
87# eSE   0xC0
88# UICC  0x80
89DEFAULT_ROUTE=0xC0
90
91###############################################################################
92#Set the ISODEP (Mifare Desfire) route Location :
93#This settings will be used when application does not set this parameter
94# host  0x00
95# eSE   0xC0
96# UICC  0x80
97DEFAULT_ISODEP_ROUTE=0xC0
98
99###############################################################################
100#Set the Default Off Host route Location :
101#This settings will be used when application does not set this parameter
102# host  0x00
103# eSE   0xC0
104# UICC  0x80
105DEFAULT_OFFHOST_ROUTE=0xC0
106
107###############################################################################
108#Set the Felica CLT route Location :
109#This settings will be used when application does not set this parameter
110# eSE   0xC0
111# UICC  0x80
112DEFAULT_NFCF_ROUTE=0xC0
113
114###############################################################################
115#Set the default AID Power state :
116#This settings will be used when application does not set this parameter
117# bit pos 0 = Switch On
118# bit pos 1 = Switch Off
119# bit pos 2 = Battery Off
120# bit pos 3 = Screen off unlock
121# bit pos 4 = Screen On lock
122# bit pos 5 = Screen Off lock
123DEFAULT_AID_PWR_STATE=0x39
124###############################################################################
125#Set the Mifare Desfire Power state :
126#This settings will be used when application does not set this parameter
127# bit pos 0 = Switch On
128# bit pos 1 = Switch Off
129# bit pos 2 = Battery Off
130# bit pos 3 = Screen off unlock
131# bit pos 4 = Screen On lock
132# bit pos 5 = Screen Off lock
133DEFAULT_DESFIRE_PWR_STATE=0x3B
134
135###############################################################################
136#Set the Mifare CLT 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_MIFARE_CLT_PWR_STATE=0x3B
145
146###############################################################################
147#Set the Felica 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_FELICA_CLT_PWR_STATE=0x3B
156
157###############################################################################
158#Set the T4TNfcee AID 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_T4TNFCEE_AID_POWER_STATE=0x3B
167
168###############################################################################
169#Set the default Felica T3T System Code OffHost route Location :
170#This settings will be used when application does not set this parameter
171# host  0x00
172# eSE   0xC0
173# UICC  0x80
174DEFAULT_SYS_CODE_ROUTE=0xC0
175###############################################################################
176# AID Matching platform options
177# AID_MATCHING_L 0x01
178# AID_MATCHING_K 0x02
179#AID_MATCHING_PLATFORM=0x01
180
181###############################################################################
182# P61 interface options
183# SPI 0x02
184NXP_P61_LS_DEFAULT_INTERFACE=0x00
185
186###############################################################################
187#CHINA_TIANJIN_RF_SETTING
188#Enable  0x01
189#Disable  0x00
190#NXP_CHINA_TIANJIN_RF_ENABLED=0x01
191
192###############################################################################
193#SWP_SWITCH_TIMEOUT_SETTING
194# Allowed range of swp timeout setting is 0x00 to 0x3C [0 - 60].
195# Timeout in milliseconds, for example
196# No Timeout  0x00
197# 10 millisecond timeout 0x0A
198#NXP_SWP_SWITCH_TIMEOUT=0x0A
199
200###############################################################################
201# Flashing Options Configurations
202# FLASH_UPPER_VERSION 0x01
203# FLASH_DIFFERENT_VERSION 0x02
204# FLASH_ALWAYS 0x03
205NXP_FLASH_CONFIG=0x02
206
207###############################################################################
208# P61 interface options for JCOP Download
209# SPI 0x02
210NXP_P61_JCOP_DEFAULT_INTERFACE=0x00
211
212###############################################################################
213# Option to perform LS update every boot
214# Enable 0x01
215# Disable    0x00
216NXP_LS_FORCE_UPDATE_REQUIRED=0x00
217
218###############################################################################
219# Option to perform JCOP update every boot
220# Enable 0x01
221# Disable 0x00
222NXP_JCOP_FORCE_UPDATE_REQUIRED=0x00
223
224###############################################################################
225# Bail out mode
226#  If set to 1, NFCC is using bail out mode for either Type A or Type B poll.
227NFA_POLL_BAIL_OUT_MODE=0x01
228
229###############################################################################
230# White list of Hosts
231# This values will be the Hosts(NFCEEs) in the HCI Network.
232DEVICE_HOST_WHITE_LIST={C0, 80}
233
234###############################################################################
235# Choose the presence-check algorithm for type-4 tag.  If not defined, the default value is 1.
236# 0  NFA_RW_PRES_CHK_DEFAULT; Let stack selects an algorithm
237# 1  NFA_RW_PRES_CHK_I_BLOCK; ISO-DEP protocol's empty I-block
238# 2 NFA_RW_PRES_CHK_ISO_DEP_NAK; Type - 4 tag protocol iso-dep nak presence check
239#    command is sent waiting for rsp and ntf.
240PRESENCE_CHECK_ALGORITHM=2
241###############################################################################
242# Options to Fallback to alternative route
243# Disable           0x00
244# DH                0x01
245# ESE               0x02
246NXP_CHECK_DEFAULT_PROTO_SE_ID=0x01
247###############################################################################
248# Vendor Specific Proprietary Protocol & Discovery Configuration
249# Set to 0xFF if unsupported
250#  byte[0] NCI_PROTOCOL_18092_ACTIVE
251#  byte[1] NCI_PROTOCOL_B_PRIME
252#  byte[2] NCI_PROTOCOL_DUAL
253#  byte[3] NCI_PROTOCOL_15693
254#  byte[4] NCI_PROTOCOL_KOVIO
255#  byte[5] NCI_PROTOCOL_MIFARE
256#  byte[6] NCI_DISCOVERY_TYPE_POLL_KOVIO
257#  byte[7] NCI_DISCOVERY_TYPE_POLL_B_PRIME
258#  byte[8] NCI_DISCOVERY_TYPE_LISTEN_B_PRIME
259NFA_PROPRIETARY_CFG={05, FF, FF, 06, 81, 80, FF, FF, FF}
260
261###############################################################################
262#NXP_CN_TRANSIT_BLK_NUM_CHECK_ENABLE
263#Enable/Disable block number checks for china transit use case
264#Enable  0x01
265#Disable  0x00
266#NXP_CN_TRANSIT_BLK_NUM_CHECK_ENABLE=0x01
267
268################################################################################
269#This flags will enable different modes of Lx Debug based on bits of the Byte0
270#Byte 0:
271# |_________Bit Mask_______|   Debug Mode
272#  b7|b6|b5|b4|b3|b2|b1|b0|
273#    |  |x |  |  |  |  |  |    Modulation Detected Notification
274#    |  |  |X |  |  |  |  |    Enable L1 Events (ISO14443-4, ISO18092)
275#    |  |  |  |X |  |  |  |    Enable L2 Reader Events(ROW specific)
276#    |  |  |  |  |X |  |  |    Enable Felica SystemCode
277#    |  |  |  |  |  |X |  |    Enable Felica RF (all Felica CM events)
278#    |  |  |  |  |  |  |X |    Enable L2 Events CE (ISO14443-3, RF Field ON/OFF)
279#Byte 1: RFU, shall always be 0x00
280#                              Byte1    Byte0
281#                                  \__ __/
282# e.g. NXP_CORE_PROP_SYSTEM_DEBUG=0x0031 ==> Modulation detected, L1, L2 CE
283NXP_CORE_PROP_SYSTEM_DEBUG=0x0000
284
285###############################################################################
286#Enable NXP NCI runtime parser library
287#Enable 0x01
288#Disable 0x00
289NXP_NCI_PARSER_LIBRARY=0x00
290
291###############################################################################
292# Timeout value in milliseconds for JCOP OS download to complete
293OS_DOWNLOAD_TIMEOUT_VALUE=60000
294
295###############################################################################
296# Enable forward functionality
297# Disable           0x00
298# Enable            0x01
299FORWARD_FUNCTIONALITY_ENABLE=0x01
300
301###############################################################################
302# Configure the NFC Extras to open and use a static pipe.  If the value is
303# not set or set to 0, then the default is use a dynamic pipe based on a
304# destination gate (see NFA_HCI_DEFAULT_DEST_GATE).  Note there is a value
305# for each EE (ESE/SIM1/SIM2)
306OFF_HOST_ESE_PIPE_ID=0x16
307OFF_HOST_SIM_PIPE_ID=0x0A
308OFF_HOST_SIM2_PIPE_ID=0x23
309
310###############################################################################
311#Set the Felica T3T System Code Power state :
312#This settings will be used when application does not set this parameter
313#Update Power state as per NCI2.0
314DEFAULT_SYS_CODE_PWR_STATE=0x00
315
316###############################################################################
317#Maximum SMB transceive wait for response
318NXP_SMB_TRANSCEIVE_TIMEOUT=2000
319###############################################################################
320# Firmware file type
321#.so file   0x01
322#.bin file  0x02
323NXP_FW_TYPE=0x01
324############################################################################
325# Extended APDU length for ISO_DEP
326ISO_DEP_MAX_TRANSCEIVE=0xFEFF
327#########################################################################
328# Support for Amendment I SEMS specification
329# Support SEMS Amendment I 0x01
330# Support NXP LS client    0x00
331NXP_GP_AMD_I_SEMS_SUPPORTED=0x01
332###############################################################################
333#All eSE terminals shall be match with the  /vendor/etc/vintf/manifest.xml file
334#under android.hardware.secure_element.
335# The terminal name shall start from 1
336# Assign terminal number to each interface based on system config
337NXP_SPI_SE_TERMINAL_NUM="eSE1"
338###############################################################################
339# Assign terminal number to each interface based on system config
340#NXP_VISO_SE_TERMINAL_NUM="eSE3"
341###############################################################################
342# Assign terminal number to each interface based on system config
343NXP_NFC_SE_TERMINAL_NUM="eSE2"
344###############################################################################
345#For static or dynamic dual UICC feature support
346#Enable static dual uicc feature by setting value 0x00
347#Enable dynamic dual uicc feature by setting value 0x01
348NXP_DUAL_UICC_ENABLE=0x01
349###############################################################################
350# Time to wait by DH when NFCC will report eSE Cold Temp Error.
351# The value is as per the UM and in seconds
352NXP_SE_COLD_TEMP_ERROR_DELAY=0x05
353
354###############################################################################
355# Set configuration optimization decision setting
356# Enable    = 0x01
357# Disable   = 0x00
358NXP_SET_CONFIG_ALWAYS=0x00
359
360###############################################################################
361#OffHost ESE route location for MultiSE
362#ESE = C0
363OFFHOST_ROUTE_ESE={C0}
364
365###############################################################################
366#OffHost UICC route location for MultiSE
367#UICC1 = 80
368OFFHOST_ROUTE_UICC={80}
369
370###############################################################################
371#T4T NFCEE ENABLE
372#bit pos 0 = T4T NFCEE Enable
373#bit pos 6 = T4T NFCEE Contactless write enable
374#bit pos 7 = Proprietary file enable
375NXP_T4T_NFCEE_ENABLE=0x01
376
377###############################################################################
378#CORE_SET_CONF_CMD to reset Prop Emvco Flag
379NXP_PROP_RESET_EMVCO_CMD={20, 02, 05, 01, A0, 44, 01, 00}
380
381###############################################################################
382#Guard time in ms for the mPOS/SCR module to process the reader start/stop req
383NXP_RDR_REQ_GUARD_TIME=0
384
385###############################################################################
386#MW workaround to enable LPCD when EMVCO polling mode starts and disable
387#while switching back to NFC Forum mode
388# 0 --> Disable MW workaround
389# 1 --> Enable MW workaround
390# 2 --> Use this option only for FW versions below 1.10.52
391NXP_RDR_DISABLE_ENABLE_LPCD=1
392
393###############################################################################
394# Firmware patch format, Only 1 and 5 should be set
395#   0 -> NFC Default
396#   1 -> EMVCO Default
397#   3 -> EMVCO Polling, DISC_IDLE = POWER_OFF, DISC DEACTIVATE =  Removal process
398#   5 -> EMVCO Cert Polling, DISC_IDLE = Removal process  , DISC DEACTIVATE =   POWER_OFF
399#   7 -> EMVCO Polling, DISC_IDLE = POWER_OFF, DISC DEACTIVATE =  POWER_OFF
400NFA_CONFIG_FORMAT=1
401
402#################################################################################
403# Enable disconnect tag in screen off
404# Disable           0x00
405# Enable            0x01
406NXP_DISCONNECT_TAG_IN_SCRN_OFF=0x01
407#################################################################################
408# Core configuration extensions
409# It includes
410# Wired mode settings A0ED, A0EE
411# Tag Detector A040, A041, A043
412# Low Power mode A007
413# Clock settings A002, A003
414# PbF settings A008
415# Clock timeout settings A004
416# eSE (SVDD) PWR REQ settings A0F2
417# Window size A0D8
418# DWP Speed   A0D5
419# How eSE connected to PN553 A012
420# UICC2 bit rate A0D1
421# SWP1A interface A0D4
422# DWP intf behavior config, SVDD Load activated by default if set to 0x31 A037
423NXP_CORE_CONF_EXTN={20, 02, 09, 02,
424    A0, EC, 01, 01,
425    A0, ED, 01, 01
426}
427#       A0, F2, 01, 01,
428#       A0, 40, 01, 01,
429#       A0, 41, 01, 02,
430#       A0, 43, 01, 04,
431#       A0, 02, 01, 01,
432#       A0, 03, 01, 11,
433#       A0, 07, 01, 03,
434#       A0, 08, 01, 01
435#       }
436
437###############################################################################
438# Core configuration settings
439# Below params are not recommended to add in CONF block.
440# LA_BIT_FRAME_SDD(0x30)
441# LA_PLATFORM_CONFIG(0x31)
442# LA_SEL_INFO(0x32)
443# LB_SENSB_INFO(0x38)
444# LF_PROTOCOL(0x50)
445# NFCC_CONFIG_CONTROL(0x85)
446
447NXP_CORE_CONF={ 20, 02, 25, 0B,
448        28, 01, 00,
449        21, 01, 00,
450        33, 04, 01, 02, 03, 04,
451        54, 01, 06,
452        5B, 01, 00,
453        3E, 01, 00,
454        80, 01, 01,
455        81, 01, 01,
456        82, 01, 0E,
457        18, 01, 01,
458        68, 01, 01
459        }
460###############################################################################
461# Enable(0x01) or disable(0x00) non-standard tag reading
462# Disable Non-standard card read         0x00
463# Enable Non-standard card read          0x01
464NXP_SUPPORT_NON_STD_CARD=0x00
465#################################################################################
466# Enable(0x01) or disable(0x00 ) for getting HW Info log over SMB wired
467# Disable getting HW info log            0x00
468# Enable getting HW info log             0x01
469NXP_GET_HW_INFO_LOG=0x00
470#################################################################################
471# Enable(0x01) or disable(0x00) iso dep sak merge
472# Disable SAK merging         0x00
473# Enable SAK merging          0x01
474NXP_ISO_DEP_MERGE_SAK=0x01
475#################################################################################
476# Valid time difference range within for non-standard tag detection from first
477# Activation fail to next discovery
478# Note :- 1. This will take effect only when NXP_SUPPORT_NON_STD_CARD is enabled
479#         2. The number will be multiplied by 100ms by MW.
480# Default:
481# Set to 00 if not supported
482#  byte[0] MIFARE_CLASSIC 100ms
483#  byte[1] ISO_DEP        300ms
484NXP_NON_STD_CARD_TIMEDIFF={01, 03}
485#################################################################################
486