diff options
author | Tingting Meng <tingting.meng@altera.com> | 2025-02-21 21:49:41 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-02-25 10:54:01 -0600 |
commit | 04ea9147d5bdab1370ced118acf35db7ac9e281c (patch) | |
tree | b513cab2449c154da3ee1470256507cfd5ea78ea /arch/arm/mach-socfpga/misc_soc64.c | |
parent | 034ebe3302200c033078455c5774ed739cd4f2ac (diff) |
ddr: altera: Add DDR driver for Agilex5 series
Adding DDR driver support for Agilex5 series.
Signed-off-by: Tingting Meng <tingting.meng@altera.com>
Diffstat (limited to 'arch/arm/mach-socfpga/misc_soc64.c')
-rw-r--r-- | arch/arm/mach-socfpga/misc_soc64.c | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/arch/arm/mach-socfpga/misc_soc64.c b/arch/arm/mach-socfpga/misc_soc64.c index 793b8b8e390..e0b2b4237e1 100644 --- a/arch/arm/mach-socfpga/misc_soc64.c +++ b/arch/arm/mach-socfpga/misc_soc64.c @@ -6,17 +6,18 @@ */ #include <altera.h> +#include <env.h> +#include <errno.h> +#include <init.h> +#include <log.h> #include <asm/arch/board.h> #include <asm/arch/mailbox_s10.h> #include <asm/arch/misc.h> #include <asm/arch/reset_manager.h> #include <asm/arch/system_manager.h> #include <asm/io.h> +#include <asm/system.h> #include <asm/global_data.h> -#include <env.h> -#include <errno.h> -#include <init.h> -#include <log.h> #include <mach/clock_manager.h> DECLARE_GLOBAL_DATA_PTR; @@ -42,6 +43,19 @@ static Altera_desc altera_fpga[] = { }; /* + * The Agilex5 platform has enabled the bloblist feature, and the bloblist + * address and size are initialized based on the defconfig settings. + * During the SPL phase, this function is used to prevent the bloblist + * from initializing its address and size with the saved boot parameters, + * which may have been incorrectly set. + */ +void save_boot_params(unsigned long r0, unsigned long r1, unsigned long r2, + unsigned long r3) +{ + save_boot_params_ret(); +} + +/* * Print CPU information */ #if defined(CONFIG_DISPLAY_CPUINFO) |