summaryrefslogtreecommitdiffstats
path: root/drivers/clk/berlin/common.h
diff options
context:
space:
mode:
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>2014-05-19 18:43:27 +0200
committerMike Turquette <mturquette@linaro.org>2014-05-29 09:30:19 -0700
commitba0fae3b06a69aab4ff18f628f88b9f9d653d734 (patch)
tree4fb6beb74a8a523782789dbd8665e66d3a41ab45 /drivers/clk/berlin/common.h
parent6f9ba9b44724888c5419289e790077ab1621c62d (diff)
downloadlinux-ba0fae3b06a69aab4ff18f628f88b9f9d653d734.tar.gz
linux-ba0fae3b06a69aab4ff18f628f88b9f9d653d734.tar.bz2
linux-ba0fae3b06a69aab4ff18f628f88b9f9d653d734.zip
clk: berlin: add core clock driver for BG2/BG2CD
This driver deals with the core clocks found on Marvell Berlin BG2 and BG2CD. For the shared register dividers, make use of the corresponding driver and add some single clock muxes and gates for the rest. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/berlin/common.h')
-rw-r--r--drivers/clk/berlin/common.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/drivers/clk/berlin/common.h b/drivers/clk/berlin/common.h
new file mode 100644
index 000000000000..bc68a14c4550
--- /dev/null
+++ b/drivers/clk/berlin/common.h
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) 2014 Marvell Technology Group Ltd.
+ *
+ * Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
+ * Alexandre Belloni <alexandre.belloni@free-electrons.com>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms and conditions of the GNU General Public License,
+ * version 2, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+#ifndef __BERLIN2_COMMON_H
+#define __BERLIN2_COMMON_H
+
+struct berlin2_gate_data {
+ const char *name;
+ const char *parent_name;
+ u8 bit_idx;
+ unsigned long flags;
+};
+
+#endif /* BERLIN2_COMMON_H */