|
@@ -1,5 +1,5 @@
|
|
|
/*
|
|
|
- * Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
|
|
|
+ * Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
|
|
|
*
|
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
@@ -150,6 +150,17 @@ static inline int pld_snoc_is_fw_rejuvenate(void)
|
|
|
static inline void pld_snoc_block_shutdown(bool status)
|
|
|
{
|
|
|
}
|
|
|
+
|
|
|
+#ifdef FEATURE_WLAN_TIME_SYNC_FTM
|
|
|
+static inline int
|
|
|
+pld_snoc_get_audio_wlan_timestamp(struct device *dev,
|
|
|
+ enum pld_wlan_time_sync_trigger_type type,
|
|
|
+ uint64_t *ts)
|
|
|
+{
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+#endif /* FEATURE_WLAN_TIME_SYNC_FTM */
|
|
|
+
|
|
|
#else
|
|
|
int pld_snoc_register_driver(void);
|
|
|
void pld_snoc_unregister_driver(void);
|
|
@@ -159,6 +170,29 @@ int pld_snoc_wlan_enable(struct device *dev,
|
|
|
int pld_snoc_wlan_disable(struct device *dev, enum pld_driver_mode mode);
|
|
|
int pld_snoc_get_soc_info(struct device *dev, struct pld_soc_info *info);
|
|
|
|
|
|
+#ifdef FEATURE_WLAN_TIME_SYNC_FTM
|
|
|
+/**
|
|
|
+ * pld_snoc_get_audio_wlan_timestamp() - Get audio timestamp
|
|
|
+ * @dev: device
|
|
|
+ * @type: trigger type
|
|
|
+ * @ts: timestamp
|
|
|
+ *
|
|
|
+ * Return audio timestamp to the ts.
|
|
|
+ *
|
|
|
+ * Return: 0 for success
|
|
|
+ * Non zero failure code for errors
|
|
|
+ */
|
|
|
+static inline int
|
|
|
+pld_snoc_get_audio_wlan_timestamp(struct device *dev,
|
|
|
+ enum pld_wlan_time_sync_trigger_type type,
|
|
|
+ uint64_t *ts)
|
|
|
+{
|
|
|
+ if (!dev)
|
|
|
+ return -ENODEV;
|
|
|
+
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+#endif /* FEATURE_WLAN_TIME_SYNC_FTM */
|
|
|
static inline int pld_snoc_ce_request_irq(struct device *dev,
|
|
|
unsigned int ce_id,
|
|
|
irqreturn_t (*handler)(int, void *),
|