/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
+ * Copyright (C) 2019 XiaoMi, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
#endif
};
+/**
+ * Do not need check availability of NFCC.
+ * This function will block NFCC to enter FW download mode.
+ */
+
+#ifndef CONFIG_MACH_XIAOMI_MSM8998
/* Check for availability of NQ_ NFC controller hardware */
static int nfcc_hw_check(struct i2c_client *client, struct nqx_dev *nqx_dev)
{
done:
return ret;
}
+#endif
/*
* Routine to enable clock.
}
nqx_disable_irq(nqx_dev);
+/* Do not perform nfcc_hw_check, make sure that nfcc is present */
+#ifndef CONFIG_MACH_XIAOMI_MSM8998
/*
* To be efficient we need to test whether nfcc hardware is physically
* present before attempting further hardware initialisation.
goto err_request_hw_check_failed;
}
+#endif
/* Register reboot notifier here */
r = register_reboot_notifier(&nfcc_notifier);
if (r) {