Love Khanna | d5f65e1 | 2018-03-06 09:39:05 +0530 | [diff] [blame] | 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 |
| 11 | NXPLOG_EXTNS_LOGLEVEL=0x03 |
| 12 | NXPLOG_NCIHAL_LOGLEVEL=0x03 |
| 13 | NXPLOG_NCIX_LOGLEVEL=0x03 |
| 14 | NXPLOG_NCIR_LOGLEVEL=0x03 |
| 15 | NXPLOG_FWDNLD_LOGLEVEL=0x03 |
| 16 | NXPLOG_TML_LOGLEVEL=0x03 |
| 17 | |
| 18 | ############################################################################### |
| 19 | # Nfc Device Node name |
| 20 | NXP_NFC_DEV_NODE="/dev/pn553" |
| 21 | |
| 22 | ############################################################################### |
| 23 | # Extension for Mifare reader enable |
| 24 | MIFARE_READER_ENABLE=0x01 |
| 25 | |
| 26 | ############################################################################### |
| 27 | # Vzw Feature enable |
| 28 | VZW_FEATURE_ENABLE=0x01 |
| 29 | |
| 30 | ############################################################################### |
| 31 | # File name for Firmware |
| 32 | NXP_FW_NAME="libpn553_fw.so" |
| 33 | |
| 34 | ############################################################################### |
| 35 | # System clock source selection configuration |
| 36 | #define CLK_SRC_XTAL 1 |
| 37 | #define CLK_SRC_PLL 2 |
| 38 | NXP_SYS_CLK_SRC_SEL=0x02 |
| 39 | |
| 40 | ############################################################################### |
| 41 | # System clock frequency selection configuration |
| 42 | #define CLK_FREQ_13MHZ 1 |
| 43 | #define CLK_FREQ_19_2MHZ 2 |
| 44 | #define CLK_FREQ_24MHZ 3 |
| 45 | #define CLK_FREQ_26MHZ 4 |
| 46 | #define CLK_FREQ_38_4MHZ 5 |
| 47 | #define CLK_FREQ_52MHZ 6 |
| 48 | NXP_SYS_CLK_FREQ_SEL=0x02 |
| 49 | |
| 50 | ############################################################################### |
| 51 | # The timeout value to be used for clock request acknowledgment |
| 52 | # min value = 0x01 to max = 0x06 |
| 53 | NXP_SYS_CLOCK_TO_CFG=0x06 |
| 54 | |
| 55 | ############################################################################### |
| 56 | # NXP proprietary settings |
| 57 | NXP_ACT_PROP_EXTN={2F, 02, 00} |
| 58 | |
| 59 | ############################################################################### |
| 60 | # NFC forum profile settings |
| 61 | NXP_NFC_PROFILE_EXTN={20, 02, 05, 01, A0, 44, 01, 00} |
| 62 | |
| 63 | ############################################################################### |
| 64 | # NFCC Configuration Control |
| 65 | # Allow NFCC to manage RF Config 0x01 |
| 66 | # Don't allow NFCC to manage RF Config 0x00 |
| 67 | NXP_NFC_MERGE_RF_PARAMS={20, 02, 04, 01, 85, 01, 01} |
| 68 | |
| 69 | ############################################################################### |
| 70 | # Standby enable settings |
| 71 | #NXP_CORE_STANDBY={2F, 00, 01, 01} |
| 72 | |
| 73 | ############################################################################### |
| 74 | # NXP TVDD configurations settings |
| 75 | # Allow NFCC to configure External TVDD, two configurations (1 and 2) supported, |
| 76 | # out of them only one can be configured at a time. |
| 77 | NXP_EXT_TVDD_CFG=0x02 |
| 78 | |
| 79 | ############################################################################### |
| 80 | #config1:SLALM, 3.3V for both RM and CM |
| 81 | NXP_EXT_TVDD_CFG_1={20, 02, 0F, 01, A0, 0E, 0B, 31, 01, 01, 31, 00, 00, 00, 01, 00, D0, 0C} |
| 82 | |
| 83 | ############################################################################### |
| 84 | #config2: use DCDC in CE, use Tx_Pwr_Req, set CFG2 mode, SLALM, |
| 85 | #monitoring 5V from DCDC, 3.3V for both RM and CM, DCDCWaitTime=4.2ms |
| 86 | NXP_EXT_TVDD_CFG_2={20, 02, 0F, 01, A0, 0E, 0B, 11, 01, C2, B2, 00, B2, 1E, 1F, 00, D0, 0C} |
| 87 | |
| 88 | ############################################################################### |
| 89 | # NXP RF configuration ALM/PLM settings |
| 90 | # This section needs to be updated with the correct values based on the platform |
| 91 | #NXP_RF_CONF_BLK_1={ |
| 92 | #} |
| 93 | |
| 94 | ############################################################################### |
| 95 | # NXP RF configuration ALM/PLM settings |
| 96 | # This section needs to be updated with the correct values based on the platform |
| 97 | #NXP_RF_CONF_BLK_2={ |
| 98 | #} |
| 99 | |
| 100 | ############################################################################### |
| 101 | # NXP RF configuration ALM/PLM settings |
| 102 | # This section needs to be updated with the correct values based on the platform |
| 103 | #NXP_RF_CONF_BLK_3={ |
| 104 | #} |
| 105 | |
| 106 | ############################################################################### |
| 107 | # NXP RF configuration ALM/PLM settings |
| 108 | # This section needs to be updated with the correct values based on the platform |
| 109 | #NXP_RF_CONF_BLK_4={ |
| 110 | #} |
| 111 | |
| 112 | ############################################################################### |
| 113 | # NXP RF configuration ALM/PLM settings |
| 114 | # This section needs to be updated with the correct values based on the platform |
| 115 | #NXP_RF_CONF_BLK_5={ |
| 116 | #} |
| 117 | |
| 118 | ############################################################################### |
| 119 | # NXP RF configuration ALM/PLM settings |
| 120 | # This section needs to be updated with the correct values based on the platform |
| 121 | #NXP_RF_CONF_BLK_6={ |
| 122 | #} |
| 123 | |
| 124 | ############################################################################### |
| 125 | # Set configuration optimization decision setting |
| 126 | # Enable = 0x01 |
| 127 | # Disable = 0x00 |
| 128 | NXP_SET_CONFIG_ALWAYS=0x00 |
| 129 | |
| 130 | ############################################################################### |
| 131 | # Core configuration extensions |
| 132 | # It includes |
| 133 | # Wired mode settings A0ED, A0EE |
| 134 | # Tag Detector A040, A041, A043 |
| 135 | # Low Power mode A007 |
| 136 | # Clock settings A002, A003 |
| 137 | # PbF settings A008 |
| 138 | # Clock timeout settings A004 |
| 139 | # eSE (SVDD) PWR REQ settings A0F2 |
| 140 | # Window size A0D8 |
| 141 | # DWP Speed A0D5 |
| 142 | # How eSE connected to PN553 A012 |
| 143 | # UICC2 bit rate A0D1 |
| 144 | # SWP1A interface A0D4 |
| 145 | # DWP intf behavior config, SVDD Load activated by default if set to 0x31 A037 |
| 146 | NXP_CORE_CONF_EXTN={20, 02, 29, 0A, |
| 147 | A0, EC, 01, 01, |
| 148 | A0, ED, 01, 01, |
| 149 | A0, 5E, 01, 01, |
| 150 | A0, 12, 01, 02, |
| 151 | A0, 40, 01, 01, |
| 152 | A0, D1, 01, 02, |
| 153 | A0, D4, 01, 00, |
| 154 | A0, 37, 01, 35, |
| 155 | A0, D8, 01, 02, |
| 156 | A0, D5, 01, 0A |
| 157 | } |
| 158 | # A0, F2, 01, 01, |
| 159 | # A0, 40, 01, 01, |
| 160 | # A0, 41, 01, 02, |
| 161 | # A0, 43, 01, 04, |
| 162 | # A0, 02, 01, 01, |
| 163 | # A0, 03, 01, 11, |
| 164 | # A0, 07, 01, 03, |
| 165 | # A0, 08, 01, 01 |
| 166 | # } |
| 167 | |
| 168 | ############################################################################### |
| 169 | # Core configuration rf field filter settings to enable set to 01 to disable set |
| 170 | # to 00 last bit |
| 171 | NXP_CORE_RF_FIELD={ 20, 02, 05, 01, A0, 62, 01, 00 } |
| 172 | |
| 173 | ############################################################################### |
| 174 | # To enable i2c fragmentation set i2c fragmentation enable 0x01 to disable set |
| 175 | # to 0x00 |
| 176 | NXP_I2C_FRAGMENTATION_ENABLED=0x00 |
| 177 | |
| 178 | ############################################################################### |
| 179 | # Core configuration settings |
| 180 | NXP_CORE_CONF={ 20, 02, 31, 0F, |
| 181 | 85, 01, 01, |
| 182 | 28, 01, 00, |
| 183 | 21, 01, 00, |
| 184 | 30, 01, 08, |
| 185 | 31, 01, 03, |
| 186 | 32, 01, 60, |
| 187 | 38, 01, 01, |
| 188 | 33, 04, 01, 02, 03, 04, |
| 189 | 54, 01, 06, |
| 190 | 50, 01, 02, |
| 191 | 5B, 01, 00, |
| 192 | 80, 01, 01, |
| 193 | 81, 01, 01, |
| 194 | 82, 01, 0E, |
| 195 | 18, 01, 01 |
| 196 | } |
| 197 | |
| 198 | ############################################################################### |
| 199 | # Mifare Classic Key settings |
| 200 | #NXP_CORE_MFCKEY_SETTING={20, 02, 25,04, A0, 51, 06, A0, A1, A2, A3, A4, A5, |
| 201 | # A0, 52, 06, D3, F7, D3, F7, D3, F7, |
| 202 | # A0, 53, 06, FF, FF, FF, FF, FF, FF, |
| 203 | # A0, 54, 06, 00, 00, 00, 00, 00, 00} |
| 204 | |
| 205 | ############################################################################### |
| 206 | # Default SE Options |
| 207 | # No secure element 0x00 |
| 208 | # eSE 0x01 |
| 209 | # UICC 0x02 |
| 210 | # UICC2 0x04 |
| 211 | NXP_DEFAULT_SE=0x07 |
| 212 | |
| 213 | ############################################################################### |
| 214 | #Enable SWP full power mode when phone is power off |
| 215 | NXP_SWP_FULL_PWR_ON=0x00 |
| 216 | |
| 217 | ############################################################################### |
| 218 | #### Select the CHIP #### |
| 219 | #PN547C2 0x01 |
| 220 | #PN65T 0x02 |
| 221 | #PN548AD 0x03 |
| 222 | #PN66T 0x04 |
| 223 | #PN551 0x05 |
| 224 | #PN67T 0x06 |
| 225 | #PN553 0x07 |
| 226 | #PN80T 0x08 |
| 227 | NXP_NFC_CHIP=0x08 |
| 228 | |
| 229 | ############################################################################### |
| 230 | # CE when Screen state is locked |
| 231 | # This setting is for DEFAULT_AID_ROUTE, |
| 232 | # DEFAULT_DESFIRE_ROUTE and DEFAULT_MIFARE_CLT_ROUTE |
| 233 | # Disable 0x00 |
| 234 | # Enable 0x01 |
| 235 | NXP_CE_ROUTE_STRICT_DISABLE=0x01 |
| 236 | |
| 237 | ############################################################################### |
| 238 | #Timeout in secs to get NFCEE Discover notification |
| 239 | NXP_DEFAULT_NFCEE_DISC_TIMEOUT=20 |
| 240 | |
| 241 | ############################################################################### |
| 242 | NXP_DEFAULT_NFCEE_TIMEOUT=20 |
| 243 | |
| 244 | ############################################################################### |
| 245 | #Timeout in secs |
| 246 | NXP_SWP_RD_START_TIMEOUT=0x0A |
| 247 | |
| 248 | ############################################################################### |
| 249 | #Timeout in secs |
| 250 | NXP_SWP_RD_TAG_OP_TIMEOUT=0x01 |
| 251 | |
| 252 | ############################################################################### |
| 253 | #Set the default AID route Location : |
| 254 | #This settings will be used when application does not set this parameter |
| 255 | # host 0x00 |
| 256 | # eSE 0x01 |
| 257 | # UICC 0x02 |
| 258 | # UICC2 0x03 |
| 259 | DEFAULT_AID_ROUTE=0x00 |
| 260 | |
| 261 | ############################################################################### |
| 262 | #Set the Mifare Desfire route Location : |
| 263 | #This settings will be used when application does not set this parameter |
| 264 | # host 0x00 |
| 265 | # eSE 0x01 |
| 266 | # UICC 0x02 |
| 267 | # UICC2 0x03 |
| 268 | DEFAULT_DESFIRE_ROUTE=0x02 |
| 269 | |
| 270 | ############################################################################### |
| 271 | #Set the Mifare CLT route Location : |
| 272 | #This settings will be used when application does not set this parameter |
| 273 | # host 0x00 |
| 274 | # eSE 0x01 |
| 275 | # UICC 0x02 |
| 276 | # UICC2 0x03 |
| 277 | DEFAULT_MIFARE_CLT_ROUTE=0x02 |
| 278 | |
| 279 | ############################################################################### |
| 280 | #Set the Felica CLT route Location : |
| 281 | #This settings will be used when application does not set this parameter |
| 282 | # eSE 0x01 |
| 283 | # UICC 0x02 |
| 284 | # UICC2 0x03 |
| 285 | DEFAULT_FELICA_CLT_ROUTE=0x01 |
| 286 | |
| 287 | ############################################################################### |
| 288 | #Set the default AID Power state : |
| 289 | #This settings will be used when application does not set this parameter |
| 290 | # bit pos 0 = Switch On |
| 291 | # bit pos 1 = Switch Off |
| 292 | # bit pos 2 = Battery Off |
| 293 | # bit pos 3 = Screen Lock |
| 294 | # bit pos 4 = Screen Off |
| 295 | DEFAULT_AID_PWR_STATE=0x19 |
| 296 | |
| 297 | ############################################################################### |
| 298 | #Set the Mifare Desfire Power state : |
| 299 | #This settings will be used when application does not set this parameter |
| 300 | # bit pos 0 = Switch On |
| 301 | # bit pos 1 = Switch Off |
| 302 | # bit pos 2 = Battery Off |
| 303 | # bit pos 3 = Screen Lock |
| 304 | # bit pos 4 = Screen Off |
| 305 | DEFAULT_DESFIRE_PWR_STATE=0x1B |
| 306 | |
| 307 | ############################################################################### |
| 308 | #Set the Mifare CLT Power state : |
| 309 | #This settings will be used when application does not set this parameter |
| 310 | # bit pos 0 = Switch On |
| 311 | # bit pos 1 = Switch Off |
| 312 | # bit pos 2 = Battery Off |
| 313 | # bit pos 3 = Screen Lock |
| 314 | # bit pos 4 = Screen Off |
| 315 | DEFAULT_MIFARE_CLT_PWR_STATE=0x1B |
| 316 | |
| 317 | ############################################################################### |
| 318 | #Set the Felica CLT Power state : |
| 319 | #This settings will be used when application does not set this parameter |
| 320 | # bit pos 0 = Switch On |
| 321 | # bit pos 1 = Switch Off |
| 322 | # bit pos 2 = Battery Off |
| 323 | # bit pos 3 = Screen Lock |
| 324 | # bit pos 4 = Screen Off |
| 325 | DEFAULT_FELICA_CLT_PWR_STATE=0x1B |
| 326 | |
| 327 | ############################################################################### |
| 328 | # AID Matching platform options |
| 329 | # AID_MATCHING_L 0x01 |
| 330 | # AID_MATCHING_K 0x02 |
| 331 | AID_MATCHING_PLATFORM=0x01 |
| 332 | |
| 333 | ############################################################################### |
| 334 | # P61 interface options |
| 335 | # NFC 0x01 |
| 336 | # SPI 0x02 |
| 337 | NXP_P61_LS_DEFAULT_INTERFACE=0x01 |
| 338 | |
| 339 | ############################################################################### |
| 340 | # P61 LTSM interface options |
| 341 | # NFC 0x01 |
| 342 | # SPI 0x02 |
| 343 | NXP_P61_LTSM_DEFAULT_INTERFACE=0x01 |
| 344 | |
| 345 | ############################################################################### |
| 346 | #CHINA_TIANJIN_RF_SETTING |
| 347 | #Enable 0x01 |
| 348 | #Disable 0x00 |
| 349 | NXP_CHINA_TIANJIN_RF_ENABLED=0x01 |
| 350 | |
| 351 | ############################################################################### |
| 352 | #SWP_SWITCH_TIMEOUT_SETTING |
| 353 | # Allowed range of swp timeout setting is 0x00 to 0x3C [0 - 60]. |
| 354 | # Timeout in milliseconds, for example |
| 355 | # No Timeout 0x00 |
| 356 | # 10 millisecond timeout 0x0A |
| 357 | NXP_SWP_SWITCH_TIMEOUT=0x0A |
| 358 | |
| 359 | ############################################################################### |
| 360 | # P61 interface options for JCOP Download |
| 361 | # NFC 0x01 |
| 362 | # SPI 0x02 |
| 363 | NXP_P61_JCOP_DEFAULT_INTERFACE=0x01 |
| 364 | |
| 365 | ############################################################################### |
| 366 | # P61 JCOP OS download options |
| 367 | # FRAMEWORK API BY APPLICATION 0x00 |
| 368 | # AT BOOT_TIME 0x01 |
| 369 | NXP_JCOPDL_AT_BOOT_ENABLE=0x00 |
| 370 | |
| 371 | ############################################################################### |
| 372 | # Loader service version |
| 373 | # NFC service checks for LS version 2.0 or 2.1 |
| 374 | # LS2.0 0x20 |
| 375 | # LS2.1 0x21 |
| 376 | # LS2.2 0x22 |
| 377 | # AT NFC service intialization |
| 378 | NXP_LOADER_SERVICE_VERSION=0x22 |
| 379 | |
| 380 | ############################################################################### |
| 381 | #Timeout value in milliseconds for NFCC standby mode.The range is between 5000 |
| 382 | #msec to 20000 msec and zero is to disable. |
| 383 | NXP_NFCC_STANDBY_TIMEOUT=20000 |
| 384 | |
| 385 | ############################################################################### |
| 386 | #Dynamic RSSI feature enable |
| 387 | # Disable 0x00 |
| 388 | # Enable 0x01 |
| 389 | NXP_AGC_DEBUG_ENABLE=0x00 |
| 390 | |
| 391 | ############################################################################### |
| 392 | #Virtual Mode ESE and Wired Mode ongoing delay Wired Mode |
| 393 | # For Technology routing to ESE Technology Mask = 4 |
| 394 | # For ISO-DEP Protocol routing to ESE Mask = 2 |
| 395 | # It can also take TECH|PROTO = 6 |
| 396 | # To ignore the delay set mask to = 0 |
| 397 | NXP_ESE_WIRED_PRT_MASK=0x00 |
| 398 | |
| 399 | ############################################################################### |
| 400 | #Virtual Mode UICC and Wired Mode ongoing delay Wired Mode |
| 401 | #For Technology routing to UICC Technology Mask = 4 |
| 402 | #For ISO-DEP Protocol routing to UICC set Mask = 2 |
| 403 | #For Select AID Routing to UICC set Mask = 1 |
| 404 | #It can also take values TECH|PROTO|SELECT_AID = 7 , 6 , 5 ,3 .To ignore delay |
| 405 | #set mask = 0 |
| 406 | NXP_UICC_WIRED_PRT_MASK=0x00 |
| 407 | |
| 408 | ################################################################################ |
| 409 | #RF field true delay Wired Mode |
| 410 | # delay wired mode = 1 |
| 411 | # allow wired mode = 0 |
| 412 | NXP_WIRED_MODE_RF_FIELD_ENABLE=0x00 |
| 413 | |
| 414 | ############################################################################### |
| 415 | #Config to allow adding aids |
| 416 | #NFC on/off is required after this config |
| 417 | #1 = enabling adding aid to NFCC routing table. |
| 418 | #0 = disabling adding aid to NFCC routing table. |
| 419 | NXP_ENABLE_ADD_AID=0x01 |
| 420 | |
| 421 | ############################################################################### |
| 422 | # JCOP-3.3 continuous process timeout in msec and value should be in Hexadecimal |
| 423 | # JCOP CP TIMEOUT |
| 424 | NXP_CP_TIMEOUT={00, 77} |
| 425 | |
| 426 | ############################################################################### |
| 427 | # Enable/Disable checking default proto SE Id |
| 428 | # Disable 0x00 |
| 429 | # Enable 0x01 |
| 430 | NXP_CHECK_DEFAULT_PROTO_SE_ID=0x01 |
| 431 | |
| 432 | ############################################################################### |
| 433 | #NXP_CN_TRANSIT_BLK_NUM_CHECK_ENABLE |
| 434 | #Enable/Disable block number checks for china transit use case |
| 435 | #Enable 0x01 |
| 436 | #Disable 0x00 |
| 437 | NXP_CN_TRANSIT_BLK_NUM_CHECK_ENABLE=0x01 |
| 438 | |
| 439 | ############################################################################### |
| 440 | # Wired mode resume timeout vaule in wired mode resume feature enable |
| 441 | # DWP resume time out in ms( 4 bytes hex value and LSB first) |
| 442 | #example 1000 = 0x03E8 |
| 443 | #exmaple 2000 = 0x07D0 |
| 444 | #example 500 = 0x01F4 |
| 445 | NXP_WIREDMODE_RESUME_TIMEOUT={E8,03,00,00} |
| 446 | ############################################################################### |
| 447 | # Power to eSE is controlled by DH or PMU depending on following configurations |
| 448 | #define DH_PWR_CONTROL 1 |
| 449 | #define PMU_PWR_CONTROL 2 |
| 450 | NXP_ESE_POWER_DH_CONTROL=1 |
| 451 | |
| 452 | ############################################################################### |
| 453 | # Timeout value in milliseconds for wired mode resume after RF field event timeout |
| 454 | NXP_NFCC_RF_FIELD_EVENT_TIMEOUT=3000 |
| 455 | |
| 456 | ############################################################################### |
| 457 | # NXP PMU Support configuration is sent if PMU_PWR_CONTROL is configured |
| 458 | # External PMU available in phone ON and phone OFF case if NXP_ESE_POWER_EXT_PMU=1 |
| 459 | # External PMU available only in phone ON case if NXP_ESE_POWER_EXT_PMU=2 |
| 460 | NXP_ESE_POWER_EXT_PMU=2 |
| 461 | |
| 462 | ############################################################################### |
| 463 | # Whether to allow wired mode in desfire and mifare CLT |
| 464 | # Disable 0x00 |
| 465 | # Enable 0x01 |
| 466 | NXP_ALLOW_WIRED_IN_MIFARE_DESFIRE_CLT=0x00 |
| 467 | |
| 468 | ############################################################################### |
| 469 | # Restrict routing to first matched rule only. |
| 470 | # Blacklist enable 0x01 |
| 471 | # Blacklist disable 0x00 |
| 472 | NXP_PROP_BLACKLIST_ROUTING=0x00 |
| 473 | |
| 474 | ############################################################################### |
| 475 | # Send DWP interface reset command as part of SE open |
| 476 | # Disable 0x00 |
| 477 | # Enable 0x01 |
| 478 | NXP_DWP_INTF_RESET_ENABLE=0x01 |
| 479 | |
| 480 | ############################################################################### |
| 481 | # Timeout value in milliseconds for JCOP OS download to complete |
| 482 | OS_DOWNLOAD_TIMEOUT_VALUE=60000 |
| 483 | |
| 484 | ############################################################################### |
| 485 | # Timeout value in milliseconds to send response for Felica command received |
| 486 | NXP_HCEF_CMD_RSP_TIMEOUT_VALUE=5000 |
| 487 | |
| 488 | ############################################################################### |