* [PATCH] reset: socfpga: release more A10 peripherals out of reset
@ 2022-09-02 1:09 Jit Loon Lim
0 siblings, 0 replies; 3+ messages in thread
From: Jit Loon Lim @ 2022-09-02 1:09 UTC (permalink / raw)
To: u-boot
Cc: Jagan Teki, Vignesh R, Marek, Simon, Tien Fong, Kok Kiang,
Siew Chin, Sin Hui, Raaj, Dinesh, Boon Khai, Alif, Teik Heng,
Hazim, Sieu Mun Tang, Jit Loon Lim
From: Tien Fong Chee <tien.fong.chee@intel.com>
Current implementation almost release all 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@intel.com>
Signed-off-by: Jit Loon Lim <jit.loon.lim@intel.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 6e3f03e248..bd30396fe5 100644
--- a/drivers/reset/reset-socfpga.c
+++ b/drivers/reset/reset-socfpga.c
@@ -115,6 +115,9 @@ 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 defined(CONFIG_TARGET_SOCFPGA_ARRIA10)
+ writel(0, data->modrst_base + 8);
+#endif
}
return 0;
--
2.26.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] reset: socfpga: release more A10 peripherals out of reset
@ 2025-03-14 17:42 Naresh Kumar Ravulapalli
2025-04-08 7:10 ` Chee, Tien Fong
0 siblings, 1 reply; 3+ messages in thread
From: Naresh Kumar Ravulapalli @ 2025-03-14 17:42 UTC (permalink / raw)
To: u-boot
Cc: Marek Vasut, Simon Goldschmidt, Tien Fong Chee, Tom Rini,
Naresh Kumar Ravulapalli
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>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH] reset: socfpga: release more A10 peripherals out of reset
2025-03-14 17:42 Naresh Kumar Ravulapalli
@ 2025-04-08 7:10 ` Chee, Tien Fong
0 siblings, 0 replies; 3+ messages in thread
From: Chee, Tien Fong @ 2025-04-08 7:10 UTC (permalink / raw)
To: Ravulapalli, Naresh Kumar, u-boot@lists.denx.de
Cc: Marek Vasut, Simon Goldschmidt, Tom Rini
> -----Original Message-----
> From: Ravulapalli, Naresh Kumar <naresh.kumar.ravulapalli@altera.com>
> Sent: Saturday, March 15, 2025 1:42 AM
> To: u-boot@lists.denx.de
> Cc: Marek Vasut <marex@denx.de>; Simon Goldschmidt
> <simon.k.r.goldschmidt@gmail.com>; Chee, Tien Fong
> <tien.fong.chee@altera.com>; Tom Rini <trini@konsulko.com>; Ravulapalli,
> Naresh Kumar <naresh.kumar.ravulapalli@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@altera.com>
> Signed-off-by: Naresh Kumar Ravulapalli
> <nareshkumar.ravulapalli@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@altera.com>
Best regards,
Tien Fong
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-04-08 7:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-02 1:09 [PATCH] reset: socfpga: release more A10 peripherals out of reset Jit Loon Lim
-- strict thread matches above, loose matches on Subject: below --
2025-03-14 17:42 Naresh Kumar Ravulapalli
2025-04-08 7:10 ` Chee, Tien Fong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox