diff options
author | Bhuvan Varshney <bvarshne@codeaurora.org> | 2018-10-03 12:05:46 +0530 |
---|---|---|
committer | Bhuvan Varshney <bvarshne@codeaurora.org> | 2018-10-03 12:05:46 +0530 |
commit | 959d77f31f37daaa4272c7a6fe35ba5d57fde5a5 (patch) | |
tree | eb104619c0a3d399411e46bc9bbcc4a8205b2de8 /halimpl/utils/phNxpConfig.cpp | |
parent | 3931357b6214974d060c746165e6b1fc6afb5128 (diff) |
NFC: Add dynamic config support for SDM712
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
Diffstat (limited to 'halimpl/utils/phNxpConfig.cpp')
-rw-r--r-- | halimpl/utils/phNxpConfig.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/halimpl/utils/phNxpConfig.cpp b/halimpl/utils/phNxpConfig.cpp index 2677c04..354bbcf 100644 --- a/halimpl/utils/phNxpConfig.cpp +++ b/halimpl/utils/phNxpConfig.cpp @@ -135,6 +135,7 @@ typedef enum TARGET_SDM660 = 317, /**< SDM660 target */ TARGET_SDM670 = 336, /**< SDM670 target */ TARGET_SDM710 = 360, /**< SDM710 target */ + TARGET_SDM712 = 393, /**< SDM712 target */ TARGET_SDM630 = 318, /**< SDM630 target */ TARGET_SDM632 = 349, /**< SDM632 target */ TARGET_SDM439 = 353, /**< SDM439 target */ @@ -414,6 +415,7 @@ int CNfcConfig::getconfiguration_id (char * config_file) case TARGET_SDM845: case TARGET_SDM670: case TARGET_SDM710: + case TARGET_SDM712: if (!strncmp(nq_fw_ver, FW_MAJOR_NUM_NQ4xx, FW_MAJOR_NUM_LENGTH)) { config_id = QRD_TYPE_NQ4XX; strlcpy(config_file, config_name_qrd_NQ4XX, MAX_DATA_CONFIG_PATH_LEN); @@ -472,6 +474,7 @@ int CNfcConfig::getconfiguration_id (char * config_file) case TARGET_SDM845: case TARGET_SDM670: case TARGET_SDM710: + case TARGET_SDM712: if (!strncmp(nq_fw_ver, FW_MAJOR_NUM_NQ4xx, FW_MAJOR_NUM_LENGTH)) { config_id = MTP_TYPE_NQ4XX; strlcpy(config_file, config_name_mtp_NQ4XX, MAX_DATA_CONFIG_PATH_LEN); |