Vincent Zvikaramba | ef160e1 | 2017-01-31 04:45:23 +0000 | [diff] [blame^] | 1 | ############################################################################### |
| 2 | # NFC Configuration for NON-HAL component S3FWRN5 |
| 3 | # Samsung Electronics, System LSI Division |
| 4 | # Update Date : 2014/06/27 |
| 5 | # Region : All region except HongKong, SPRINT |
| 6 | # F/W Version dependency : NONE |
| 7 | # This file contains below |
| 8 | # 1) Default routing information |
| 9 | # 2) Partial AID setting |
| 10 | # 3) UICC listen tech mask |
| 11 | # 4) Listen tech mask for P2P |
| 12 | # 5) Poll tech mask |
| 13 | # 6) eSE warm reset |
| 14 | # 7) Other Information |
| 15 | |
| 16 | ################################################################################ |
| 17 | # 1) Default routing information |
| 18 | # SPRINT : DEFAULT_ISODEP_ROUTE=0x02 (eSE only) / ACTIVE_SE=0x02 |
| 19 | # Other region : DEFAULT_ISODEP_ROUTE=0x03 (UICC) / ACTIVE_SE=0x03 |
| 20 | DEFAULT_ISODEP_ROUTE=0x03 |
| 21 | ACTIVE_SE=0x03 |
| 22 | |
| 23 | ############################################################################### |
| 24 | # 2) Partial AID setting |
| 25 | # This configuration may be changed by MNO specific requirement. |
| 26 | # Description |
| 27 | # 1st byte : NCI Length |
| 28 | # 2nd byte : Number of set |
| 29 | # 3rd~ bytes : Partial matching order |
| 30 | # Matching value : Full matching = 0x00, Subset Matching = 0x01, Superset Matching : 0x02, Pattern Matching : 0x03 |
| 31 | # ex) 2f 39 03 02 01 02 --> order : full matching - subset matching - superset matching PARTIAL_AID={03:02:01:02} |
| 32 | #PARTIAL_AID={02:01:02} |
| 33 | |
| 34 | ############################################################################### |
| 35 | # Guide for tech mask |
| 36 | # The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h. |
| 37 | # Notable bits: |
| 38 | # NFA_TECHNOLOGY_MASK_A 0x01 |
| 39 | # NFA_TECHNOLOGY_MASK_B 0x02 |
| 40 | # NFA_TECHNOLOGY_MASK_F 0x04 |
| 41 | # NFA_TECHNOLOGY_MASK_ISO15693 0x08 |
| 42 | # NFA_TECHNOLOGY_MASK_B_PRIME 0x10 |
| 43 | # NFA_TECHNOLOGY_MASK_KOVIO 0x20 |
| 44 | # NFA_TECHNOLOGY_MASK_A_ACTIVE 0x40 |
| 45 | # NFA_TECHNOLOGY_MASK_F_ACTIVE 0x80 |
| 46 | # Example : |
| 47 | # Polling mask for A / B / F / V(15693) / Kovio / Active A / Active F |
| 48 | # NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_B | |
| 49 | # NFA_TECHNOLOGY_MASK_F | NFA_TECHNOLOGY_MASK_ISO15693 | |
| 50 | # NFA_TECHNOLOGY_MASK_A_ACTIVE | NFA_TECHNOLOGY_MASK_F_ACTIVE. |
| 51 | # 0x01 | 0x02 | 0x04 | 0x08 | 0x20 | 0x40 |
| 52 | # => POLLING_TECH_MASK=0xEF |
| 53 | |
| 54 | ############################################################################### |
| 55 | # 3) UICC listen tech mask |
| 56 | # Force UICC to only listen to the following technology(s). |
| 57 | # Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_B. |
| 58 | # If this option is blocked by # comment, default value will be applied |
| 59 | # Guide for each region |
| 60 | # SPRINT : UICC_LISTEN_TECH_MASK=0x01 (Type A only) |
| 61 | # HK : UICC_LISTEN_TECH_MASK=0x07 (Enable Type F card) |
| 62 | # Other region : UICC_LISTEN_TECH_MASK=0x03 (Default value) |
| 63 | UICC_LISTEN_TECH_MASK=0x03 |
| 64 | |
| 65 | ############################################################################### |
| 66 | # 4) Listen tech mask for P2P |
| 67 | # Force tag polling for the following technology(s). |
| 68 | # Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_B | |
| 69 | # NFA_TECHNOLOGY_MASK_F | NFA_TECHNOLOGY_MASK_ISO15693 | |
| 70 | # NFA_TECHNOLOGY_MASK_A_ACTIVE | NFA_TECHNOLOGY_MASK_F_ACTIVE. |
| 71 | # Current Setting : Enable all poll tech |
| 72 | POLLING_TECH_MASK=0xEF |
| 73 | |
| 74 | ############################################################################### |
| 75 | # 5) Poll tech mask |
| 76 | # Force P2P to only listen for the following technology(s). |
| 77 | # The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h. |
| 78 | # Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_F | |
| 79 | # NFA_TECHNOLOGY_MASK_A_ACTIVE | NFA_TECHNOLOGY_MASK_F_ACTIVE |
| 80 | # For HK, P2P_LISTEN_TECH_MASK may be 0xC0 for enhance type F card success ratio |
| 81 | P2P_LISTEN_TECH_MASK=0xC4 |
| 82 | |
| 83 | ############################################################################### |
| 84 | # Maximum Number of Credits to be allowed by the NFCC |
| 85 | # This value overrides what the NFCC specifices allowing the host to have |
| 86 | # the control to work-around transport limitations. If this value does |
| 87 | # not exist or is set to 0, the NFCC will provide the number of credits. |
| 88 | MAX_RF_DATA_CREDITS=1 |
| 89 | |
| 90 | ############################################################################### |
| 91 | # When disconnecting from Oberthur secure element, perform a warm-reset of |
| 92 | # the secure element to deselect the applet. |
| 93 | # The default hex value of the command is 0x3. If this variable is undefined, |
| 94 | # then this feature is not used. |
| 95 | # 6) OBERTHUR_WARM_RESET_COMMAND must be enabled for all eSE model |
| 96 | OBERTHUR_WARM_RESET_COMMAND=0x03 |
| 97 | |
| 98 | ############################################################################### |
| 99 | # 7) Other Information |
| 100 | # It will be checked in next version. |
| 101 | ############################################################################### |
| 102 | |
| 103 | ############################################################################### |
| 104 | # Application options |
| 105 | APPL_TRACE_LEVEL=0xFF |
| 106 | PROTOCOL_TRACE_LEVEL=0xFFFFFFFF |
| 107 | |
| 108 | PRESERVE_STORAGE=1 |
| 109 | |
| 110 | # File used for NFA storage |
| 111 | NFA_STORAGE="/data/nfc" |
| 112 | |
| 113 | ############################################################################### |
| 114 | # power control driver |
| 115 | # Specify a kernel driver that support ioctl commands to control NFC_EN and |
| 116 | # NFC_WAKE gpio signals. |
| 117 | # |
| 118 | # POWER_CONTRL_DRIVER=<driver> |
| 119 | # i2c and spi driver may be used to control NFC_EN and NFC_WAKE signal |
| 120 | POWER_CONTROL_DRIVER="/dev/sec-nfc" |
| 121 | |
| 122 | ############################################################################### |
| 123 | # transport driver |
| 124 | # |
| 125 | # TRANSPORT_DRIVER=<driver> |
| 126 | # |
| 127 | # where <driver> can be, for example: |
| 128 | # "/dev/ttyS" (UART) |
| 129 | # "/dev/bcmi2cnfc" (I2C) |
| 130 | # "hwtun" (HW Tunnel) |
| 131 | # "/dev/bcmspinfc" (SPI) |
| 132 | # "/dev/btusb0" (BT USB) |
| 133 | TRANSPORT_DRIVER="/dev/sec-nfc" |
| 134 | |
| 135 | ############################################################################### |
| 136 | # Default poll duration (in ms) |
| 137 | # The defualt is 500ms if not set (see nfc_target.h) same as M project |
| 138 | NFA_DM_DISC_DURATION_POLL=500 |
| 139 | |
| 140 | ############################################################################### |
| 141 | # May not used in S3FWRN5 |
| 142 | ############################################################################### |
| 143 | |
| 144 | ############################################################################### |
| 145 | # Insert a delay in milliseconds after NFC_WAKE and before write to NFCC |
| 146 | NFC_WAKE_DELAY=20 |
| 147 | |
| 148 | ############################################################################### |
| 149 | # Firmware patch file |
| 150 | # If the value is not set then patch download is disabled. |
| 151 | #FW_PATCH="/vendor/firmware/sec_s3fnrn3_firmware.bin" |
| 152 | |
| 153 | ############################################################################### |
| 154 | # Not used in S.LSI solution |
| 155 | ############################################################################### |
| 156 | |
| 157 | ############################################################################### |
| 158 | # Various Delay settings (in ms) used in USERIAL |
| 159 | # POWER_ON_DELAY |
| 160 | # Delay after turning on chip, before writing to transport (default 300) |
| 161 | # PRE_POWER_OFF_DELAY |
| 162 | # Delay after deasserting NFC-Wake before turn off chip (default 0) |
| 163 | # POST_POWER_OFF_DELAY |
| 164 | # Delay after turning off chip, before USERIAL_close returns (default 0) |
| 165 | # CE3_PRE_POWER_OFF_DELAY |
| 166 | # Delay after deasserting NFC-Wake before turn off chip (default 1000) |
| 167 | # when going to CE3 Switch Off mode |
| 168 | # |
| 169 | #POWER_ON_DELAY=300 |
| 170 | PRE_POWER_OFF_DELAY=1500 |
| 171 | #POST_POWER_OFF_DELAY=0 |
| 172 | #CE3_PRE_POWER_OFF_DELAY=1000 |
| 173 | |
| 174 | |
| 175 | ############################################################################### |
| 176 | # Device Manager Config |
| 177 | # |
| 178 | # If NFA_DM_CFG is not provided, stack default settings are |
| 179 | # used (see nfa_dm_cfg.c). They are as follows: |
| 180 | # 0 (FALSE) Automatic NDEF detection when background polling |
| 181 | # 0 (FALSE) Automatic NDEF read when background polling |
| 182 | # |
| 183 | #NFA_DM_CFG={00:00} |
| 184 | |
| 185 | |
| 186 | ############################################################################### |
| 187 | # Startup Configuration (100 bytes maximum) |
| 188 | # |
| 189 | # For the 0xC2 parameter, set byte[0] to 60 to disable UICC Idle Timeout. |
| 190 | # set to 61 to enable (The least significant bit of this byte enables |
| 191 | # the power off when Idle mode). |
| 192 | # 20 A1 07 00 == > These 4 bytes form a 4 byte value which decides the idle timeout(in us) |
| 193 | # value to trigger the uicc deactivation. |
| 194 | # NFC forum conformance |
| 195 | #NFA_DM_START_UP_CFG={27:B2:04:E8:03:00:00:CF:02:02:08:CB:01:01:A5:01:01:CA:0A:00:00:00:00:06:F0:55:00:00:0F:80:01:01:B5:03:01:03:09:5B:01:02} |
| 196 | # GCF combined + clfCfgTagPicc |
| 197 | #NFA_DM_START_UP_CFG={48:CB:01:09:A5:01:01:CA:14:00:00:00:00:06:0C:D4:01:00:15:C0:E1:E4:00:C0:C6:2D:00:14:00:B5:03:01:03:FF:C2:08:61:00:82:04:80:C3:C9:01:80:01:01:C9:03:03:0F:AB:5B:01:02:B2:04:E8:03:00:00:CF:02:02:08:B1:06:00:20:00:00:00:12} |
| 198 | |
| 199 | ############################################################################### |
| 200 | # Startup Vendor Specific Configuration (100 bytes maximum); |
| 201 | # byte[0] TLV total len = 0x5 |
| 202 | # byte[1] NCI_MTS_CMD|NCI_GID_PROP = 0x2f |
| 203 | # byte[2] NCI_MSG_FRAME_LOG = 0x9 |
| 204 | # byte[3] 2 |
| 205 | # byte[4] 0=turn off RF frame logging; 1=turn on |
| 206 | # byte[5] 0=turn off SWP frame logging; 1=turn on |
| 207 | # NFA_DM_START_UP_VSC_CFG={05:2F:09:02:01:01} |
| 208 | |
| 209 | #HW FSM |
| 210 | #NFA_DM_START_UP_VSC_CFG={04:2F:06:01:00} |
| 211 | |
| 212 | ############################################################################### |
| 213 | # Antenna Configuration - This data is used when setting 0xC8 config item |
| 214 | # at startup (before discovery is started). If not used, no value is sent. |
| 215 | # |
| 216 | # The settings for this value are documented here: |
| 217 | # http://wcgbu.broadcom.com/wpan/PM/Project%20Document%20Library/bcm20791B0/ |
| 218 | # Design/Doc/PHY%20register%20settings/BCM20791-B2-1027-02_PHY_Recommended_Reg_Settings.xlsx |
| 219 | # This document is maintained by Paul Forshaw. |
| 220 | # |
| 221 | # The values marked as ?? should be tweaked per antenna or customer/app: |
| 222 | # {20:C8:1E:06:??:00:??:??:??:00:??:24:00:1C:00:75:00:77:00:76:00:1C:00:03:00:0A:00:??:01:00:00:40:04} |
| 223 | # array[0] = 0x20 is length of the payload from array[1] to the end |
| 224 | # array[1] = 0xC8 is PREINIT_DSP_CFG |
| 225 | PREINIT_DSP_CFG={20:C8:1E:06:1F:00:0A:03:30:00:04:24:00:1C:00:75:00:77:00:76:00:1C:00:03:00:0A:00:4E:01:00:00:40:04} |
| 226 | |
| 227 | ############################################################################### |
| 228 | # Configure crystal frequency when internal LPO can't detect the frequency. |
| 229 | #XTAL_FREQUENCY=0 |
| 230 | |
| 231 | ############################################################################### |
| 232 | # Use Nexus S NXP RC work to allow our stack/firmware to work with a retail |
| 233 | # Nexus S that causes IOP issues. Note, this will not pass conformance and |
| 234 | # should be removed for production. |
| 235 | #USE_NXP_P2P_RC_WORKAROUND=1 |
| 236 | |
| 237 | ############################################################################### |
| 238 | # Configure the default Destination Gate used by HCI (the default is 4, which |
| 239 | # is the ETSI loopback gate. |
| 240 | #NFA_HCI_DEFAULT_DEST_GATE=0x04 |
| 241 | |
| 242 | ############################################################################### |
| 243 | # Configure the single default SE to use. The default is to use the first |
| 244 | # SE that is detected by the stack. This value might be used when the phone |
| 245 | # supports multiple SE (e.g. 0xF3 and 0xF4) but you want to force it to use |
| 246 | # one of them (e.g. 0xF4). |
| 247 | ACTIVE_SE=0xF3 |
| 248 | |
| 249 | ############################################################################### |
| 250 | # Configure the NFC Extras to open and use a static pipe. If the value is |
| 251 | # not set or set to 0, then the default is use a dynamic pipe based on a |
| 252 | # destination gate (see NFA_HCI_DEFAULT_DEST_GATE). Note there is a value |
| 253 | # for each UICC (where F3="UICC0" and F4="UICC1") |
| 254 | NFA_HCI_STATIC_PIPE_ID_F3=0x71 |
| 255 | NFA_HCI_STATIC_PIPE_ID_F4=0x71 |
| 256 | |
| 257 | ############################################################################### |
| 258 | # This setting allows you to disable registering the T4t Virtual SE that causes |
| 259 | # the NFCC to send PPSE requests to the DH. |
| 260 | # The default setting is enabled (i.e. T4t Virtual SE is registered). |
| 261 | #REGISTER_VIRTUAL_SE=1 |
| 262 | |
| 263 | ############################################################################### |
| 264 | # When screen is turned off, specify the desired power state of the controller. |
| 265 | # 0: power-off-sleep state; DEFAULT |
| 266 | # 1: full-power state |
| 267 | # 2: screen-off card-emulation (CE4/CE3/CE1 modes are used) |
| 268 | # 3: FPM CE in snooze mode, Switch Off, Battery Off still available. |
| 269 | SCREEN_OFF_POWER_STATE=3 |
| 270 | |
| 271 | ############################################################################### |
| 272 | # SPD Debug mode |
| 273 | # If set to 1, any failure of downloading a patch will trigger a hard-stop |
| 274 | #SPD_DEBUG=0 |
| 275 | |
| 276 | ############################################################################### |
| 277 | # SPD Max Retry Count |
| 278 | # The number of attempts to download a patch before giving up (defualt is 3). |
| 279 | # Note, this resets after a power-cycle. |
| 280 | #SPD_MAX_RETRY_COUNT=3 |
| 281 | |
| 282 | ############################################################################### |
| 283 | # Patch RAM Version Checking |
| 284 | # By default the stack will reject any attempt to download a patch where major |
| 285 | # version is < the one that is in NVM. If this config item is set to 1 then |
| 286 | # this version check is skipped. |
| 287 | # |
| 288 | #SPD_IGNORE_VERSION=0 |
| 289 | |
| 290 | ############################################################################### |
| 291 | # I2C transport driver try to read multiple packets in read() if data is available |
| 292 | # remove the comment below to enable this feature |
| 293 | #READ_MULTIPLE_PACKETS=1 |
| 294 | |
| 295 | ############################################################################### |
| 296 | # SPI transport driver options |
| 297 | #SPI_NEGOTIATION={0A:F0:00:01:00:00:00:FF:FF:00:00} |
| 298 | |
| 299 | ############################################################################### |
| 300 | # UART transport driver options |
| 301 | # |
| 302 | # PORT=1,2,3,... |
| 303 | # BAUD=115200, 19200, 9600, 4800, |
| 304 | # DATABITS=8, 7, 6, 5 |
| 305 | # PARITY="even" | "odd" | "none" |
| 306 | # STOPBITS="0" | "1" | "1.5" | "2" |
| 307 | |
| 308 | #UART_PORT=2 |
| 309 | #UART_BAUD=115200 |
| 310 | #UART_DATABITS=8 |
| 311 | #UART_PARITY="none" |
| 312 | #UART_STOPBITS="1" |
| 313 | |
| 314 | ############################################################################### |
| 315 | # AID for Empty Select command |
| 316 | # If specified, this AID will be substituted when an Empty SELECT command is |
| 317 | # detected. The first byte is the length of the AID. Maximum length is 16. |
| 318 | AID_FOR_EMPTY_SELECT={08:A0:00:00:01:51:00:00:00} |
| 319 | |
| 320 | NCI_HAL_MODULE="nfc_nci" |