feat: Raspberry Pi 4/400 Bluetooth over mini UART (H4, Broadcom patchram, firmware mailbox BT_ON); move BT stack to Drivers/Bluetooth
This commit is contained in:
1 parent
808e1d66fd
commit
ffee9002a6
38 files changed
+2176
-141
No files matched your search
@@ -64,6 +64,7 @@ namespace Drivers::Serial {
|
||||
static volatile uint8_t* g_mmio = nullptr;
|
||||
static uint16_t g_port = 0;
|
||||
static uint32_t g_stride = 1;
|
||||
static uint64_t g_consoleAddress = 0;
|
||||
|
||||
static inline uint32_t Read32(uint64_t offset) {
|
||||
return *(volatile uint32_t*)(g_mmio + offset);
|
||||
@@ -173,9 +174,14 @@ namespace Drivers::Serial {
|
||||
return;
|
||||
}
|
||||
|
||||
g_consoleAddress = reg.Address;
|
||||
AttachSerialConsole(sink);
|
||||
KernelLogStream(OK, "Serial") << "Console on " << name << " at " << (isIo ? "port " : "")
|
||||
<< "0x" << base::hex << reg.Address;
|
||||
}
|
||||
|
||||
uint64_t ConsoleAddress() {
|
||||
return g_consoleAddress;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user