All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Revert "riscv: cpu: fu740: clear feature disable CSR"
@ 2021-05-10  9:08 Bin Meng
  2021-05-12  6:39 ` Leo Liang
  2021-05-12 13:01 ` Bin Meng
  0 siblings, 2 replies; 20+ messages in thread
From: Bin Meng @ 2021-05-10  9:08 UTC (permalink / raw)
  To: u-boot

This reverts commit bc8bbb77f74f21582b3bfd790334397757f88575.

This commit breaks U-Boot booting on SiFive Unleashed board, as
there is no such CSR on U54 core.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
---

 arch/riscv/cpu/fu540/spl.c | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/arch/riscv/cpu/fu540/spl.c b/arch/riscv/cpu/fu540/spl.c
index 1740ef98b6..45657b7909 100644
--- a/arch/riscv/cpu/fu540/spl.c
+++ b/arch/riscv/cpu/fu540/spl.c
@@ -6,9 +6,6 @@
 
 #include <dm.h>
 #include <log.h>
-#include <asm/csr.h>
-
-#define CSR_U74_FEATURE_DISABLE	0x7c1
 
 int spl_soc_init(void)
 {
@@ -24,15 +21,3 @@ int spl_soc_init(void)
 
 	return 0;
 }
-
-void harts_early_init(void)
-{
-	/*
-	 * Feature Disable CSR
-	 *
-	 * Clear feature disable CSR to '0' to turn on all features for
-	 * each core. This operation must be in M-mode.
-	 */
-	if (CONFIG_IS_ENABLED(RISCV_MMODE))
-		csr_write(CSR_U74_FEATURE_DISABLE, 0);
-}
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2021-05-19 12:18 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-10  9:08 [PATCH] Revert "riscv: cpu: fu740: clear feature disable CSR" Bin Meng
2021-05-12  6:39 ` Leo Liang
2021-05-12 13:01 ` Bin Meng
2021-05-12 15:13   ` Green Wan
2021-05-12 15:28     ` Bin Meng
2021-05-14  3:45       ` Green Wan
2021-05-14  3:50         ` Bin Meng
     [not found]           ` <752D002CFF5D0F4FA35C0100F1D73F3FE5EA22D2@ATCPCS12.andestech.com>
2021-05-14  5:31             ` Rick Chen
2021-05-18  7:38         ` Leo Liang
2021-05-18  7:45           ` Bin Meng
2021-05-18  9:43             ` Green Wan
2021-05-18  9:56               ` Bin Meng
2021-05-18 11:59                 ` Leo Liang
2021-05-18 13:12                   ` Green Wan
2021-05-18 14:35                     ` Green Wan
2021-05-19  7:52                       ` Green Wan
2021-05-19  8:57                         ` Leo Liang
2021-05-19 11:09                           ` Green Wan
2021-05-19 12:18                         ` Bin Meng
2021-05-18  8:10           ` Green Wan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.