aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pruss_driver.h
diff options
context:
space:
mode:
authorGrzegorz Jaszczyk <grzegorz.jaszczyk@linaro.org>2020-09-11 21:47:10 -0700
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>2020-09-11 21:47:10 -0700
commitba59c9b43c86b2c2396acac94e41d946cbaec9fe (patch)
treed0558763565d70c7a3966271566cac5f08939be0 /include/linux/pruss_driver.h
parentdt-bindings: soc: ti: Update TI PRUSS bindings regarding clock-muxes (diff)
downloadlinux-dev-ba59c9b43c86b2c2396acac94e41d946cbaec9fe.tar.xz
linux-dev-ba59c9b43c86b2c2396acac94e41d946cbaec9fe.zip
soc: ti: pruss: support CORECLK_MUX and IEPCLK_MUX
The IEPCLK_MUX is present on all SoCs whereas the CORECLK_MUX is present only on AM65x SoCs and J721E. Add support for both these CLK muxes. This allows the clock rates and clock parents for these to be controlled through DT leveraging the clk infrastructure for configuring the default parents and rates. Signed-off-by: Roger Quadros <rogerq@ti.com> Signed-off-by: Suman Anna <s-anna@ti.com> Signed-off-by: Grzegorz Jaszczyk <grzegorz.jaszczyk@linaro.org> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Diffstat (limited to 'include/linux/pruss_driver.h')
-rw-r--r--include/linux/pruss_driver.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/pruss_driver.h b/include/linux/pruss_driver.h
index 0701fe1953dd..ecfded30ed05 100644
--- a/include/linux/pruss_driver.h
+++ b/include/linux/pruss_driver.h
@@ -36,13 +36,19 @@ struct pruss_mem_region {
/**
* struct pruss - PRUSS parent structure
* @dev: pruss device pointer
+ * @cfg_base: base iomap for CFG region
* @cfg_regmap: regmap for config region
* @mem_regions: data for each of the PRUSS memory regions
+ * @core_clk_mux: clk handle for PRUSS CORE_CLK_MUX
+ * @iep_clk_mux: clk handle for PRUSS IEP_CLK_MUX
*/
struct pruss {
struct device *dev;
+ void __iomem *cfg_base;
struct regmap *cfg_regmap;
struct pruss_mem_region mem_regions[PRUSS_MEM_MAX];
+ struct clk *core_clk_mux;
+ struct clk *iep_clk_mux;
};
#endif /* _PRUSS_DRIVER_H_ */