summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorZhiqiang Tu <ztu@codeaurora.org>2017-11-07 10:23:37 +0800
committerZhiqiang Tu <ztu@codeaurora.org>2017-12-08 15:14:17 +0800
commit292371d2c1bffb8582e114cbd2e039b3c359b2a1 (patch)
tree568ee396913df490cd4aacb660d221a87e789e9b /include/linux
parent7099c46a662042dc275bcaaa90750d11a2d89ac3 (diff)
clk: msm: Add virtual clock frontend driver
It is virtual clock frontend driver which communicates with host backend clock service/driver over HABMM. It only supports msm8996 virtual platform currently. Change-Id: Icfee28c301fa4a583b45e5d364432535643eb9b7 Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/clk/msm-clock-generic.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/linux/clk/msm-clock-generic.h b/include/linux/clk/msm-clock-generic.h
index d7186a363a3f..fe019d366d0b 100644
--- a/include/linux/clk/msm-clock-generic.h
+++ b/include/linux/clk/msm-clock-generic.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2013-2017, The Linux Foundation. All rights reserved.
*
* 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
@@ -307,4 +307,16 @@ static inline struct mux_div_clk *to_mux_div_clk(struct clk *clk)
extern struct clk_ops clk_ops_mux_div_clk;
+/* ==================== Virtual clock ==================== */
+struct virtclk_front {
+ int id;
+ struct clk c;
+};
+
+extern struct clk_ops virtclk_front_ops;
+
+int msm_virtclk_front_probe(struct platform_device *pdev,
+ struct clk_lookup *table,
+ size_t size);
+
#endif