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