[PATCH] Altera SoCFpga Boot Stall Fix
    Sune Brian 
    briansune at gmail.com
       
    Sun Oct 19 14:33:35 CEST 2025
    
    
  
Brian Sune <briansune at gmail.com> 於 2025年10月19日 週日 下午5:23寫道:
> -       if (IS_ENABLED(CONFIG_TARGET_SOCFPGA_AGILEX))
> +       if (!IS_ENABLED(CONFIG_TARGET_SOCFPGA_AGILEX5)) {
> +               ret = socfpga_get_base_addr("altr,sys-mgr",
> +                                           &socfpga_sysmgr_base);
> +               if (ret)
> +                       hang();
> +       }
> +
> +       if (IS_ENABLED(CONFIG_TARGET_SOCFPGA_AGILEX) ||
> +           IS_ENABLED(CONFIG_TARGET_SOCFPGA_AGILEX7M))
>                 ret = socfpga_get_base_addr("intel,agilex-clkmgr",
>                                             &socfpga_clkmgr_base);
>         else if (IS_ENABLED(CONFIG_TARGET_SOCFPGA_N5X))
> --
> 2.25.1
>
Explain a bit more, and correct me if wrong.
Under investigation on different revision.
"Commit 3563817"
The base address of system manager can be retrieved using
DT framework through the System Manager driver.
Signed-off-by: Tien Fong Chee <tien.fong.chee at altera.com>
Signed-off-by: Boon Khai Ng <boon.khai.ng at altera.com>
However this is completely wrong on simply removing the inline from first place!
ret = socfpga_get_base_addr("altr,sys-mgr", &socfpga_sysmgr_base);
if (ret)
hang();
In consequence, simply support Agliex series and w/o consider
old series of socfpga breaks the boot and stall the HPS.
I highly suspect either NOR or SDMMC should also stall no
matter how. B.C. the sys-mgr never setup.
    
    
More information about the U-Boot
mailing list