summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorShashank Mittal <mittals@codeaurora.org>2016-06-02 13:03:39 -0700
committerKyle Yan <kyan@codeaurora.org>2016-06-21 15:16:10 -0700
commit330e959a9d8d1cea46e5e4b34c49639d699cd635 (patch)
tree470054e0162326adb10099c24973ec62be6d5896 /include
parentce3d488fbe7c07b63edf1f67d26a9d43d584eaba (diff)
coresight: add support to read cti data
Add support to read cti data from OF nodes. Devices can use this data to configure CTIs as part of their configurations. Change-Id: I55b0534ab4d81b9ce02378b513e6ae9bc3b6cd1e Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/coresight.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/coresight.h b/include/linux/coresight.h
index 82e185645cf3..903a8e852f5d 100644
--- a/include/linux/coresight.h
+++ b/include/linux/coresight.h
@@ -253,9 +253,13 @@ static inline int coresight_timeout(void __iomem *addr, u32 offset,
#if defined(CONFIG_OF) && defined(CONFIG_CORESIGHT)
extern struct coresight_platform_data *of_get_coresight_platform_data(
struct device *dev, struct device_node *node);
+extern struct coresight_cti_data *of_get_coresight_cti_data(
+ struct device *dev, struct device_node *node);
#else
static inline struct coresight_platform_data *of_get_coresight_platform_data(
struct device *dev, struct device_node *node) { return NULL; }
+static inline struct coresight_cti_data *of_get_coresight_cti_data(
+ struct device *dev, struct device_node *node) { return NULL; }
#endif
#ifdef CONFIG_PID_NS