Commit c552debb authored by Green Wan's avatar Green Wan Committed by Leo Yu-Chi Liang
Browse files

riscv: cpu: fu740: clear feature disable CSR

Clear feature disable CSR to turn on all features of hart. The detail
is specified at section, 'SiFive Feature Disable CSR', in user manual

Signed-off-by: default avatarGreen Wan <>
Reviewed-by: Sean Anderson's avatarSean Anderson <>
Reviewed-by: Bin Meng's avatarBin Meng <>
Reviewed-by: Rick Chen's avatarRick Chen <>
parent 70415e1e
......@@ -6,6 +6,9 @@
#include <dm.h>
#include <log.h>
#include <asm/csr.h>
#define CSR_U74_FEATURE_DISABLE 0x7c1
int spl_soc_init(void)
......@@ -21,3 +24,15 @@ 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.
csr_write(CSR_U74_FEATURE_DISABLE, 0);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment