diff options
author | Vinod Koul <vkoul@kernel.org> | 2020-09-22 15:05:58 +0530 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-10-28 22:27:04 +0530 |
commit | a6891540f1c5043c526ea8d8cbfe74dd450bb574 (patch) | |
tree | 39ce956e5f671f35bbcb58dcc879c5bc6df29465 | |
parent | 34365497aa86b8190ea3b4bb4c16b6c86caca861 (diff) |
soc: qcom: geni: move struct geni_wrapper to header
I2C geni driver needs to access struct geni_wrapper, so move it to
header.
Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r-- | drivers/soc/qcom/qcom-geni-se.c | 14 | ||||
-rw-r--r-- | include/linux/qcom-geni-se.h | 15 |
2 files changed, 15 insertions, 14 deletions
diff --git a/drivers/soc/qcom/qcom-geni-se.c b/drivers/soc/qcom/qcom-geni-se.c index 6e5013f6a7c6..a9a16a6e35dd 100644 --- a/drivers/soc/qcom/qcom-geni-se.c +++ b/drivers/soc/qcom/qcom-geni-se.c @@ -79,20 +79,6 @@ */ #define MAX_CLK_PERF_LEVEL 32 -#define NUM_AHB_CLKS 2 - -/** - * @struct geni_wrapper - Data structure to represent the QUP Wrapper Core - * @dev: Device pointer of the QUP wrapper core - * @base: Base address of this instance of QUP wrapper core - * @ahb_clks: Handle to the primary & secondary AHB clocks - */ -struct geni_wrapper { - struct device *dev; - void __iomem *base; - struct clk_bulk_data ahb_clks[NUM_AHB_CLKS]; - struct geni_icc_path to_core; -}; static const char * const icc_path_names[] = {"qup-core", "qup-config", "qup-memory"}; diff --git a/include/linux/qcom-geni-se.h b/include/linux/qcom-geni-se.h index 45530fd1f0f2..bd516f5b3d47 100644 --- a/include/linux/qcom-geni-se.h +++ b/include/linux/qcom-geni-se.h @@ -38,6 +38,21 @@ struct geni_icc_path { unsigned int avg_bw; }; +#define NUM_AHB_CLKS 2 + +/** + * @struct geni_wrapper - Data structure to represent the QUP Wrapper Core + * @dev: Device pointer of the QUP wrapper core + * @base: Base address of this instance of QUP wrapper core + * @ahb_clks: Handle to the primary & secondary AHB clocks + */ +struct geni_wrapper { + struct device *dev; + void __iomem *base; + struct clk_bulk_data ahb_clks[NUM_AHB_CLKS]; + struct geni_icc_path to_core; +}; + /** * struct geni_se - GENI Serial Engine * @base: Base Address of the Serial Engine's register block |