tools:bootrom: enable qspi mode

Signed-off-by: liangkangnan <liangkangnan@163.com>
verilator
liangkangnan 2023-04-04 11:11:39 +08:00
parent d65cdee729
commit 47b744a7ec
1 changed files with 11 additions and 4 deletions

View File

@ -1,10 +1,17 @@
.global entry
.option norvc
entry:
lui a0, 0x0200
slli a0, a0, 0x4
// jump to 0x02000000
jalr a0
// enable quad spi mode
lui a1, 0x2c00
sw zero, 0(a1)
// xip base address(0x02000000)
lui a0, 0x2000
// jump to xip base address
jalr a0
loop:
j loop