mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:48:11 +00:00
Kernel: Add character device driver for the RPi "mini UART" (UART1)
While the PL011-based UART0 is currently reserved for the kernel console, UART1 is free to be exposed to the userspace as `/dev/ttyS0`. This will be used as the stdout of `run-tests-and-shutdown.sh` when testing the AArch64 kernel.
This commit is contained in:
parent
3beb488887
commit
c460b84ebe
4 changed files with 186 additions and 0 deletions
|
@ -63,6 +63,7 @@
|
|||
#elif ARCH(AARCH64)
|
||||
# include <Kernel/Arch/aarch64/RPi/Framebuffer.h>
|
||||
# include <Kernel/Arch/aarch64/RPi/Mailbox.h>
|
||||
# include <Kernel/Arch/aarch64/RPi/MiniUART.h>
|
||||
#endif
|
||||
|
||||
// Defined in the linker script
|
||||
|
@ -359,6 +360,8 @@ void init_stage2(void*)
|
|||
(void)SerialDevice::must_create(1).leak_ref();
|
||||
(void)SerialDevice::must_create(2).leak_ref();
|
||||
(void)SerialDevice::must_create(3).leak_ref();
|
||||
#elif ARCH(AARCH64)
|
||||
(void)MUST(RPi::MiniUART::create()).leak_ref();
|
||||
#endif
|
||||
|
||||
#if ARCH(X86_64)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue