Cyan_Hsieh | e7cfbb7 | 2021-12-06 17:48:44 +0800 | [diff] [blame] | 1 | ########################### Start of libnf-hal-st_aosp.conf ########################### |
| 2 | |
| 3 | ############################################################################### |
| 4 | ############################################################################### |
| 5 | # ST HAL trace log level |
| 6 | STNFC_HAL_LOGLEVEL=1 |
| 7 | NFC_DEBUG_ENABLED=0 |
| 8 | |
| 9 | ############################################################################### |
| 10 | # Vendor specific mode to enable FW (RF & SWP) traces. |
| 11 | STNFC_FW_DEBUG_ENABLED=0 |
| 12 | |
| 13 | ############################################################################### |
| 14 | # File used for NFA storage |
| 15 | NFA_STORAGE="/data/nfc" |
| 16 | |
| 17 | ############################################################################### |
| 18 | # Keep the nfa storage file. |
| 19 | PRESERVE_STORAGE=1 |
| 20 | |
| 21 | ############################################################################### |
| 22 | # In Switch OFF mode (phone switched-off), specify the desired CE mode to |
| 23 | # the controller. |
| 24 | # 0: No card-emulation; DEFAULT |
| 25 | # 1: Switch-off card-emulation enabled |
| 26 | CE_ON_SWITCH_OFF_STATE=1 |
| 27 | |
| 28 | ############################################################################### |
| 29 | # Vendor specific mode to support the USB charging mode if VPSIO=1 in switch off. |
| 30 | STNFC_USB_CHARGING_MODE=1 |
| 31 | |
| 32 | ############################################################################### |
| 33 | # Vendor Specific Proprietary Protocol & Discovery Configuration |
| 34 | # Set to 0xFF if unsupported |
| 35 | # byte[0] NCI_PROTOCOL_18092_ACTIVE |
| 36 | # byte[1] NCI_PROTOCOL_B_PRIME |
| 37 | # byte[2] NCI_PROTOCOL_DUAL |
| 38 | # byte[3] NCI_PROTOCOL_15693 |
| 39 | # byte[4] NCI_PROTOCOL_KOVIO |
| 40 | # byte[5] NCI_PROTOCOL_MIFARE |
| 41 | # byte[6] NCI_DISCOVERY_TYPE_POLL_KOVIO |
| 42 | # byte[7] NCI_DISCOVERY_TYPE_POLL_B_PRIME |
| 43 | # byte[8] NCI_DISCOVERY_TYPE_LISTEN_B_PRIME |
| 44 | NFA_PROPRIETARY_CFG={05:FF:FF:06:8A:90:77:FF:FF} |
| 45 | |
| 46 | ############################################################################### |
| 47 | # Choose the presence-check algorithm for type-4 tag. If not defined, |
| 48 | # the default value is 1. |
| 49 | # 0 NFA_RW_PRES_CHK_DEFAULT; Let stack selects an algorithm |
| 50 | # 1 NFA_RW_PRES_CHK_I_BLOCK; ISO-DEP protocol's empty I-block |
| 51 | # 2 NFA_RW_PRES_CHK_RESET; Deactivate to Sleep, then re-activate |
| 52 | # 3 NFA_RW_PRES_CHK_RB_CH0; Type-4 tag protocol's ReadBinary command on channel 0 |
| 53 | # 4 NFA_RW_PRES_CHK_RB_CH3; Type-4 tag protocol's ReadBinary command on channel 3 |
| 54 | # 5 NFA_RW_PRES_CHK_ISO_DEP_NAK; presence check command ISO-DEP NAK as per NCI2.0 |
| 55 | PRESENCE_CHECK_ALGORITHM=5 |
| 56 | |
| 57 | ############################################################################### |
| 58 | # Name of the NCI HAL module to use |
| 59 | # If unset, falls back to nfc_nci.bcm2079x |
| 60 | NCI_HAL_MODULE="nfc_nci.st21nfc" |
| 61 | |
| 62 | ############################################################################### |
George Chang | 6ee6dd6 | 2022-05-05 01:43:38 +0800 | [diff] [blame] | 63 | # Allow list to be set at startup. |
| 64 | DEVICE_HOST_ALLOW_LIST={02:C0} |
Cyan_Hsieh | e7cfbb7 | 2021-12-06 17:48:44 +0800 | [diff] [blame] | 65 | |
| 66 | ############################################################################### |
| 67 | # BAIL OUT value for P2P |
| 68 | # Implements algorithm for NFC-DEP protocol priority over ISO-DEP protocol. |
| 69 | POLL_BAIL_OUT_MODE=1 |
| 70 | |
| 71 | ############################################################################### |
| 72 | # Extended APDU length for ISO_DEP |
| 73 | ISO_DEP_MAX_TRANSCEIVE=0xFEFF |
| 74 | |
| 75 | ############################################################################### |
| 76 | # Configure the NFC Extras to open and use a static pipe. If the value is |
| 77 | # not set or set to 0, then the default is use a dynamic pipe based on a |
| 78 | # destination gate (see NFA_HCI_DEFAULT_DEST_GATE). Note there is a value |
| 79 | # for each EE (ESE/SIM) |
| 80 | OFF_HOST_ESE_PIPE_ID=0x5E |
| 81 | OFF_HOST_SIM_PIPE_ID=0x3E |
| 82 | |
| 83 | ############################################################################### |
| 84 | #Set the default Felica T3T System Code OffHost route Location : |
| 85 | #This settings will be used when application does not set this parameter |
| 86 | # host 0x00 |
| 87 | # eSE 0x82 (eSE), 0x86 (eUICC/SPI-SE) |
| 88 | # UICC 0x81 (UICC_1), 0x85 (UICC_2) |
| 89 | DEFAULT_SYS_CODE_ROUTE=0x86 |
| 90 | |
| 91 | ############################################################################### |
| 92 | #Set the Felica T3T System Code supported power state: |
| 93 | DEFAULT_SYS_CODE_PWR_STATE=0x3B |
| 94 | |
| 95 | ############################################################################### |
| 96 | # Path and Files used for FW update binaries storage |
| 97 | STNFC_FW_PATH_STORAGE="/vendor/firmware" |
| 98 | STNFC_FW_BIN_NAME="/st54j_fw.bin" |
| 99 | STNFC_FW_CONF_NAME="/st54j_conf.bin" |
| 100 | |
| 101 | ############################################################################### |
| 102 | # Default off-host route for Felica. |
| 103 | # This settings will be used when application does not set this parameter |
| 104 | # host 0x00 |
| 105 | # eSE 0x82 (eSE), 0x86 (eUICC/SPI-SE) |
| 106 | # UICC 0x81 (UICC_1), 0x85 (UICC_2) |
| 107 | DEFAULT_NFCF_ROUTE=0x86 |
| 108 | |
| 109 | ############################################################################### |
| 110 | # Configure the default off-host route. |
| 111 | # used for technology A and B routing |
| 112 | # eSE 0x82 (eSE), 0x86 (eUICC/SPI-SE) |
| 113 | # UICC 0x81 (UICC_1), 0x85 (UICC_2) |
| 114 | DEFAULT_OFFHOST_ROUTE=0x81 |
| 115 | |
| 116 | ############################################################################### |
| 117 | # Configure the default AID route. |
| 118 | # host 0x00 |
| 119 | # eSE 0x82 (eSE), 0x86 (eUICC/SPI-SE) |
| 120 | # UICC 0x81 (UICC_1), 0x85 (UICC_2) |
| 121 | DEFAULT_ROUTE=0x00 |
| 122 | |
| 123 | ############################################################################### |
| 124 | # Configure the NFCEEIDs of offhost UICC. |
| 125 | # UICC 0x81 (UICC_1), 0x85 (UICC_2) |
| 126 | OFFHOST_ROUTE_UICC={81} |
| 127 | |
| 128 | ############################################################################### |
| 129 | # Configure the NFCEEIDs of offhost eSEs. |
| 130 | # eSE 0x82 (eSE), 0x86 (eUICC/SPI-SE) |
| 131 | OFFHOST_ROUTE_ESE={86} |
| 132 | |
| 133 | ############################################################################### |
| 134 | # Configure the list of NFCEE for the ISO-DEP routing. |
| 135 | # host 0x00 |
| 136 | # eSE 0x82 (eSE), 0x86 (eUICC/SPI-SE) |
| 137 | # UICC 0x81 (UICC_1), 0x85 (UICC_2) |
| 138 | DEFAULT_ISODEP_ROUTE=0x81 |
| 139 | |
| 140 | ############################################################################### |
| 141 | # Configure the HAL Clock control |
| 142 | # enable 0x01 |
| 143 | # disable 0x00 default value |
| 144 | STNFC_CONTROL_CLK=0x01 |
| 145 | |
| 146 | ################################################################################ |
| 147 | # Configure the ACTIVE_RW timer |
| 148 | # Default 0x00, set 0x01 to enable it |
| 149 | STNFC_ACTIVERW_TIMER=0x01 |
| 150 | |
| 151 | ################################################################################ |
| 152 | # Core configuration settings |
| 153 | CORE_CONF_PROP={ 20, 02, 0a, 03, |
| 154 | a1, 01, 1e, |
| 155 | a2, 01, 19, |
| 156 | 80, 01, 01 |
| 157 | } |
| 158 | |
| 159 | |