From e47cc75b255d5fecd2236ad8166a78f1ad8d057d Mon Sep 17 00:00:00 2001 From: sjllls <2012ji123@gmail.com> Date: Fri, 21 Aug 2020 09:02:29 +0800 Subject: [PATCH] xz2c: Move libnfc-nci configs to tama-common Change-Id: Idf686ee0cae4ef7adda8c931fe5e2dcb92f7f541 --- device.mk | 4 +- nfc/libnfc-nci.conf | 103 ------------------ nfc/libnfc-nxp_RF.conf | 239 ----------------------------------------- 3 files changed, 1 insertion(+), 345 deletions(-) delete mode 100644 nfc/libnfc-nci.conf delete mode 100644 nfc/libnfc-nxp_RF.conf diff --git a/device.mk b/device.mk index 4e2fe10..6065e16 100644 --- a/device.mk +++ b/device.mk @@ -54,9 +54,7 @@ PRODUCT_COPY_FILES += \ # NFC PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf \ - $(LOCAL_PATH)/nfc/libnfc-nxp.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nxp.conf \ - $(LOCAL_PATH)/nfc/libnfc-nxp_RF.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nxp_RF.conf + $(LOCAL_PATH)/nfc/libnfc-nxp.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nxp.conf # Thermal PRODUCT_COPY_FILES += \ diff --git a/nfc/libnfc-nci.conf b/nfc/libnfc-nci.conf deleted file mode 100644 index 5389e3e..0000000 --- a/nfc/libnfc-nci.conf +++ /dev/null @@ -1,103 +0,0 @@ -###################### Start of libnfc-common.conf ####################### - -############################################################################### -# Application options -APPL_TRACE_LEVEL=0xFF -PROTOCOL_TRACE_LEVEL=0xFFFFFFFF - -NFC_DEBUG_ENABLED=0x01 - -############################################################################### -# File used for NFA storage -NFA_STORAGE="/data/nfc" - -############################################################################### -# Force UICC to only listen to the following technology(s). -# The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h. -# Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_B | NFA_TECHNOLOGY_MASK_F -UICC_LISTEN_TECH_MASK=0x07 - -############################################################################### -# Configure the default Destination Gate used by HCI (the default is 4, which -# is the ETSI loopback gate. -NFA_HCI_DEFAULT_DEST_GATE=0xF0 - -############################################################################### -# Forcing HOST to listen for a selected protocol -# 0x00 : Disable Host Listen -# 0x01 : Enable Host to Listen (A) for ISO-DEP tech A -# 0x02 : Enable Host to Listen (B) for ISO-DEP tech B -# 0x04 : Enable Host to Listen (F) for T3T Tag Type Protocol tech F -# 0x07 : Enable Host to Listen (ABF)for ISO-DEP tech AB & T3T Tag Type Protocol tech F -HOST_LISTEN_TECH_MASK=0x07 - -############################################################################### -# Enabling/Disabling Forward functionality -# Disable 0x00 -# Enable 0x01 -NXP_FWD_FUNCTIONALITY_ENABLE=0x00 - -############################################################################### -# AID for Empty Select command -# If specified, this AID will be substituted when an Empty SELECT command is -# detected. The first byte is the length of the AID. Maximum length is 16. -AID_FOR_EMPTY_SELECT={08:A0:00:00:01:51:00:00:00} - -############################################################################### -# When screen is turned off, specify the desired power state of the controller. -# 0: power-off-sleep state; DEFAULT -# 1: full-power state -# 2: screen-off card-emulation (CE4/CE3/CE1 modes are used) -SCREEN_OFF_POWER_STATE=1 - -############################################################################### -# Default poll duration (in ms) -# The defualt is 500ms if not set (see nfc_target.h) -NFA_DM_DISC_DURATION_POLL=300 - -############################################################################### -# Force tag polling for the following technology(s). -# The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h. -# Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_B | -# NFA_TECHNOLOGY_MASK_F | NFA_TECHNOLOGY_MASK_ISO15693 | -# NFA_TECHNOLOGY_MASK_B_PRIME | NFA_TECHNOLOGY_MASK_KOVIO | -# NFA_TECHNOLOGY_MASK_A_ACTIVE | NFA_TECHNOLOGY_MASK_F_ACTIVE. -# -# Notable bits: -# NFA_TECHNOLOGY_MASK_A 0x01 /* NFC Technology A */ -# NFA_TECHNOLOGY_MASK_B 0x02 /* NFC Technology B */ -# NFA_TECHNOLOGY_MASK_F 0x04 /* NFC Technology F */ -# NFA_TECHNOLOGY_MASK_ISO15693 0x08 /* Proprietary Technology */ -# NFA_TECHNOLOGY_MASK_KOVIO 0x20 /* Proprietary Technology */ -# NFA_TECHNOLOGY_MASK_A_ACTIVE 0x40 /* NFC Technology A active mode */ -# NFA_TECHNOLOGY_MASK_F_ACTIVE 0x80 /* NFC Technology F active mode */ -POLLING_TECH_MASK=0x2F - -############################################################################### -# Force P2P to only listen for the following technology(s). -# The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h. -# Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_F | -# NFA_TECHNOLOGY_MASK_A_ACTIVE | NFA_TECHNOLOGY_MASK_F_ACTIVE -# -# Notable bits: -# NFA_TECHNOLOGY_MASK_A 0x01 /* NFC Technology A */ -# NFA_TECHNOLOGY_MASK_F 0x04 /* NFC Technology F */ -# NFA_TECHNOLOGY_MASK_A_ACTIVE 0x40 /* NFC Technology A active mode */ -# NFA_TECHNOLOGY_MASK_F_ACTIVE 0x80 /* NFC Technology F active mode */ -P2P_LISTEN_TECH_MASK=0x05 - -PRESERVE_STORAGE=0x01 - -############################################################################### -# Deactivate notification wait time out in seconds used in ETSI Reader mode -# 0 - Infinite wait -NFA_DM_DISC_NTF_TIMEOUT=0 - -############################################################################### -# AID_MATCHING constants -# AID_MATCHING_EXACT_ONLY 0x00 -# AID_MATCHING_EXACT_OR_PREFIX 0x01 -# AID_MATCHING_PREFIX_ONLY 0x02 -AID_MATCHING_MODE=0x01 - -############################################################################### diff --git a/nfc/libnfc-nxp_RF.conf b/nfc/libnfc-nxp_RF.conf deleted file mode 100644 index f7d6215..0000000 --- a/nfc/libnfc-nxp_RF.conf +++ /dev/null @@ -1,239 +0,0 @@ -############################################################################### -# NXP RF configuration ALM/PLM settings -# This section needs to be updated with the correct values based on the platform -NXP_RF_CONF_BLK_1={ - 20, 02, FB, 1E, - A0, 0D, 06, 02, 35, 00, 3E, 00, 00, - A0, 0D, 06, 04, 35, F5, 05, 80, 01, - A0, 0D, 06, C2, 34, F7, 7F, 10, 08, - A0, 0D, 06, C2, 33, 03, 40, 04, 80, - A0, 0D, 06, 06, 44, 04, 04, C4, 00, - A0, 0D, 06, 06, 30, 70, 00, 18, 00, - A0, 0D, 06, 06, 2F, EF, AD, 80, 01, - A0, 0D, 06, 06, 85, 25, 13, 00, 00, - A0, 0D, 03, 32, 0D, 26, - A0, 0D, 03, 32, 14, 26, - A0, 0D, 06, 34, 2D, DC, 20, 04, 00, - A0, 0D, 06, 34, 44, 66, 0A, 00, 00, - A0, 0D, 06, 3C, 2D, 05, 35, 1E, 01, - A0, 0D, 06, 3C, 44, 65, 09, 00, 00, - A0, 0D, 03, 3E, 0D, 08, - A0, 0D, 03, 3E, 14, 08, - A0, 0D, 06, 40, 2D, 05, 45, 1E, 01, - A0, 0D, 06, 40, 44, 65, 09, 00, 00, - A0, 0D, 06, 42, 4A, 11, 07, 01, 1B, - A0, 0D, 03, 42, 0D, 04, - A0, 0D, 03, 42, 14, 04, - A0, 0D, 06, 44, 2D, 05, 25, 0F, 01, - A0, 0D, 06, 44, 44, 55, 0A, 00, 00, - A0, 0D, 06, 48, 44, 65, 0A, 00, 00, - A0, 0D, 06, 48, 2D, 15, 34, 1F, 01, - A0, 0D, 06, 46, 4A, 34, 07, 00, 07, - A0, 0D, 04, 46, 42, 70, 40, - A0, 0D, 06, 4C, 44, 65, 09, 00, 00, - A0, 0D, 06, 4C, 2D, 05, 35, 1E, 01, - A0, 0D, 06, 4A, 4A, 43, 07, 01, 07 -} - -############################################################################### -# NXP RF configuration ALM/PLM settings -# This section needs to be updated with the correct values based on the platform -NXP_RF_CONF_BLK_2={ - 20, 02, FA, 1D, - A0, 0D, 04, 4A, 42, 70, 40, - A0, 0D, 06, 50, 44, 65, 09, 00, 00, - A0, 0D, 06, 50, 2D, 05, 35, 1E, 01, - A0, 0D, 06, 4E, 4A, 32, 07, 01, 07, - A0, 0D, 04, 4E, 42, 70, 40, - A0, 0D, 06, 54, 44, 65, 0A, 00, 00, - A0, 0D, 06, 54, 2D, 05, 25, 0F, 01, - A0, 0D, 04, 52, 42, 70, 40, - A0, 0D, 06, 52, 4A, 11, 07, 01, 07, - A0, 0D, 06, 58, 44, 55, 08, 00, 00, - A0, 0D, 06, 5E, 2D, 0D, 5A, 0C, 01, - A0, 0D, 06, 5E, 44, 55, 08, 00, 00, - A0, 0D, 04, 56, 42, 78, 40, - A0, 0D, 04, 5C, 42, 78, 40, - A0, 0D, 06, 5C, 4A, 11, 07, 01, 07, - A0, 0D, 06, 30, 44, 05, 04, C4, 00, - A0, 0D, 06, 30, 85, 25, 03, 00, 00, - A0, 0D, 06, 70, 44, 04, 04, C4, 00, - A0, 0D, 06, 70, 85, 25, 13, 00, 00, - A0, 0D, 06, 78, 44, 02, 04, C4, 00, - A0, 0D, 06, 78, 85, 25, 03, 00, 00, - A0, 0D, 04, 78, 2E, 60, 69, - A0, 0D, 06, 7C, 2F, 51, 0E, 10, C1, - A0, 0D, 06, 80, 2F, E3, AD, 80, 04, - A0, 0D, 06, 80, 30, 70, 00, 18, 00, - A0, 0D, 06, 80, 44, 04, 04, C4, 00, - A0, 0D, 06, 80, 85, 25, 13, 00, 00, - A0, 0D, 06, 8C, 2F, 6F, 5C, 80, 04, - A0, 0D, 06, 8C, 30, 70, 00, 18, 00 -} - -############################################################################### -# NXP RF configuration ALM/PLM settings -# This section needs to be updated with the correct values based on the platform -NXP_RF_CONF_BLK_3={ - 20, 02, 5F, 0B, - A0, 0D, 06, 0A, 34, F7, 7F, 10, 08, - A0, 0D, 06, 0A, 33, 03, 40, 04, 80, - A0, 0D, 06, C6, 42, 78, 40, FF, FF, - A0, 0D, 06, C8, 42, 88, 40, FF, FF, - A0, 0D, 04, CA, 42, 70, 40, - A0, 0D, 06, CA, 44, 65, 0A, 00, 00, - A0, 0D, 06, CA, 2D, 15, 34, 1F, 01, - A0, 0D, 06, 06, 42, 00, 03, FF, FF, - A0, 0D, 03, 24, 03, 7F, - A0, 0D, 06, 04, 42, F8, 40, FF, FF, - A0, 0D, 06, 06, 37, 28, 76, 00, 00 -} - -############################################################################### -# NXP RF configuration ALM/PLM settings -# This section needs to be updated with the correct values based on the platform -NXP_RF_CONF_BLK_4={ - 20, 02, D6, 01, A0, 34, D2, 23, 04, 18, 45, 40, - 00, 00, 00, 02, - AD, 41, 33, 02, - CE, 02, 29, 02, - B0, 04, 29, 02, - D9, 07, 08, 02, - 3E, 04, 38, 02, - 06, 07, 38, 02, - 00, 00, 08, 02, 00, 00, 08, 02, - 00, 00, 08, 02, 00, 00, 08, 02, - 00, 00, 08, 02, 00, 00, 08, 02, - 00, 00, 48, 01, 00, 00, 08, 03, - 00, 00, 08, 01, 00, 00, C8, 02, - 00, 00, C8, 00, 00, 00, 88, 02, - 00, 00, 48, 02, 00, 00, B8, 00, - 00, 00, 68, 00, 00, 00, 18, 00, - 00, 00, 08, 02, 00, 00, 00, 00, - 00, 00, 00, 00, - 45, - 00, 00, 00, 02, - AD, 41, 33, 02, - CE, 02, 2B, 02, - B0, 04, 2B, 02, - D9, 07, 09, 02, - 3E, 04, 38, 02, - 06, 07, 38, 02, - 00, 00, 08, 02, 00, 00, 08, 02, - 00, 00, 08, 02, 00, 00, 08, 02, - 00, 00, 08, 02, 00, 00, 08, 02, - 00, 00, 48, 01, 00, 00, 08, 03, - 00, 00, 08, 01, 00, 00, C8, 02, - 00, 00, C8, 00, 00, 00, 88, 02, - 00, 00, 48, 02, 00, 00, B8, 00, - 00, 00, 68, 00, 00, 00, 18, 00, - 00, 00, 08, 02, 00, 00, 00, 00 -} - -############################################################################### -# NXP RF configuration ALM/PLM settings -# This section needs to be updated with the correct values based on the platform -NXP_RF_CONF_BLK_5={ - 20, 02, 5B, 01, A0, 0B, 57, 03, 03, 90, 78, 0F, - 4E, 00, 3D, 95, - 00, 00, 3D, 95, - 00, 00, 50, 95, - 00, 00, 59, 95, - 00, 00, 5A, 1F, - 00, 00, 64, 1F, - 00, 00, 65, 1F, - 00, 00, 6E, 1F, - 00, 00, 72, 1F, - 00, 00, 79, 1F, - 00, 00, 7B, 1F, - 00, 00, 84, 1F, - 00, 00, 86, 1F, - 00, 00, 8F, 1F, - 00, 00, 91, 1F, - 00, 00, 9A, 1F, - 00, 00, A1, 1F, - 00, 00, A7, 1F, - 00, 00, B0, 1F, - 00, 00, B9, 1F, - 00, 00 -} - -############################################################################### -# NXP RF configuration ALM/PLM settings -# This section needs to be updated with the correct values based on the platform -#NXP_RF_CONF_BLK_6={ -#} - -############################################################################### -# Core configuration extensions -# It includes -# Wired mode settings A0ED, A0EE -# Tag Detector A040, A041, A043 -# Low Power mode A007 -# Clock settings A002, A003 -# PbF settings A008 -# Clock timeout settings A004 -# eSE (SVDD) PWR REQ settings A0F2 -# How eSE connected to PN553 A012 -# UICC bit rate A0D1 -# SWP1A interface A0D4 -# DWP intf behavior config, SVDD Load activated by default if set to 0x31 - A037 -# For Symmetric baud rate UICC's set A086 to 77 -NXP_CORE_CONF_EXTN={20, 02, 6F, 0F, - A0, EC, 01, 01, - A0, ED, 01, 00, - A0, 5E, 01, 01, - A0, 12, 01, 02, - A0, 40, 01, 01, - A0, 41, 01, 04, - A0, 43, 01, 00, - A0, DD, 01, 2D, - A0, D1, 01, 02, - A0, D4, 01, 00, - A0, 37, 01, 11, - A0, 07, 01, 03, - A0, B1, 02, E0, 15, - A0, A9, 32, - 00, 00, 00, 00, 00, - 00, 00, 00, 00, 00, - 00, 00, 00, 00, 00, - 00, 00, 00, 00, 00, - 00, 00, 00, 00, 00, - 00, 00, 00, 00, 00, - 00, 00, 00, 00, 00, - 00, 00, 00, 00, 00, - 00, 00, 00, 00, 00, - 00, 00, 00, 00, 00, - A0, 86, 01, 77 - } -# A0, F2, 01, 01, -# A0, 40, 01, 01, -# A0, 41, 01, 02, -# A0, 43, 01, 04, -# A0, 02, 01, 01, -# A0, 03, 01, 11, -# A0, 07, 01, 03, -# A0, 08, 01, 01 -# } - -############################################################################### -# Core configuration settings -NXP_CORE_CONF={ 20, 02, 39, 0F, - 28, 01, 00, - 21, 01, 00, - 30, 01, 08, - 31, 01, 03, - 32, 01, 60, - 38, 01, 01, - 33, 04, 01, 02, 03, 04, - 54, 01, 06, - 50, 01, 02, - 5B, 01, 00, - 80, 01, 01, - 81, 01, 01, - 82, 01, 0E, - 18, 01, 01, - A0, 3A, 08, 64, 00, 64, 00, 64, 00, 64, 00 - } -############################################################################### -