projects
/
platform
/
kernel
/
u-boot-thead.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6935c50
)
workaround: add delay
author
Han Gao
<gaohan@iscas.ac.cn>
Tue, 16 Jan 2024 08:50:14 +0000
(16:50 +0800)
committer
Han Gao/Revy/Rabenda
<rabenda.cn@gmail.com>
Mon, 22 Jan 2024 07:55:16 +0000
(15:55 +0800)
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
board/thead/light-c910/spl.c
patch
|
blob
|
history
diff --git
a/board/thead/light-c910/spl.c
b/board/thead/light-c910/spl.c
index 6b560cc544bd01c21011a356e21a6ea8419ae85a..66e3e07dccbc9ba862bd1819270b9527ee4327ea 100644
(file)
--- a/
board/thead/light-c910/spl.c
+++ b/
board/thead/light-c910/spl.c
@@
-310,6
+310,7
@@
void cpu_performance_enable(void)
csr_write(CSR_MHCR, 0x17f); // clear bit7 to disable indirect brantch prediction
csr_write(CSR_MXSTATUS, 0x638000);
csr_write(CSR_MHINT, 0x6e30c | (1<<21) | (1<<22)); // set bit21 & bit 22 to close tlb & fence broadcast
+ mdelay(50); // workaround
}
static int bl1_img_have_head(unsigned long img_src_addr)