summaryrefslogtreecommitdiffstats
path: root/drivers/clk/meson/gxbb.h
diff options
context:
space:
mode:
authorNeil Armstrong2017-05-24 11:43:45 +0200
committerJerome Brunet2017-05-29 14:34:23 +0200
commit14c735c8e3082714e3d5fa91843692a9c871cebe (patch)
tree8ffc3fb447f46d23da4cdc94a1de9c136b8cf90f /drivers/clk/meson/gxbb.h
parentclk: gxbb: remove CLK_IGNORE_UNUSED from clk81 (diff)
downloadkernel-qcow2-linux-14c735c8e3082714e3d5fa91843692a9c871cebe.tar.gz
kernel-qcow2-linux-14c735c8e3082714e3d5fa91843692a9c871cebe.tar.xz
kernel-qcow2-linux-14c735c8e3082714e3d5fa91843692a9c871cebe.zip
clk: meson-gxbb: Add EE 32K Clock for CEC
On Amlogic GX SoCs, there is two CEC controllers : - An Amlogic CEC custom in the AO domain - The Synopsys HDMI-TX Controller in the EE domain Each of these controllers needs a 32.768KHz clock, but there is two paths : - In the EE domain, the "32k_clk" this patchs is adding - In the AO domain, with a more complex dual divider more precise setup The AO 32K clock support will be pushed later in the corresponding gxbb-aoclk driver when the AE CEC driver is ready. The EE 32k_clk must be pushed earlier since mainline support for CEC in the Synopsys HDMI-TX controller is nearby. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> [Rebased patch on top of last changes] Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Diffstat (limited to 'drivers/clk/meson/gxbb.h')
-rw-r--r--drivers/clk/meson/gxbb.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/clk/meson/gxbb.h b/drivers/clk/meson/gxbb.h
index 70f029a518c0..d63e77e8433d 100644
--- a/drivers/clk/meson/gxbb.h
+++ b/drivers/clk/meson/gxbb.h
@@ -284,8 +284,11 @@
#define CLKID_CTS_MCLK_I958_SEL 111
#define CLKID_CTS_MCLK_I958_DIV 112
/* CLKID_CTS_I958 */
+#define CLKID_32K_CLK 114
+#define CLKID_32K_CLK_SEL 115
+#define CLKID_32K_CLK_DIV 116
-#define NR_CLKS 114
+#define NR_CLKS 117
/* include the CLKIDs that have been made part of the stable DT binding */
#include <dt-bindings/clock/gxbb-clkc.h>