aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-meson
diff options
context:
space:
mode:
authorIgor Prusov <ivprusov@salutedevices.com>2023-09-25 18:52:09 +0300
committerNeil Armstrong <neil.armstrong@linaro.org>2023-10-12 13:39:41 +0200
commit1fcf190e7001f0723dce7d36713e3530066a02f7 (patch)
tree9e1d44980f0f948ac9e7fd8cfb345b818e17ce75 /arch/arm/include/asm/arch-meson
parent935d410c29601ca2502132a8235f4cec7e2932c9 (diff)
downloadu-boot-1fcf190e7001f0723dce7d36713e3530066a02f7.zip
u-boot-1fcf190e7001f0723dce7d36713e3530066a02f7.tar.gz
u-boot-1fcf190e7001f0723dce7d36713e3530066a02f7.tar.bz2
clk: Add clock driver for Amlogic A1
This patch adds basic clock driver for Amlogic A1 Family which supports enabling/disabling some gates, getting frequencies and setting rate with limited reparenting. Signed-off-by: Igor Prusov <ivprusov@salutedevices.com> Reviewed-by: Simon Glass <sjg@chromium.org> Link: https://lore.kernel.org/r/20230925155209.130671-3-ivprusov@salutedevices.com Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Diffstat (limited to 'arch/arm/include/asm/arch-meson')
-rw-r--r--arch/arm/include/asm/arch-meson/clock-a1.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-meson/clock-a1.h b/arch/arm/include/asm/arch-meson/clock-a1.h
new file mode 100644
index 0000000..f6795f5
--- /dev/null
+++ b/arch/arm/include/asm/arch-meson/clock-a1.h
@@ -0,0 +1,23 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright 2018 - AmLogic, Inc.
+ * Copyright 2023 (C) SberDevices, Inc.
+ */
+
+#ifndef _ARCH_MESON_CLOCK_A1_H_
+#define _ARCH_MESON_CLOCK_A1_H_
+
+/*
+ * Clock controller register offsets
+ */
+#define A1_SYS_OSCIN_CTRL 0x0
+#define A1_SYS_CLK_CTRL0 0x10
+#define A1_SYS_CLK_EN0 0x1c
+#define A1_SAR_ADC_CLK_CTR 0xc0
+#define A1_SPIFC_CLK_CTRL 0xd8
+#define A1_USB_BUSCLK_CTRL 0xdc
+#define A1_SD_EMMC_CLK_CTRL 0xe0
+
+#define A1_ANACTRL_FIXPLL_CTRL0 0x0
+
+#endif /* _ARCH_MESON_CLOCK_A1_H_ */