]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
clk: altera: Add clock support for Agilex7 M-series
authorTingting Meng <tingting.meng@altera.com>
Mon, 4 Aug 2025 01:24:54 +0000 (18:24 -0700)
committerTien Fong Chee <tien.fong.chee@intel.com>
Fri, 8 Aug 2025 14:20:53 +0000 (22:20 +0800)
Agilex7 M-series reuse the clock driver from Agilex.

Signed-off-by: Tingting Meng <tingting.meng@altera.com>
Signed-off-by: Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>
Reviewed-by: Tien Fong Chee <tien.fong.chee@altera.com>
arch/arm/mach-socfpga/include/mach/clock_manager.h
arch/arm/mach-socfpga/misc.c
drivers/clk/altera/Makefile

index 49f3fb2e705755c710eaf07fb75eb8ed33a5e15d..f0431c081d8602660665f54f5850a1f5984ecfb8 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0+ */
 /*
- *  Copyright (C) 2013-2024 Altera Corporation <www.altera.com>
+ *  Copyright (C) 2013-2025 Altera Corporation <www.altera.com>
  */
 
 #ifndef _CLOCK_MANAGER_H_
@@ -28,7 +28,7 @@ int cm_set_qspi_controller_clk_hz(u32 clk_hz);
 #include <asm/arch/clock_manager_arria10.h>
 #elif defined(CONFIG_TARGET_SOCFPGA_STRATIX10)
 #include <asm/arch/clock_manager_s10.h>
-#elif defined(CONFIG_TARGET_SOCFPGA_AGILEX)
+#elif IS_ENABLED(CONFIG_TARGET_SOCFPGA_AGILEX) || IS_ENABLED(CONFIG_TARGET_SOCFPGA_AGILEX7M)
 #include <asm/arch/clock_manager_agilex.h>
 #elif IS_ENABLED(CONFIG_TARGET_SOCFPGA_AGILEX5)
 #include <asm/arch/clock_manager_agilex5.h>
index a68ddd9e76b837af5c113a6af94bf190a32cda1a..76747c2196a01aa5143faa6aef433b4ed4c51b7a 100644 (file)
@@ -265,6 +265,7 @@ void socfpga_get_managers_addr(void)
                ret = socfpga_get_base_addr("intel,n5x-clkmgr",
                                            &socfpga_clkmgr_base);
        else if (!IS_ENABLED(CONFIG_TARGET_SOCFPGA_AGILEX) &&
+                !IS_ENABLED(CONFIG_TARGET_SOCFPGA_AGILEX7M) &&
                 !IS_ENABLED(CONFIG_TARGET_SOCFPGA_AGILEX5))
                ret = socfpga_get_base_addr("altr,clk-mgr",
                                            &socfpga_clkmgr_base);
index 61ffa4179a0cf5f56053c914cd969b61d3703974..858f828e537c0e851561c0b09d54762376aaeb6c 100644 (file)
@@ -4,6 +4,7 @@
 #
 
 obj-$(CONFIG_TARGET_SOCFPGA_AGILEX) += clk-agilex.o
+obj-$(CONFIG_TARGET_SOCFPGA_AGILEX7M) += clk-agilex.o
 obj-$(CONFIG_TARGET_SOCFPGA_ARRIA10) += clk-arria10.o
 obj-$(CONFIG_TARGET_SOCFPGA_N5X) += clk-n5x.o
 obj-$(CONFIG_TARGET_SOCFPGA_N5X) += clk-mem-n5x.o