From 8b14494a155c638da7cff692fea4132c7338fdd8 Mon Sep 17 00:00:00 2001 From: bunnie Date: Fri, 18 Oct 2024 04:15:47 +0800 Subject: [PATCH] fix some bugs in gpio twiddle code --- loader/src/asm.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/loader/src/asm.rs b/loader/src/asm.rs index f92630478..33fbb9023 100644 --- a/loader/src/asm.rs +++ b/loader/src/asm.rs @@ -88,9 +88,10 @@ pub extern "C" fn _start(_kernel_args: usize, loader_sig: usize) { // GPIO twiddle /* "li t0, 0x5012f000", - "sw x0, 0x8(t0)", // AFSEL + "li t1, 0x5550", + "sw t1, 0x8(t0)", // AFSEL "li t2, 0x1803", - "sw t1, 0x14c(t0)", // OESEL + "sw t2, 0x14c(t0)", // OESEL "sw x0, 0x134(t0)", // DAT "sw t2, 0x134(t0)", // DAT "sw x0, 0x134(t0)", // DAT