aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2021-12-03 10:13:17 -0700
committerChristian Cunningham <cc@localhost>2021-12-03 10:13:17 -0700
commit2243c481dfc335f09e270783ce9fda39a9a0da57 (patch)
treec7340f8b8067ddcb9fc268c6bf332f77990c7fa7 /src
parent2164398e58925d23a65314f3a5434e40a1459041 (diff)
Removed old UART init
Replaced by sysinit
Diffstat (limited to 'src')
-rw-r--r--src/drivers/uart.S22
-rw-r--r--src/kernel.S1
2 files changed, 0 insertions, 23 deletions
diff --git a/src/drivers/uart.S b/src/drivers/uart.S
index 0864b7e..e476799 100644
--- a/src/drivers/uart.S
+++ b/src/drivers/uart.S
@@ -1,27 +1,5 @@
.section ".text"
-.globl uart_init
-uart_init:
- //*UART0_IMSC = 1 << 4;
- // IGNORE OVERRUN
- mov r2, #0x1038
- movt r2, #0x3F20
- mov r3, #0b10000
- str r3, [r2]
- //*IRQ_ENABLE2 = 1 << 25;
- mov r2, #0xB214
- movt r2, #0x3F00
- mov r3, #0
- movt r3, #0b1000000000
- str r3, [r2]
- //*GPU_INTERRUPTS_ROUTING = 0x00;
- // Route GPU interrupts to Core0
- mov r2, #0x000C
- movt r2, #0x4000
- eor r3, r3
- str r3, [r2]
- bx lr
-
.globl uart_char
uart_char:
mov r2, #0x1000
diff --git a/src/kernel.S b/src/kernel.S
index 02d8a5d..4877c4a 100644
--- a/src/kernel.S
+++ b/src/kernel.S
@@ -3,7 +3,6 @@
.globl kernel_main
kernel_main:
push {lr}
- //bl uart_init
bl sysinit
bl enable_irq
bl enable_fiq