summaryrefslogtreecommitdiffstats
path: root/src/phLibNfc.c
diff options
context:
space:
mode:
authorDaniel TOMAS <dtomas.nxp@gmail.com>2011-09-01 17:09:40 +0200
committerJeff Hamilton <jham@android.com>2011-09-09 11:57:19 -0700
commitdf82c4dd7c6d5ad232b5628edf73aa9ea3f8c2c0 (patch)
tree57aafb732392542d0c04e9700c7f4b543e30c3cf /src/phLibNfc.c
parent34caeca8a5ec2aedade68a77393d0aff03f9bd72 (diff)
downloadexternal_libnfc-nxp-df82c4dd7c6d5ad232b5628edf73aa9ea3f8c2c0.zip
external_libnfc-nxp-df82c4dd7c6d5ad232b5628edf73aa9ea3f8c2c0.tar.gz
external_libnfc-nxp-df82c4dd7c6d5ad232b5628edf73aa9ea3f8c2c0.tar.bz2
Patch to add an API to load a FW image in the libnfc
This new API permit to load the PN544 FW image when a download is needed at boot time. Change-Id: I2b3406d7ae0f0211123bd680ef914e9948c81eef
Diffstat (limited to 'src/phLibNfc.c')
-rw-r--r--src/phLibNfc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/phLibNfc.c b/src/phLibNfc.c
index c08d044..e0ef435 100644
--- a/src/phLibNfc.c
+++ b/src/phLibNfc.c
@@ -45,6 +45,8 @@
*************************** Macro's ******************************************
*/
+extern int dlopen_firmware();
+
#ifndef STATIC_DISABLE
#define STATIC static
#else
@@ -106,6 +108,7 @@ NFCSTATUS phLibNfc_HW_Reset ()
{
NFCSTATUS Status = NFCSTATUS_SUCCESS;
+ Status = phDal4Nfc_Reset(1);
Status = phDal4Nfc_Reset(0);
Status = phDal4Nfc_Reset(1);
@@ -117,6 +120,13 @@ NFCSTATUS phLibNfc_Download_Mode ()
return phDal4Nfc_Download();
}
+int phLibNfc_Load_Firmware_Image ()
+{
+ int status;
+ status = dlopen_firmware();
+ return status;
+}
+
extern uint8_t nxp_nfc_isoxchg_timeout;
NFCSTATUS phLibNfc_SetIsoXchgTimeout(uint8_t timeout) {