On 19.02.25 07:37, Chee, Tien Fong wrote:
> 
> 
> -----Original Message-----
> From: Yuslaimi, Alif Zakuan <[email protected]> 
> Sent: Tuesday, February 18, 2025 4:35 PM
> To: [email protected]
> Cc: Marek Vasut <[email protected]>; Simon Goldschmidt 
> <[email protected]>; Tien Fong Chee 
> <[email protected]>; Alif Zakuan Yuslaimi 
> <[email protected]>; Tingting Meng <[email protected]>; 
> Boon Khai Ng <[email protected]>; Kok Kiang Hea 
> <[email protected]>; Chee, Tien Fong <[email protected]>
> Subject: [PATCH v2 01/26] arm: socfpga: agilex5: Add new driver model for 
> system manager in Agilex5
> 
> From: Tien Fong Chee <[email protected]>
> 
> Initial creation of new system manager driver.
> 
> Add supports for the SOCFPGA System Manager Register block which aggregates 
> different peripheral function into one area.
> On 64 bit ARM parts, the system manager only can be accessed during
> EL3 mode, this driver model provide user the high level access to system 
> register and abstract user from low level access.
> 
> The base address of system manager can be retrieved using DT framework 
> through the System Manager driver.
> 
> Signed-off-by: Tien Fong Chee <[email protected]>
> Signed-off-by: Boon Khai Ng <[email protected]>
> 
> ---
> 
> v1->v2
> - Implement system manager driver to move towards DT probing
> ---
>  arch/arm/mach-socfpga/Makefile                |   3 +-
>  arch/arm/mach-socfpga/altera-sysmgr.c         | 113 ++++++++++++++++
>  .../mach-socfpga/include/mach/altera-sysmgr.h |  16 +++
>  arch/arm/mach-socfpga/include/mach/misc.h     |   2 +
>  .../include/mach/system_manager_soc64.h       | 128 ++++++++++++------
>  arch/arm/mach-socfpga/misc.c                  |  18 ++-
>  board/intel/agilex5-socdk/Makefile            |   7 +
>  board/intel/agilex5-socdk/socfpga.c           |  12 ++
>  configs/socfpga_agilex5_defconfig             |   1 +
>  9 files changed, 250 insertions(+), 50 deletions(-)  create mode 100644 
> arch/arm/mach-socfpga/altera-sysmgr.c
>  create mode 100644 arch/arm/mach-socfpga/include/mach/altera-sysmgr.h
>  create mode 100644 board/intel/agilex5-socdk/Makefile
>  create mode 100644 board/intel/agilex5-socdk/socfpga.c
> 
> [...]
> 
> Reviewed-by: Tien Fong Chee <[email protected]>
> 
> Best regards,
> Tien Fong

This very likely broke all targets except for the agilex5. It definitely 
broke the cyclone5.

diff --git a/arch/arm/mach-socfpga/misc.c b/arch/arm/mach-socfpga/misc.c
index 9d464307665..e0ed1b8e954 100644
--- a/arch/arm/mach-socfpga/misc.c
+++ b/arch/arm/mach-socfpga/misc.c
@@ -248,6 +248,12 @@ void socfpga_get_managers_addr(void)
        if (ret)
                hang();
 
+#ifndef CONFIG_TARGET_SOCFPGA_AGILEX
+       ret = socfpga_get_base_addr("altr,sys-mgr", &socfpga_sysmgr_base);
+       if (ret)
+               hang();
+#endif
+
 #ifdef CONFIG_TARGET_SOCFPGA_AGILEX
        ret = socfpga_get_base_addr("intel,agilex-clkmgr",
                                    &socfpga_clkmgr_base);

Arent't you testing for older designs anymore?

Jan

-- 
Siemens AG, Foundational Technologies
Linux Expert Center

Reply via email to