summaryrefslogtreecommitdiff
path: root/drivers/clk/meson/clkc-audio.h
diff options
context:
space:
mode:
authorJerome Brunet <jbrunet@baylibre.com>2018-05-22 18:34:54 +0200
committerJerome Brunet <jbrunet@baylibre.com>2018-07-09 13:47:22 +0200
commite8dd9207763e0317ac256c78dcd50dca7826f2f6 (patch)
treec4bf922250513c13ed6ffd510c83a44e3e9c39b1 /drivers/clk/meson/clkc-audio.h
parent47f21315a6e4454ed9d8a450288a0989113e1e44 (diff)
clk: meson: add triple phase clock driver
Add a driver to control the output of the sample clock generator found in the axg audio clock controller. The goal of this driver is to coherently control the phase provided to the different element using the sample clock generator. This simplify the usage of the sample clock generator a lot, without comprising the ability of the SoC. Acked-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Diffstat (limited to 'drivers/clk/meson/clkc-audio.h')
-rw-r--r--drivers/clk/meson/clkc-audio.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/clk/meson/clkc-audio.h b/drivers/clk/meson/clkc-audio.h
new file mode 100644
index 000000000000..286ff1201258
--- /dev/null
+++ b/drivers/clk/meson/clkc-audio.h
@@ -0,0 +1,20 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Copyright (c) 2018 BayLibre, SAS.
+ * Author: Jerome Brunet <jbrunet@baylibre.com>
+ */
+
+#ifndef __MESON_CLKC_AUDIO_H
+#define __MESON_CLKC_AUDIO_H
+
+#include "clkc.h"
+
+struct meson_clk_triphase_data {
+ struct parm ph0;
+ struct parm ph1;
+ struct parm ph2;
+};
+
+extern const struct clk_ops meson_clk_triphase_ops;
+
+#endif /* __MESON_CLKC_AUDIO_H */