1## This file is used by NFC NXP NCI HAL(external/libnfc-nci/halimpl/pn547)
2## and NFC Service Java Native Interface Extensions (packages/apps/Nfc/nci/jni/extns/pn547)
3###############################################################################
4# Application options
5# Logging Levels
6# NXPLOG_DEFAULT_LOGLEVEL    0x01
7# ANDROID_LOG_DEBUG          0x03
8# ANDROID_LOG_WARN           0x02
9# ANDROID_LOG_ERROR          0x01
10# ANDROID_LOG_SILENT         0x00
11NXPLOG_EXTNS_LOGLEVEL=0x01
12NXPLOG_NCIHAL_LOGLEVEL=0x01
13NXPLOG_NCIX_LOGLEVEL=0x01
14NXPLOG_NCIR_LOGLEVEL=0x01
15NXPLOG_FWDNLD_LOGLEVEL=0x01
16NXPLOG_TML_LOGLEVEL=0x01
17NFC_DEBUG_ENABLED=0
18
19###############################################################################
20# Nfc Device Node name
21NXP_NFC_DEV_NODE="/dev/nq-nci"
22
23###############################################################################
24# Extension for Mifare reader enable
25MIFARE_READER_ENABLE=0x01
26
27###############################################################################
28# Firmware file type
29#.so file   0x01
30#.bin file  0x02
31NXP_FW_TYPE=0x01
32
33###############################################################################
34# System clock source selection configuration
35#define CLK_SRC_XTAL       1
36#define CLK_SRC_PLL        2
37NXP_SYS_CLK_SRC_SEL=0x01
38
39###############################################################################
40# System clock frequency selection configuration
41#define CLK_FREQ_13MHZ         1
42#define CLK_FREQ_19_2MHZ       2
43#define CLK_FREQ_24MHZ         3
44#define CLK_FREQ_26MHZ         4
45#define CLK_FREQ_38_4MHZ       5
46#define CLK_FREQ_52MHZ         6
47NXP_SYS_CLK_FREQ_SEL=0x00
48
49###############################################################################
50# The timeout value to be used for clock request acknowledgment
51# min value = 0x01 to max = 0x06
52NXP_SYS_CLOCK_TO_CFG=0x01
53
54###############################################################################
55# NXP proprietary settings
56NXP_ACT_PROP_EXTN={2F, 02, 00}
57
58###############################################################################
59# NFC forum profile settings
60NXP_NFC_PROFILE_EXTN={20, 02, 05, 01, A0, 44, 01, 00}
61
62###############################################################################
63# NXP TVDD configurations settings
64# Allow NFCC to configure External TVDD, two configurations (1 and 2) supported,
65# out of them only one can be configured at a time.
66NXP_EXT_TVDD_CFG=0x02
67
68###############################################################################
69#config1:SLALM, 3.3V for both RM and CM
70NXP_EXT_TVDD_CFG_1={20, 02, 0F, 01, A0, 0E, 0B, 31, 01, 01, 31, 00, 00, 00, 01, 00, D0, 0C}
71
72###############################################################################
73#config2: use DCDC in CE, use Tx_Pwr_Req, set CFG2 mode, SLALM,
74#monitoring 5V from DCDC, 3.3V for both RM and CM, DCDCWaitTime=4.2ms
75NXP_EXT_TVDD_CFG_2={20, 02, 0F, 01, A0, 0E, 0B, 11, 01, C2, B2, 00, BA, 1E, 15, 00, D0, 0C}
76
77###############################################################################
78# NXP RF configuration ALM/PLM settings
79# This section needs to be updated with the correct values based on the platform
80NXP_RF_CONF_BLK_1={ 20, 02, A8, 14,
81    A0, 0D, 06, 06, 37, 08, 76, 00, 00,
82    A0, 38, 04, 14, 0B, 0B, 00,
83    A0, 0D, 03, 24, 03, 7F,
84    A0, 0D, 06, 06, 42, 00, 00, F2, F2,
85    A0, 0D, 04, 32, 42, FC, 40,
86    A0, 0D, 04, 46, 42, 68, 40,
87    A0, 0D, 04, 56, 42, 78, 40,
88    A0, 0D, 04, 5C, 42, 80, 40,
89    A0, 0D, 06, 34, 44, 66, 0A, 00, 00,
90    A0, 0D, 06, 48, 44, 65, 0A, 00, 00,
91    A0, 0D, 06, 58, 44, 55, 08, 00, 00,
92    A0, 0D, 06, 5E, 44, 55, 08, 00, 00,
93    A0, 0D, 06, 34, 2D, DC, 20, 04, 00,
94    A0, 0D, 06, 48, 2D, 15, 34, 1F, 01,
95    A0, 0D, 06, 58, 2D, 0D, 48, 0C, 01,
96    A0, 0D, 06, 5E, 2D, 0D, 5A, 0C, 01,
97    A0, 0D, 06, 32, 4A, 53, 07, 00, 1B,
98    A0, 0D, 06, 46, 4A, 33, 07, 00, 07,
99    A0, 0D, 06, 56, 4A, 43, 07, 00, 07,
100    A0, 0D, 06, 5C, 4A, 11, 07, 01, 07
101}
102
103###############################################################################
104# NXP RF configuration ALM/PLM settings
105# This section needs to be updated with the correct values based on the platform
106NXP_RF_CONF_BLK_2={ 20, 02, 26, 02,
107    A0, 3A, 08, 0E, 01, 0E, 01, 0E, 01, 0E, 01,
108    A0, 29, 17, 1C, 02, 00, 1F, 00, 02, 00, 1F, 00, 02, 00, 40, F3, F3, 00, 43, F3, F3, 38, 70, 00, 00, 01
109}
110
111###############################################################################
112# NXP RF configuration ALM/PLM settings
113# This section needs to be updated with the correct values based on the platform
114NXP_RF_CONF_BLK_3={20, 02, D6, 01,
115    A0, 34, D2, 23, 04, 18,
116    07,
117    40,
118    00, 20, 40, 00,
119    2D, 20, 40, 00,
120    32, 20, 40, 00,
121    3B, 20, 40, 00,
122    5C, 20, 40, 00,
123    9A, 00, 60, 00,
124    AE, 00, 70, 00,
125    00, 00, 08, 02,
126    00, 00, 08, 02,
127    00, 00, 08, 02,
128    00, 00, 08, 02,
129    00, 00, 08, 02,
130    00, 00, 08, 02,
131    00, 00, 48, 01,
132    00, 00, 08, 03,
133    00, 00, 08, 01,
134    00, 00, C8, 02,
135    00, 00, C8, 00,
136    00, 00, 88, 02,
137    00, 00, 48, 02,
138    00, 00, B8, 00,
139    00, 00, 68, 00,
140    00, 00, 18, 00,
141    00, 00, 08, 02,
142    00, 00, 00, 00,
143    00, 00, 00, 00,
144    07,
145    00, 20, 40, 00,
146    2D, 20, 40, 00,
147    32, 20, 40, 00,
148    3B, 20, 40, 00,
149    5C, 20, 40, 00,
150    9A, 00, 60, 00,
151    AE, 00, 70, 00,
152    00, 00, 08, 02,
153    00, 00, 08, 02,
154    00, 00, 08, 02,
155    00, 00, 08, 02,
156    00, 00, 08, 02,
157    00, 00, 08, 02,
158    00, 00, 48, 01,
159    00, 00, 08, 03,
160    00, 00, 08, 01,
161    00, 00, C8, 02,
162    00, 00, C8, 00,
163    00, 00, 88, 02,
164    00, 00, 48, 02,
165    00, 00, B8, 00,
166    00, 00, 68, 00,
167    00, 00, 18, 00,
168    00, 00, 08, 02,
169    00, 00, 00, 00
170}
171
172###############################################################################
173# NXP RF configuration ALM/PLM settings
174# This section needs to be updated with the correct values based on the platform
175NXP_RF_CONF_BLK_4={ 20, 02, 5B, 01,
176    A0, 0B, 57, 05, 85, 90, 78, 0F, 4E, 00, 3D, 95,
177    00, 00, 3D, 9F, 00, 00, 50, 9F, 00, 00, 59, 9F, 00,
178    00, 5A, 9F, 00, 00, 64, 9F, 00, 00, 65, 1F, 00, 00,
179    6E, 1F, 00, 00, 72, 1F, 00, 00, 79, 1F, 00, 00, 7B,
180    1F, 00, 00, 84, 1F, 00, 00, 86, 1F, 00, 00, 8F, 1F,
181    00, 00, 91, 1F, 00, 00, 9A, 1F, 00, 00, A1, 1F, 00,
182    00, A7, 1F, 00, 00, B0, 1F, 00, 00, B9, 1F, 00, 00
183}
184
185###############################################################################
186# NXP RF configuration ALM/PLM settings
187# This section needs to be updated with the correct values based on the platform
188#NXP_RF_CONF_BLK_5={
189#}
190
191###############################################################################
192# NXP RF configuration ALM/PLM settings
193# This section needs to be updated with the correct values based on the platform
194#NXP_RF_CONF_BLK_6={
195#}
196
197###############################################################################
198# Core configuration extensions
199# It includes
200# Wired mode settings A0ED, A0EE
201# Tag Detector A040, A041, A043
202# Low Power mode A007
203# Clock settings A002, A003
204# PbF settings A008
205# Clock timeout settings A004
206# eSE (SVDD) PWR REQ settings A0F2
207# Window size A0D8
208# DWP Speed   A0D5
209# How eSE connected to PN553 A012
210# UICC2 bit rate A0D1
211# SWP1A interface A0D4
212# DWP intf behavior config, SVDD Load activated by default if set to 0x31 A037
213NXP_CORE_CONF_EXTN={20, 02, 32, 0C,
214    A0, EC, 01, 01,
215    A0, ED, 01, 01,
216    A0, 5E, 01, 01,
217    A0, 12, 01, 02,
218    A0, 40, 01, 05,
219    A0, 41, 01, 05,
220    A0, 43, 01, 04,
221    A0, D1, 01, 02,
222    A0, D4, 01, 00,
223    A0, DD, 01, 2D,
224    A0, 37, 01, 35,
225    A0, 08, 02, 00, 81
226   }
227#       A0, F2, 01, 01,
228#       A0, 40, 01, 01,
229#       A0, 41, 01, 02,
230#       A0, 43, 01, 04,
231#       A0, 02, 01, 01,
232#       A0, 03, 01, 11,
233#       A0, 07, 01, 03,
234#       A0, 08, 01, 01
235#       }
236
237###############################################################################
238# Core configuration rf field filter settings to enable set to 01 to disable set
239# to 00 last bit
240NXP_CORE_RF_FIELD={ 20, 02, 05, 01, A0, 62, 01, 00 }
241
242###############################################################################
243# To enable i2c fragmentation set i2c fragmentation enable 0x01 to disable set
244# to 0x00
245NXP_I2C_FRAGMENTATION_ENABLED=0x00
246
247###############################################################################
248# Core configuration settings
249NXP_CORE_CONF={ 20, 02, 2D, 0F,
250        85, 01, 01,
251        28, 01, 00,
252        21, 01, 00,
253        30, 01, 08,
254        31, 01, 03,
255        32, 01, 60,
256        38, 01, 01,
257        33, 00,
258        54, 01, 06,
259        50, 01, 02,
260        5B, 01, 00,
261        80, 01, 01,
262        81, 01, 01,
263        82, 01, 0E,
264        18, 01, 01
265        }
266
267###############################################################################
268#Enable SWP full power mode when phone is power off
269NXP_SWP_FULL_PWR_ON=0x00
270
271###############################################################################
272#Set the default Felica T3T System Code OffHost route Location :
273# host  0x00
274# eSE   0x01
275# UICC  0x02
276# UICC2 0x03
277DEFAULT_SYS_CODE_ROUTE=0x00
278
279###############################################################################
280#Set the default Felica T3T System Code :
281DEFAULT_SYS_CODE={FE,FF}
282
283###############################################################################
284# AID Matching platform options
285# AID_MATCHING_L 0x01
286# AID_MATCHING_K 0x02
287AID_MATCHING_PLATFORM=0x01
288
289###############################################################################
290#CHINA_TIANJIN_RF_SETTING
291#Enable  0x01
292#Disable  0x00
293NXP_CHINA_TIANJIN_RF_ENABLED=0x01
294
295###############################################################################
296#SWP_SWITCH_TIMEOUT_SETTING
297# Allowed range of swp timeout setting is 0x00 to 0x3C [0 - 60].
298# Timeout in milliseconds, for example
299# No Timeout  0x00
300# 10 millisecond timeout 0x0A
301NXP_SWP_SWITCH_TIMEOUT=0x0A
302
303##############################################################################
304# Extended APDU length for ISO_DEP
305ISO_DEP_MAX_TRANSCEIVE=0xFEFF
306
307###############################################################################
308# Vendor Specific Proprietary Protocol & Discovery Configuration
309# Set to 0xFF if unsupported
310#  byte[0] NCI_PROTOCOL_18092_ACTIVE
311#  byte[1] NCI_PROTOCOL_B_PRIME
312#  byte[2] NCI_PROTOCOL_DUAL
313#  byte[3] NCI_PROTOCOL_15693
314#  byte[4] NCI_PROTOCOL_KOVIO
315#  byte[5] NCI_PROTOCOL_MIFARE
316#  byte[6] NCI_DISCOVERY_TYPE_POLL_KOVIO
317#  byte[7] NCI_DISCOVERY_TYPE_POLL_B_PRIME
318#  byte[8] NCI_DISCOVERY_TYPE_LISTEN_B_PRIME
319NFA_PROPRIETARY_CFG={05, FF, FF, 06, 81, 80, 70, FF, FF}
320
321###############################################################################
322# Choose the presence-check algorithm for type-4 tag.  If not defined, the default value is 1.
323# 0  NFA_RW_PRES_CHK_DEFAULT; Let stack selects an algorithm
324# 1  NFA_RW_PRES_CHK_I_BLOCK; ISO-DEP protocol's empty I-block
325# 2 NFA_RW_PRES_CHK_ISO_DEP_NAK; Type - 4 tag protocol iso-dep nak presence check
326#    command is sent waiting for rsp and ntf.
327PRESENCE_CHECK_ALGORITHM=2
328
329###############################################################################
330