aboutsummaryrefslogtreecommitdiff
path: root/drivers/clk/meson/gxbb-aoclk.h
diff options
context:
space:
mode:
authorYixun Lan2018-05-03 21:26:20 +0800
committerJerome Brunet2018-05-15 14:19:42 +0200
commit88e2da81241e2ca678b37a194c454888f243914b (patch)
tree9d565f0875e28d502363fb858607e7561ec8700a /drivers/clk/meson/gxbb-aoclk.h
parent51ae8a5bf4d3892e49840fcff7a1600feaa16843 (diff)
clk: meson: aoclk: refactor common code into dedicated file
We try to refactor the common code into one dedicated file, while preparing to add new Meson-AXG aoclk driver, this would help us to better share the code by all aoclk drivers. Suggested-by: Jerome Brunet <jbrunet@baylibre.com> Signed-off-by: Yixun Lan <yixun.lan@amlogic.com> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Diffstat (limited to 'drivers/clk/meson/gxbb-aoclk.h')
-rw-r--r--drivers/clk/meson/gxbb-aoclk.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/clk/meson/gxbb-aoclk.h b/drivers/clk/meson/gxbb-aoclk.h
index 0be78383f257..65962fc9ecdc 100644
--- a/drivers/clk/meson/gxbb-aoclk.h
+++ b/drivers/clk/meson/gxbb-aoclk.h
@@ -8,6 +8,8 @@
#ifndef __GXBB_AOCLKC_H
#define __GXBB_AOCLKC_H
+#define NR_CLKS 7
+
/* AO Configuration Clock registers offsets */
#define AO_RTI_PWR_CNTL_REG1 0x0c
#define AO_RTI_PWR_CNTL_REG0 0x10
@@ -28,4 +30,7 @@ struct aoclk_cec_32k {
extern const struct clk_ops meson_aoclk_cec_32k_ops;
+#include <dt-bindings/clock/gxbb-aoclkc.h>
+#include <dt-bindings/reset/gxbb-aoclkc.h>
+
#endif /* __GXBB_AOCLKC_H */