summaryrefslogtreecommitdiff
path: root/arch/arm/mach-socfpga/misc.c
diff options
context:
space:
mode:
authorLey Foon Tan <ley.foon.tan@intel.com>2019-11-27 15:55:22 +0800
committerMarek Vasut <marex@denx.de>2020-01-07 14:38:33 +0100
commitc168fc71a32861a52a710015ee4a71e8cabe86d5 (patch)
tree46507332d49356cdf84fb52d81b21a72250b1abb /arch/arm/mach-socfpga/misc.c
parent20322cea64e471c777627622e9ccb1096b5db167 (diff)
clk: agilex: Add clock driver for Agilex
Add clock manager driver for Agilex. Provides clock initialization and get_rate functions. agilex-clock.h is from Linux commit ID cd2e1ad12247. Signed-off-by: Chee Hong Ang <chee.hong.ang@intel.com> Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com> Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Diffstat (limited to 'arch/arm/mach-socfpga/misc.c')
-rw-r--r--arch/arm/mach-socfpga/misc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-socfpga/misc.c b/arch/arm/mach-socfpga/misc.c
index b86ff962a8..db71105af3 100644
--- a/arch/arm/mach-socfpga/misc.c
+++ b/arch/arm/mach-socfpga/misc.c
@@ -245,7 +245,12 @@ void socfpga_get_managers_addr(void)
if (ret)
hang();
+#ifdef CONFIG_TARGET_SOCFPGA_AGILEX
+ ret = socfpga_get_base_addr("intel,agilex-clkmgr",
+ &socfpga_clkmgr_base);
+#else
ret = socfpga_get_base_addr("altr,clk-mgr", &socfpga_clkmgr_base);
+#endif
if (ret)
hang();
}