summaryrefslogtreecommitdiff
path: root/halimpl/utils/phNxpConfig.cpp
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-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.
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-01Fixed coverity warningsnxf48293
Warnings Fixed: CHECKED_RETURN
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-28Fixed coverity warningsvishal
Warnings Fixed: UNINIT_CTOR, NULL_RETURN, NEGATIVE_RETURN, CHECK_RETURN
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-28Support for dynamic selection for config filenxf50051
Config files are selected based on system property -persist.nfc.config_file_name
2018-12-25Fix build error for a new SPLalit Kansara
Add explicit fallthrough in switch statement Change-Id: I59faff822d6289616650dbc359c4c558df59a797
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-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-14Compilation FixesLove
2018-06-14Alignment with AOSP folder structure. Removed pn54x folderLove