From 47b744a7ec34d7e3dbc0bfb9d4291abcb155ea44 Mon Sep 17 00:00:00 2001 From: liangkangnan Date: Tue, 4 Apr 2023 11:11:39 +0800 Subject: [PATCH] tools:bootrom: enable qspi mode Signed-off-by: liangkangnan --- tools/bootrom/bootrom.S | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/tools/bootrom/bootrom.S b/tools/bootrom/bootrom.S index 3d35a5f..e9d3f83 100644 --- a/tools/bootrom/bootrom.S +++ b/tools/bootrom/bootrom.S @@ -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