]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
reset: socfpga: release more A10 peripherals out of reset
authorNaresh Kumar Ravulapalli <nareshkumar.ravulapalli@altera.com>
Fri, 14 Mar 2025 17:42:25 +0000 (10:42 -0700)
committerTien Fong Chee <tien.fong.chee@intel.com>
Tue, 22 Apr 2025 03:47:39 +0000 (11:47 +0800)
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@altera.com>
Signed-off-by: Naresh Kumar Ravulapalli <nareshkumar.ravulapalli@altera.com>
Reviewed-by: Tien Fong Chee <tien.fong.chee@altera.com>
drivers/reset/reset-socfpga.c

index 76d108080d9599cfb1ef4a44d69064b96b0a4ed6..e57729f0ef9560f22b002bedfb08992050835179 100644 (file)
@@ -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;