aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorHan Gao <gaohan@iscas.ac.cn>2024-01-16 16:50:14 +0800
committerHan Gao/Revy/Rabenda <rabenda.cn@gmail.com>2024-01-22 15:55:16 +0800
commit0060af48c1b95ce4a4ada87d0279f62188838476 (patch)
tree1c12e7b7f4b16f4fb06171f2b5f650de5e77d90b /board
parent6935c50d5447a884d31d88e043e8876ad5c86c4d (diff)
workaround: add delay
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
Diffstat (limited to 'board')
-rw-r--r--board/thead/light-c910/spl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/thead/light-c910/spl.c b/board/thead/light-c910/spl.c
index 6b560cc5..66e3e07d 100644
--- 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)