summaryrefslogtreecommitdiffstats
path: root/drivers/clk/meson/meson8b.h
diff options
context:
space:
mode:
authorAlexander Müller <serveralex@gmail.com>2016-08-27 19:40:54 +0200
committerMichael Turquette <mturquette@baylibre.com>2016-09-02 02:43:12 +0200
commite31a1900c1ff73d669408fc3243afb5c55863139 (patch)
treeea26b4b9a18151961ee49a64f1fc449a6f0120ac /drivers/clk/meson/meson8b.h
parentgxbb: clk: Adjust MESON_GATE macro to be shared with meson8b (diff)
downloadlinux-e31a1900c1ff73d669408fc3243afb5c55863139.tar.xz
linux-e31a1900c1ff73d669408fc3243afb5c55863139.zip
meson: clk: Add support for clock gates
This patch adds support for the meson8b clock gates. Most of them are disabled by Amlogic U-Boot, but need to be enabled for ethernet, USB and many other components. Signed-off-by: Alexander Müller <serveralex@gmail.com> Signed-off-by: Michael Turquette <mturquette@baylibre.com> Link: lkml.kernel.org/r/1472319654-59048-7-git-send-email-serveralex@gmail.com
Diffstat (limited to 'drivers/clk/meson/meson8b.h')
-rw-r--r--drivers/clk/meson/meson8b.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/clk/meson/meson8b.h b/drivers/clk/meson/meson8b.h
index 86efe6a9c658..010e9582888d 100644
--- a/drivers/clk/meson/meson8b.h
+++ b/drivers/clk/meson/meson8b.h
@@ -30,6 +30,11 @@
*
* [0] http://dn.odroid.com/S805/Datasheet/S805_Datasheet%20V0.8%2020150126.pdf
*/
+#define HHI_GCLK_MPEG0 0x140 /* 0x50 offset in data sheet */
+#define HHI_GCLK_MPEG1 0x144 /* 0x51 offset in data sheet */
+#define HHI_GCLK_MPEG2 0x148 /* 0x52 offset in data sheet */
+#define HHI_GCLK_OTHER 0x150 /* 0x54 offset in data sheet */
+#define HHI_GCLK_AO 0x154 /* 0x55 offset in data sheet */
#define HHI_SYS_CPU_CLK_CNTL1 0x15c /* 0x57 offset in data sheet */
#define HHI_MPEG_CLK_CNTL 0x174 /* 0x5d offset in data sheet */
#define HHI_MPLL_CNTL 0x280 /* 0xa0 offset in data sheet */