summaryrefslogtreecommitdiff
path: root/halimpl/utils
AgeCommit message (Collapse)Author
2020-05-21NFC: Fix compilation issuesTapas Dey
Modified code to fix build errors and enabled 2.0 HIDL service for NFC. Change-Id: Ib1b7a8e4a239dbcb8429cd105a3b66dda9e2494e
2020-05-08Merge branch ↵Tapas Dey
'caf/nxp-libnfc-nci/github-libnfc-nci/br_android_ncihalx_row_11' into nfc.vendor.lnx.2.1 * caf/nxp-libnfc-nci/github-libnfc-nci/br_android_ncihalx_row_11: (42 commits) Code cleanup on HAL 2.0 implementation HAL 2.0 implementation N*pNfcLegacy HAL implementation added following api to replace the IOCTL's and there wrapper function a) HAL_NFC_IOCTL_NCI_TRANSCEIVE -> nciTransceive(). N*pNfcLegacy HAL implementation added following api to replace the IOCTL's and there warapper functions HAL_NFC_GET_N*P_CONFIG -> getN*pConfig(). N*pNfcLegacy HAL implementation added following api to replace the IOCTL's and there warapper functions a) HAL_NFC_IOCTL_GET_CONFIG_INFO -> getCachedNfccConfig(). HciInitUpdateState null pointer access fixed. N*pNfcLegacy HAL implementation added following api to replace the IOCTL's and there warapper functions a) HAL_NFC_IOCTL_REL_SVDD_WAIT -> spiDwpSync() b) HAL_NFC_IOCTL_REL_DWP_WAIT -> RelForceDwpOnOffWait() c) HAL_NFC_GET_SPM_STATUS -> getSPMStatus() d) HAL_NFC_IOCTL_HCI_INIT_STATUS_UPDATE -> hciInitUpdateState() e) HAL_NFC_IOCTL_HCI_INIT_STATUS_UPDATE_COMPLETE -> hciInitUpdateStateComplete() {R-DP1} Move N*P MIFARE entern to HAL N*pNfcLegacy HAL implementation API added : getEseState -> Replacement of HAL_NFC_IOCTL_P61_PWR_MODE. This API is called for to get ese state getEseState() generates (uint16_t status); N*pNfcLegacy HAL implementation API added : setNfcServicePid -> Replacement of HAL_NFC_IOCTL_SET_NFC_SERVICE_PID. Introducing new app in NfcN*pHalLeagcy.and phN*pNciHal_setNfcServicePid to call Tml N*pNfcLegacy HAL implementation API added : getchipType -> Replacement of HAL_NFC_IOCTL_GET_FEATURE_LIST. getChipType is the api which will take chiptype info at init type and update to update to upper layer after invoking it. unused N*P NFC HAL IOCTL cleanup for HAL_NFC_IOCTL_SPI_DWP_SYNC. There is not caller for this ioctl. So, cleaning this ioctl. {R-DP2} Revert "Phase tirm offset sign bit update" {R-DP2} Do not enable factoryota mode by default N*pNfcLegacy HAL implementation API added : setEseState -> Replacement of HAL_NFC_IOCTL_P61_IDLE_MODE & HAL_NFC_IOCTL_P61_WIRED_MODE. {R-DP2} Update cfg files search rule {R-DP1} Remove libhwbinder/libhidltransport deps {R-DP1} Disable -Wimplicit-fallthrough unless src is fixed. IOCTL call sequence clean up for HAL_NFC_IOCTL_RF_ACTION_NTF and HAL_NFC_IOCTL_RF_STATUS_UPDATE IOCTL call sequence clean up for HAL_ESE_IOCTL_OMAPI_TRY_GET_ESE_SESSION & HAL_ESE_IOCTL_OMAPI_RELEASE_ESE_SESSION] [artf728185][PN8xt]:IOCTL call sequence clean up for HAL_NFC_IOCTL_SET_JCP_DWNLD_ENABLE & HAL_NFC_IOCTL_SET_JCP_DWNLD_DISABLE [artf728187][PN8xt]:IOCTL call sequence clean up for HAL_NFC_IOCTL_NFCEE_SESSION_RESET ... Change-Id: I1da3816ca9e0e8c676cdd82900857dc6a43f9957
2020-04-22{R-DP1} Move NXP MIFARE entern to HALYerriswamy
Bug: 142625833 Test: Mifare Classic Tag Read/Write/Format Change-Id: Ibb2fba3e801820cc2080e51dc302288b617ea0c1
2020-04-22{R-DP2} Revert "Phase tirm offset sign bit update"Yerriswamy
This reverts commit b08faff9d8aca73f0eb627d3330c840e957441f4. Reason for revert: Removing this special workaround to make mater clean. Change-Id: I4391dada3fcef6a51a318fd4b132750829d076d0
2020-04-22{R-DP2} Update cfg files search ruleYerriswamy
1. If prop_config_file_name is defined. (where prop_config_file_name is the value of the property (persist.vendor.nfc.config_file_name) Search a file matches prop_config_file_name. 2. If SKU is defined (where SKU is the value of the property ro.boot.product.hardware.sku) Search a file matches libnfc-nxp-SKU.conf 3. If none of 1,2 is defined, search the default file "libnfc-nxp.conf". Bug: 148056494 Test: load correct cfg Change-Id: Ia9a87ae9964a8c64ff07e51e42c3f6b2801e3c40
2020-04-22Treble naming convention correction for vendor persist property.nxf36763
As we have upadted persist.nfc to persist.vendor.nfc in property_contexts file. So, Updating persist.nfc to persist.vendor.nfc.
2020-04-22W-TAG support addedGanesh Deva
2020-04-22Enable autonomous mode before shutting down the device.nxf38293
2019-11-06Use DEFAULT_TECH_ABF_ROUTE to handle tech route separatelySuhas Suresh
Earlier implementation uses DEFAULT_OFFHOST_ROUTE to update Tech A,B route location and also as route location for payment apps not having route location (secureElementName attribute). Tech F is handled separately using DEFAULT_NFCF_ROUTE. New change introduces DEFAULT_TECH_ABF_ROUTE config which will be used to update Tech A,B,F and DEFAULT_NFCF_ROUTE will not be used anymore. DEFAULT_OFFHOST_ROUTE will be used only to update route location for payment apps not having route location (secureElementName attribute).
2019-09-27NFC: Remove unused codeTapas Dey
Removed unwanted files from code base as these files no longer needed. Modified makefile to avoid inclusion of HAL library which is no longer needed. Change-Id: Ib4b9205f2133d58b65174e8c9a818ee27c478d33
2019-09-05Merge branch 'caf/nxp-libnfc-nci/github-libnfc-nci/br_android_ncihalx_row_q' ↵Tapas Dey
into nfc.vendor.lnx.1.1 * caf/nxp-libnfc-nci/github-libnfc-nci/br_android_ncihalx_row_q: Added logic to Enable/Disable SCR mode from Conf file Core standby macro is removed from the config file. Enabling NXP_CORE_STANDBY mode. ][mPOS]: Redesign to make common code base By Default don't add SCBR entry in LMRT. Fix UICC SWP line enable/disable from RF conf file not working Fix for Firmware download when eSE is not present. Code Clean-Up. Update README.md Enable Block Bit routing for PN81T. Update README.md Updated readme for - NFC_AR_00_18C0_10.02.00_OpnSrc Change-Id: I8de29bdc397b475c5868e798f9a68abb4f0fbee2
2019-08-28Added logic to Enable/Disable SCR mode from Conf fileGanesh Deva
2019-08-20Enabling NXP_CORE_STANDBY mode.nxf38293
2019-08-20][mPOS]: Redesign to make common code baseGanesh Deva
During boot time, If NFCC is not in NFC Forum mode then it shall be set back to it.
2019-07-10NFC: Merge branch ↵Gaurav Singhal
'caf/nxp-libnfc-nci/github-libnfc-nci/br_android_ncihalx_row_q' into nfc.vendor.lnx.1.1 * caf/nxp-libnfc-nci/github-libnfc-nci/br_android_ncihalx_row_q: Fix RF conf applied always during NXP_SET_CONFIG_ALWAYS=0x00 NFCF_PWR_STATE macro name is added for PN553 and PN557 chip sets PWR_STATE macro name aligned according to DEFAULT_ROUTE macro Fixed coverity warnings Code Cleanup Fix HalOpen fail after Force FW Download (tear down use case) Change-Id: I5fc9b81b72f84988b14916fd963a604c9af37686
2019-07-01PWR_STATE macro name aligned according to DEFAULT_ROUTE macroGanesh Deva
1) DEFAULT_ROUTE_PWR_STATE renamed as DEFAULT_ISODEP_PWR_STATE 2) DEFAULT_FELICA_CLT_PWR_STATE renamed as DEFAULT_NFCF_PWR_STATE
2019-07-01Fixed coverity warningsnxf48293
Warnings Fixed: CHECKED_RETURN
2019-07-01Code CleanupGanesh Deva
Unused Macro NXP_DEFAULT_SE related code removed.
2019-06-28NFC: Fix compiler errorTapas Dey
Modifications done to fix compile error, remove unused code and enabled 1.2 HIDL service for NFC.. Change-Id: I88e840b1237e6e6354051b64c0fa11ec6cdc1db4
2019-06-26Merge branch 'caf/nxp-libnfc-nci/github-libnfc-nci/br_android_ncihalx_row_q' ↵Tapas Dey
into nfc.vendor.lnx.1.1 * caf/nxp-libnfc-nci/github-libnfc-nci/br_android_ncihalx_row_q: (72 commits) Update README.md Fixed coverity warnings Power State mask value aligned with NCI2.0 & Jni. Fixed coverity warnings Copyright year update Remove Dynamic Dual UICC feature in PN8xT. Fixed coverity warnings Fixed coverity warnings {Q_DP2}: Do not set property persist.factoryota.reboot {Q-DP1}: FactoryOTA: Disable factory OTA mode {Q-DP1}: Phase tirm offset sign bit update Removing WiredSE terminal name update in config file. Stand alone compilation of NFC system and vendor modules Fixed coverity warnings Fixed coverity warnings Configuration file macro name and values alignment. Update config parameters for MultiSE Fixed coverity warnings Fix UICC initialization is failing when OMAPI session is open Fixed coverity warnings ... Change-Id: I643e85abbbf9e726001d8deec0c533de92f8a24e
2019-05-28Copyright year updatenxf35421
2019-05-28{Q-DP1}: Phase tirm offset sign bit updateGanesh Deva
2019-05-28Fixed coverity warningsvishal
Warnings Fixed: UNINIT_CTOR, NULL_RETURN, NEGATIVE_RETURN, CHECK_RETURN
2019-05-28{Q_DP2}: Clean up NFC HAL error logsGanesh Deva
2019-04-25NFC HAL 1.2 service implementation.Ganesh Deva
Added getVendorConfig_1_2 for hal 1.2
2019-04-25Android Q Bringup (hardware/nxp/nfc)nxf50051
C++ 17 compatibility issues are resolved in multiple MW repo - explicit FALLTHROUGH or [[fallthrough]] key added for fallthrough scenarios - removed register storage class as it is not supported
2019-03-28Coverity warnings clean upnxf38293
2019-03-28Fix for MW rercovery didn't invoked during CORE_RESET_NTFGanesh Deva
2019-03-28Support for dynamic selection for config filenxf50051
Config files are selected based on system property -persist.nfc.config_file_name
2019-03-28JCOP OSU on DWP interface optimized for NCI 1.0.Suhas Suresh
SEM_POST converted to timed wait. adopted nfa_hci_handle_admin_gate_rsp for NCI 1.0.
2018-12-25Fix build error for a new SPLalit Kansara
Add explicit fallthrough in switch statement Change-Id: I59faff822d6289616650dbc359c4c558df59a797
2018-11-26NFC: Merge branch ↵Bhuvan Varshney
'caf/nxp-libnfc-nci/github-libnfc-nci/br_android_ncihalx_row_p' into nfc.lnx.4.0 * caf/nxp-libnfc-nci/github-libnfc-nci/br_android_ncihalx_row_p: Update README.md Fix for Failed to open SPI channel for PN81T Updated signal notifier with dwp link activation/deactivation status Force FW download if Core reset fails Compliance to Mifare classic certification - MW changes Compliance to Mifare classic certification - MW changes TC_ 7.3.8.11 - Unexpected Data Rate Max Fix for power Link management during dual mode Fix for Technology F route is not coming in routing table. Folder path modification for system and vendor access and related code update. Change-Id: Ie06c2b3dbffa20932283724567400966a749e5cd
2018-10-26Compliance to Mifare classic certification - MW changesSachin Dhivare
Added config NXP_MF_CLT_JCOP_CFG in the libnfc-nxp-PN80T_example.conf & libnfc-nxp-PN81T_example.confto send this set config from MW during core initialize for JCOP version 4.1 only.
2018-10-17NFC: Add dynamic config support for QCS605Bhuvan Varshney
Dynamic configuration support is added in HAL layer for QCS605 platform to pick Nfc configuration file at runtime based on HW platform. Change-Id: I1d4fcd46ff92c2d05894ddc07e5ffea811f89939
2018-10-04NFC: Add dynamic config support for SDM455Gaurav Singhal
Dynamic configuration support is added in HAL layer for SDM455 platform to pick Nfc configuration file at runtime based on HW platform. Change-Id: I18b6400ca7d01a84eed9b2eb198fd0bddfdcaa12
2018-10-03NFC: Add dynamic config support for SDM712Bhuvan Varshney
Dynamic configuration support is added in HAL layer for SDM712 platform to pick Nfc configuration file at runtime based on hw platform. Change-Id: I5f803af3df386e9e629ac6a84683579d2dd0d38e
2018-09-12Folder path modification for system and vendor access and related code update.Suhas Suresh
2018-08-29NFC: Merge branch ↵Gaurav Singhal
'caf/nxp-libnfc-nci/github-libnfc-nci/br_android_ncihalx_row_p' into nfc.lnx.4.0 * caf/nxp-libnfc-nci/github-libnfc-nci/br_android_ncihalx_row_p: NFC_NCIHALx_AR1800.9.2.0_OpnSrc Screen state description is updated as per NCI 2.0 in NCI2.0 config files Fix for nfc hal cr*sh during semdaemon execution Added macro in conf file to configure DWP Terminal name. Fix for cr*sh observed during SPI Open, transceive and close when NFC is OFF Fix VEN GPIO is not low, during SPI close, while NFC is off Fix for NFC init failed when nfastorage.bin removed. Update README.md Change-Id: Ied7cc90a4ba54e3a4a7a049e6d33d3401a5e4b9b
2018-08-22Added macro in conf file to configure DWP Terminal name.Ganesh Deva
DWP Terminal name can be configured in libnfc-nxp.conf file using NXP_WIREDSE_TERMINAL_NAME
2018-08-07NFC: Fix compile issuesSumatheendra Raghavendrachar
Modified Android.bp to build copy of hal, retained Qcom authored chipid based changes, added latest enums in halnxp_nfc header file and fixes done to resolve compile issue. Change-Id: I8732e0f78c8e055eafb71d192fe8d159e527b018
2018-08-07NFC: Merge branch ↵Rohit Rangwani
'caf/nxp-libnfc-nci/github-libnfc-nci/br_android_ncihalx_row_p' into nfc.lnx.4.0 * caf/nxp-libnfc-nci/github-libnfc-nci/br_android_ncihalx_row_p: (88 commits) Config file clean up P2P active mode commands are updated in the config file. Fix for Firmware download check integrity. Fix for UICC mode set off during NFC initialization. Fix for Transit use cases failure. NFC Initialization failed NFC Initialization failed Way to handle eSE and UICC both enabled SYS_CODE_ROUTE entry is moved from libnfc-nxp config file to libnfc-nci config file. Way to handleeSE and UICC both enabled Fix for NFC initialization struck in PN80T. Add debug logs Way to handle eSE and UICC both enabled Removing the duplicate SYS_CODE_ROUTE entry in PN81T config file Wrong format of manifest file Fix for Transaction Event not received for UICC Config update to enable RA and HCI End of Operation delay Enable CE-PhoneOff feature during NFC Enable Firmware version can't be retrieved in PN551 Fix FW Download read buffer corruption issue ... Change-Id: I523609e11cc770c9f9c82d76cdf765e45039b566
2018-08-07NFC: Change pn54x HAL directory structureRohit Rangwani
Third party vendor has changed directory structure to distribute code from P onwards, to be in sync with their delivery we are moving pn54x HAL directory structure. bcm2079x HAL is removed as it's not used anymore. Change-Id: I39ff4da16bb98c21d6f24e9bfa4e18322e7ff59c
2018-06-14Added support to read NXP vendor specifig configuration files macro values ↵Ganesh Deva
in system libraries Introduced new Hal function phNxpNciHal_getNxpConfig to read Vendor specific conf macros.
2018-06-14(FN_AOSP->P_ROW): Config file unused macro cleanupSuhas Suresh
2018-06-14(FN_AOSP->P_ROW):moving DEFAULT_SYS_CODE_PWR_STATE to libnfc-nxp.confSuhas Suresh
Added reference in phNxpNciHal_getVendorConfig to get the config in libnfc and jni from nfc hal
2018-06-14(FN_AOSP->P_ROW): vendorGetConfig file function modifiedSuhas Suresh
New Configuration file macro name alligned Config file updated
2018-06-14Compilation FixesLove
2018-06-14Remove NFC 1.0 implementationLove
Change-Id: Ia59e62ae3bd35d53e4e34ba043f8600410baa01c
2018-06-14Add getConfig() for NFC HAL 1.1Love
Change-Id: I669a814084c7d38e0b56b97bb9d6c46b3d7e00bc
2018-06-14Add NFC -1.1 and vendor extensions.Love
Change-Id: If40274a7fd4d495c7886f639cf8f81a8ee5e49d0