Martijn Coenen | a44149b | 2012-07-18 15:24:00 -0700 | [diff] [blame] | 1 | ###################### Start of libnfc-brcm-common.conf ####################### |
| 2 | |
| 3 | ############################################################################### |
| 4 | # Application options |
| 5 | APPL_TRACE_LEVEL=0x00 |
| 6 | PROTOCOL_TRACE_LEVEL=0x00000000 |
| 7 | |
| 8 | ############################################################################### |
Martijn Coenen | a44149b | 2012-07-18 15:24:00 -0700 | [diff] [blame] | 9 | # performance measurement |
| 10 | # Change this setting to control how often USERIAL log the performance (throughput) |
| 11 | # data on read/write/poll |
| 12 | # defailt is to log performance dara for every 100 read or write |
| 13 | #REPORT_PERFORMANCE_MEASURE=100 |
| 14 | |
| 15 | ############################################################################### |
| 16 | # Broadcom NFC Extras API |
| 17 | # Uncomment to disable Broadcom NFC Extras API. NfcService must be modified |
| 18 | # to recognize this API. This API is available with JNI version 401 or higher. |
| 19 | # The default is enabled. |
| 20 | #ENABLE_BRCM_EXTRAS_API=0 |
| 21 | |
| 22 | ############################################################################### |
| 23 | # File used for NFA storage |
Martijn Coenen | 779f93b | 2012-07-30 13:18:09 -0700 | [diff] [blame] | 24 | NFA_STORAGE="/data/nfc" |
Martijn Coenen | a44149b | 2012-07-18 15:24:00 -0700 | [diff] [blame] | 25 | |
| 26 | ############################################################################### |
Martijn Coenen | 8164256 | 2012-09-03 16:56:57 +0200 | [diff] [blame] | 27 | # Snooze Mode Settings |
Martijn Coenen | a44149b | 2012-07-18 15:24:00 -0700 | [diff] [blame] | 28 | # |
Martijn Coenen | 8164256 | 2012-09-03 16:56:57 +0200 | [diff] [blame] | 29 | # By default snooze mode is enabled. Set SNOOZE_MODE_CFG byte[0] to 0 |
| 30 | # to disable. |
Martijn Coenen | a44149b | 2012-07-18 15:24:00 -0700 | [diff] [blame] | 31 | # |
Martijn Coenen | 8164256 | 2012-09-03 16:56:57 +0200 | [diff] [blame] | 32 | # If SNOOZE_MODE_CFG is not provided, the default settings are used: |
| 33 | # They are as follows: |
| 34 | # 8 Sleep Mode (0=Disabled 1=UART 8=SPI/I2C) |
| 35 | # 0 Idle Threshold Host |
| 36 | # 0 Idle Threshold HC |
Martijn Coenen | a44149b | 2012-07-18 15:24:00 -0700 | [diff] [blame] | 37 | # 0 NFC Wake active mode (0=ActiveLow 1=ActiveHigh) |
| 38 | # 1 Host Wake active mode (0=ActiveLow 1=ActiveHigh) |
| 39 | # |
Martijn Coenen | 8164256 | 2012-09-03 16:56:57 +0200 | [diff] [blame] | 40 | #SNOOZE_MODE_CFG={08:00:00:00:01} |
| 41 | |
| 42 | ############################################################################### |
| 43 | # Low Power Mode Settings |
| 44 | # |
| 45 | # If NFA_DM_LP_CFG is not provided, stack default settings are |
| 46 | # used (see nfa_dm_brcm_cfg.c). They are as follows: |
| 47 | # 1 Power cycle to full power mode from CEx |
| 48 | # 5 Parameter for low power mode command |
| 49 | # 0 Primary Threshold for battery monitor |
| 50 | # 0-7 representing below voltages: |
| 51 | # {2, 2.2, 2.7, 2.8, 2.9, 3, 3.1, 3.2} |
| 52 | # 8 Secondary Threshold for battery monitor |
| 53 | # 0-15 representing below voltages: |
| 54 | # {5.2, 4.87, 4.54, 4.22, 3.9, 3.73, 3.57, 3.4, |
| 55 | # 3.2, 3.1, 3.0, 2.9, 2.8, 2.7, 2.2, 2.0} |
| 56 | # |
| 57 | #NFA_DM_LP_CFG={01:05:00:08} |
Martijn Coenen | a44149b | 2012-07-18 15:24:00 -0700 | [diff] [blame] | 58 | |
| 59 | ############################################################################### |
| 60 | # Insert a delay in milliseconds after NFC_WAKE and before write to NFCC |
| 61 | NFC_WAKE_DELAY=20 |
Martijn Coenen | 8164256 | 2012-09-03 16:56:57 +0200 | [diff] [blame] | 62 | ############################################################################### |
| 63 | # Various Delay settings (in ms) used in USERIAL |
| 64 | # POWER_ON_DELAY |
| 65 | # Delay after turning on chip, before writing to transport (default 300) |
| 66 | # PRE_POWER_OFF_DELAY |
| 67 | # Delay after deasserting NFC-Wake before turn off chip (default 100) |
| 68 | # POST_POWER_OFF_DELAY |
| 69 | # Delay after turning off chip, before USERIAL_close returns (default 0) |
| 70 | # |
| 71 | #POWER_ON_DELAY=300 |
| 72 | #PRE_POWER_OFF_DELAY=100 |
| 73 | #POST_POWER_OFF_DELAY=0 |
Martijn Coenen | a44149b | 2012-07-18 15:24:00 -0700 | [diff] [blame] | 74 | |
| 75 | ############################################################################### |
| 76 | # Device Manager Config |
| 77 | # |
| 78 | # If NFA_DM_CFG is not provided, stack default settings are |
| 79 | # used (see nfa_dm_cfg.c). They are as follows: |
| 80 | # 500ms (0x1F4) Total duration when busy polling |
| 81 | # 1000ms (0x3E8) Total duration when background polling |
| 82 | # 0 (FALSE) Automatic NDEF detection when background polling |
| 83 | # 0 (FALSE) Automatic NDEF read when background polling |
| 84 | # |
Martijn Coenen | 8164256 | 2012-09-03 16:56:57 +0200 | [diff] [blame] | 85 | #NFA_DM_CFG={00:00} |
Martijn Coenen | a44149b | 2012-07-18 15:24:00 -0700 | [diff] [blame] | 86 | |
| 87 | ############################################################################### |
| 88 | # LPTD mode configuration (effective NFCA 403.10.0.34) |
| 89 | # byte[0] is the length of the parameters |
| 90 | # if set to 0, LPTD params will NOT be sent to NFCC (i.e. disabled). |
| 91 | # byte[1] indicates if LPTD is enabled |
| 92 | # if set to 0, LPTD will be disabled. |
| 93 | # byte[2-n] are the LPTD parameters. |
| 94 | # By default, LPTD is enabled and default settings are used. |
| 95 | # See nfa_dm_brcm_cfg.c for defaults |
Martijn Coenen | fe5b542 | 2012-08-08 16:16:53 -0700 | [diff] [blame] | 96 | LPTD_CFG={21:00:02:FF:FF:80:40:00:40:00:80:00:00:10:00:00:00:71:0D:2C:00:00:00:00:00:00:00:00:00:00:00:00:00:00} |
Martijn Coenen | a44149b | 2012-07-18 15:24:00 -0700 | [diff] [blame] | 97 | |
| 98 | ############################################################################### |
| 99 | # Startup Configuration (100 bytes maximum) |
| 100 | # |
| 101 | # For the 0xCA parameter, byte[9] (marked by 'AA') is for UICC0, and byte[10] (marked by BB) is |
| 102 | # for UICC1. The values are defined as: |
| 103 | # 0 : UICCx only supports ISO_DEP in low power mode. |
| 104 | # 2 : UICCx only supports Mifare in low power mode. |
| 105 | # 3 : UICCx supports both ISO_DEP and Mifare in low power mode. |
| 106 | # |
| 107 | # AA BB |
Martijn Coenen | 8164256 | 2012-09-03 16:56:57 +0200 | [diff] [blame] | 108 | NFA_DM_START_UP_CFG={1C:CB:01:01:A5:01:01:CA:14:00:00:00:00:06:E8:03:00:00:00:00:00:00:00:00:00:00:00:00:00} |
Martijn Coenen | a44149b | 2012-07-18 15:24:00 -0700 | [diff] [blame] | 109 | |
| 110 | ############################################################################### |
| 111 | # Startup Vendor Specific Configuration (100 bytes maximum) |
| 112 | # byte[0] is the length of the parameters |
| 113 | # byte[1] Start of first TLV |
| 114 | # byte[2] Length of first TLV |
| 115 | # |
| 116 | #NFA_DM_START_UP_VSC_CFG={03:17:01:01} # configure ARM JTAG |
| 117 | #NFA_DM_START_UP_VSC_CFG={04:09:02:01:01} # debug logging (byte[3]:RF Frames, byte[4]:SWP Frames) |
| 118 | |
| 119 | ############################################################################### |
| 120 | # DTA Start Configuration (30 bytes maximum) |
| 121 | # |
| 122 | # The first byte is the length of the TLV's. |
| 123 | #DTA_START_CFG={05:C9:03:40:00:00} |
| 124 | |
| 125 | ############################################################################### |
| 126 | # Antenna Configuration - This data is used when setting 0xC8 config item |
| 127 | # at startup (before discovery is started). If not used, no value is sent. |
| 128 | # |
| 129 | # The settings for this value are documented here: |
| 130 | # http://wcgbu.broadcom.com/wpan/PM/Project%20Document%20Library/bcm20791B0/ |
| 131 | # Design/Doc/PHY%20register%20settings/BCM20791-B2-1027-02_PHY_Recommended_Reg_Settings.xlsx |
| 132 | # This document is maintained by Paul Forshaw. |
| 133 | # |
| 134 | # The values marked as ?? should be tweaked per antenna or customer/app: |
| 135 | # {06:??:00:??:??:??:00:??:24:00:1C:00:75:00:77:00:76:00:1C:00:03:00:0A:00:??:01:00:00:40:04} |
| 136 | # |
| 137 | #PREINIT_DSP_CFG={06:1F:00:0F:03:3C:00:04:24:00:1C:00:75:00:77:00:76:00:1C:00:03:00:0A:00:48:01:00:00:40:04} |
| 138 | |
| 139 | ############################################################################### |
| 140 | # Configure Xtal Index (for when internal LPO can't |
| 141 | # detect xtal frequency) |
| 142 | #NFA_CONFIG_XTAL_INDEX=0x4 |
| 143 | |
| 144 | ############################################################################### |
| 145 | # Use Nexus S NXP RC work to allow our stack/firmware to work with a retail |
| 146 | # Nexus S that causes IOP issues. Note, this will not pass conformance and |
| 147 | # should be removed for production. |
| 148 | USE_NXP_P2P_RC_WORKAROUND=1 |
| 149 | |
| 150 | ############################################################################### |
| 151 | # Configure the default Destination Gate used by HCI (the default is 4, which |
| 152 | # is the ETSI loopback gate. |
| 153 | #NFA_HCI_DEFAULT_DEST_GATE=0x04 |
| 154 | |
| 155 | ############################################################################### |
| 156 | # Configure the single default SE to use. The default is to use the first |
| 157 | # SE that is detected by the stack. This value might be used when the phone |
| 158 | # supports multiple SE (e.g. 0xF3 and 0xF4) but you want to force it to use |
| 159 | # one of them (e.g. 0xF4). |
| 160 | #ACTIVE_SE=0xF3 |
| 161 | |
| 162 | ############################################################################### |
| 163 | # Configure the NFC Extras to open and use a static pipe. If the value is |
| 164 | # not set or set to 0, then the default is use a dynamic pipe based on a |
| 165 | # destination gate (see NFA_HCI_DEFAULT_DEST_GATE). Note there is a value |
| 166 | # for each UICC (where F3="UICC0" and F4="UICC1") |
| 167 | #NFA_HCI_STATIC_PIPE_ID_F3=0x70 |
| 168 | NFA_HCI_STATIC_PIPE_ID_F4=0x71 |
| 169 | |
| 170 | ############################################################################### |
| 171 | # Force UICC to only listen to the following technology(s). |
| 172 | # The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h. |
| 173 | # Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_B. |
| 174 | #UICC_LISTEN_TECH_MASK=0x03 |
| 175 | |
| 176 | ############################################################################### |
| 177 | # Allow UICC to be powered off if there is no traffic. |
| 178 | # Timeout is in ms. If set to 0, then UICC will not be powered off. |
| 179 | #UICC_IDLE_TIMEOUT=30000 |
| 180 | |
| 181 | ############################################################################### |
| 182 | # Force tag polling for the following technology(s). |
| 183 | # The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h. |
| 184 | # Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_B | |
| 185 | # NFA_TECHNOLOGY_MASK_F | NFA_TECHNOLOGY_MASK_ISO15693 | |
| 186 | # NFA_TECHNOLOGY_MASK_B_PRIME | NFA_TECHNOLOGY_MASK_A_ACTIVE | |
| 187 | # NFA_TECHNOLOGY_MASK_F_ACTIVE. |
| 188 | # |
| 189 | # Notable bits: |
| 190 | # NFA_TECHNOLOGY_MASK_KOVIO 0x20 |
| 191 | # NFA_TECHNOLOGY_MASK_A_ACTIVE 0x40 |
| 192 | # NFA_TECHNOLOGY_MASK_F_ACTIVE 0x80 |
Martijn Coenen | 8c916e6 | 2012-08-20 18:25:51 -0700 | [diff] [blame] | 193 | POLLING_TECH_MASK=0xDF |
Martijn Coenen | a44149b | 2012-07-18 15:24:00 -0700 | [diff] [blame] | 194 | |
| 195 | ############################################################################### |
| 196 | # Force P2P to only listen for the following technology(s). |
| 197 | # The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h. |
| 198 | # Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_F | |
| 199 | # NFA_TECHNOLOGY_MASK_A_ACTIVE | NFA_TECHNOLOGY_MASK_F_ACTIVE |
Martijn Coenen | 8c916e6 | 2012-08-20 18:25:51 -0700 | [diff] [blame] | 200 | P2P_LISTEN_TECH_MASK=0xC5 |
Martijn Coenen | a44149b | 2012-07-18 15:24:00 -0700 | [diff] [blame] | 201 | |
| 202 | ############################################################################### |
| 203 | # This setting allows you to disable registering the T4t Virtual SE that causes |
| 204 | # the NFCC to send PPSE requests to the DH. |
| 205 | # The default setting is enabled (i.e. T4t Virtual SE is registered). |
| 206 | #REGISTER_VIRTUAL_SE=1 |
| 207 | |
| 208 | ############################################################################### |
| 209 | # When screen is turned off, specify the desired power state of the controller. |
| 210 | # 0: power-off-sleep state; DEFAULT |
| 211 | # 1: full-power state |
Martijn Coenen | 8164256 | 2012-09-03 16:56:57 +0200 | [diff] [blame] | 212 | # 2: screen-off card-emulation (CE4/CE3/CE1 modes are used) |
Martijn Coenen | a44149b | 2012-07-18 15:24:00 -0700 | [diff] [blame] | 213 | #SCREEN_OFF_POWER_STATE=0 |
Martijn Coenen | a44149b | 2012-07-18 15:24:00 -0700 | [diff] [blame] | 214 | ####################### End of libnfc-brcm-common.conf ######################## |
| 215 | |
| 216 | ################### Start of libnfc-brcm-transport-i2c.conf ################### |
| 217 | |
| 218 | ############################################################################### |
| 219 | # Firmware patch file |
| 220 | # If the value is not set then patch download is disabled. |
Martijn Coenen | b120eea | 2012-07-30 16:10:49 -0700 | [diff] [blame] | 221 | FW_PATCH="/vendor/firmware/bcm2079x_firmware.ncd" |
Martijn Coenen | a44149b | 2012-07-18 15:24:00 -0700 | [diff] [blame] | 222 | |
| 223 | ############################################################################### |
Martijn Coenen | 8164256 | 2012-09-03 16:56:57 +0200 | [diff] [blame] | 224 | # Firmware pre-patch file (sent before the above patch file) |
| 225 | # If the value is not set then pre-patch is not used. |
Martijn Coenen | b120eea | 2012-07-30 16:10:49 -0700 | [diff] [blame] | 226 | FW_PRE_PATCH="/vendor/firmware/bcm2079x_pre_firmware.ncd" |
Martijn Coenen | a44149b | 2012-07-18 15:24:00 -0700 | [diff] [blame] | 227 | |
| 228 | ############################################################################### |
| 229 | # Firmware patch format |
| 230 | # 1 = HCD |
| 231 | # 2 = NCD (default) |
| 232 | #NFA_CONFIG_FORMAT=2 |
| 233 | |
| 234 | ############################################################################### |
| 235 | # transport driver |
| 236 | # |
| 237 | # TRANSPORT_DRIVER=<driver> |
| 238 | # |
| 239 | # where <driver> can be, for example: |
| 240 | # "/dev/ttyS" (UART) |
| 241 | # "/dev/bcmi2cnfc" (I2C) |
| 242 | # "hwtun" (HW Tunnel) |
| 243 | # "/dev/bcmspinfc" (SPI) |
| 244 | # "/dev/btusb0" (BT USB) |
| 245 | TRANSPORT_DRIVER="/dev/bcm2079x" |
| 246 | |
| 247 | ############################################################################### |
| 248 | # power control driver |
| 249 | # Specify a kernel driver that support ioctl commands to control NFC_EN and |
| 250 | # NFC_WAKE gpio signals. |
| 251 | # |
| 252 | # POWER_CONTRL_DRIVER=<driver> |
| 253 | # where <driver> can be, for example: |
| 254 | # "/dev/nfcpower" |
| 255 | # "/dev/bcmi2cnfc" (I2C) |
| 256 | # "/dev/bcmspinfc" (SPI) |
| 257 | # i2c and spi driver may be used to control NFC_EN and NFC_WAKE signal |
| 258 | POWER_CONTROL_DRIVER="/dev/bcm2079x" |
| 259 | |
| 260 | ############################################################################### |
| 261 | # I2C transport driver options |
| 262 | # |
| 263 | BCMI2CNFC_ADDRESS=0 |
| 264 | |
| 265 | ############################################################################### |
| 266 | # I2C transport driver try to read multiple packets in read() if data is available |
| 267 | # remove the comment below to enable this feature |
| 268 | #READ_MULTIPLE_PACKETS=1 |
| 269 | |
| 270 | ############################################################################### |
| 271 | # SPI transport driver options |
| 272 | |
| 273 | ############################################################################### |
| 274 | # UART transport driver options |
| 275 | # |
| 276 | # PORT=1,2,3,... |
| 277 | # BAUD=115200, 19200, 9600, 4800, |
| 278 | # DATABITS=8, 7, 6, 5 |
| 279 | # PARITY="even" | "odd" | "none" |
| 280 | # STOPBITS="0" | "1" | "1.5" | "2" |
| 281 | |
| 282 | #UART_PORT=2 |
| 283 | #UART_BAUD=115200 |
| 284 | #UART_DATABITS=8 |
| 285 | #UART_PARITY="none" |
| 286 | #UART_STOPBITS="1" |
| 287 | |
| 288 | ############################################################################### |
| 289 | # Tunnel transport driver options |
| 290 | # For use when TRANSPORT_DRIVER="hwtun" (see above) |
| 291 | |
| 292 | #TUNNEL_ADDR="10.0.2.2" |
| 293 | #TUNNEL_PORT=0x3e8 |
| 294 | |
| 295 | ############################################################################### |
| 296 | # Insert a delay in microseconds per byte after a write to NFCC. |
| 297 | # after writing a block of data to the NFCC, delay this an amopunt of time before |
| 298 | # writing next block of data. the delay is calculated as below |
| 299 | # NFC_WRITE_DELAY * (number of byte written) / 1000 milliseconds |
| 300 | # e.g. after 259 bytes is written, delay (259 * 20 / 1000) 5 ms before next write |
| 301 | NFC_WRITE_DELAY=20 |
| 302 | |
| 303 | #################### End of libnfc-brcm-transport-i2c.conf #################### |
| 304 | |
| 305 | ################### Start of libnfc-brcm-fwfsm-enabled.conf ################### |
| 306 | |
| 307 | ############################################################################### |
| 308 | # Multi-technology (default is enabled) |
| 309 | #NFA_DM_MULTI_TECH_RESP=0 |
| 310 | |
| 311 | #################### End of libnfc-brcm-fwfsm-enabled.conf #################### |
| 312 | |