[PATCH] reset: socfpga: release more A10 peripherals out of reset

Chee, Tien Fong tien.fong.chee at altera.com
Tue Apr 8 09:10:59 CEST 2025



> -----Original Message-----
> From: Ravulapalli, Naresh Kumar <naresh.kumar.ravulapalli at altera.com>
> Sent: Saturday, March 15, 2025 1:42 AM
> To: u-boot at lists.denx.de
> Cc: Marek Vasut <marex at denx.de>; Simon Goldschmidt
> <simon.k.r.goldschmidt at gmail.com>; Chee, Tien Fong
> <tien.fong.chee at altera.com>; Tom Rini <trini at konsulko.com>; Ravulapalli,
> Naresh Kumar <naresh.kumar.ravulapalli at altera.com>
> Subject: [PATCH] reset: socfpga: release more A10 peripherals out of reset
> 
> Current implementation releases most peripherals out of reset for gen5, but
> A10 has more peripherals than gen5, hence this patch is required to release
> the rest of peripherals to support old kernels.
> 
> Signed-off-by: Tien Fong Chee <tien.fong.chee at altera.com>
> Signed-off-by: Naresh Kumar Ravulapalli
> <nareshkumar.ravulapalli at altera.com>
> ---
>  drivers/reset/reset-socfpga.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/reset/reset-socfpga.c b/drivers/reset/reset-socfpga.c
> index 76d108080d..e57729f0ef 100644
> --- a/drivers/reset/reset-socfpga.c
> +++ b/drivers/reset/reset-socfpga.c
> @@ -23,6 +23,7 @@
>  #include <linux/bitops.h>
>  #include <linux/io.h>
>  #include <linux/sizes.h>
> +#include <linux/kconfig.h>
> 
>  #define BANK_INCREMENT		4
>  #define NR_BANKS		8
> @@ -114,6 +115,8 @@ static int socfpga_reset_remove(struct udevice *dev)
>  	if (socfpga_reset_keep_enabled()) {
>  		puts("Deasserting all peripheral resets\n");
>  		writel(0, data->modrst_base + 4);
> +		if (IS_ENABLED(CONFIG_TARGET_SOCFPGA_ARRIA10))
> +			writel(0, data->modrst_base + 8);
>  	}
> 
>  	return 0;
> --
> 2.35.3

Reviewed-by: Tien Fong Chee <tien.fong.chee at altera.com>

Best regards,
Tien Fong




More information about the U-Boot mailing list