make sleep mode work

This commit is contained in:
souldbminersmwc committed 2026-08-24 21:42:25 -04:00
1 parent bd468f087d
commit a3b8400477
7 files changed
+609 -13

No files matched your search

+1 -3
View File
@@ -3,7 +3,5 @@
extern "C" void main() {
UartPuts("[bpmpfw]: Hello from BPMP-FW\n");
for (;;) {
FlowCtlrHaltUsec(200);
}
for (;;);
}
+1 -1
View File
@@ -13,7 +13,7 @@ constexpr u32 FlowCtlrHaltCopEvents = 0x004;
constexpr u32 HaltModeWaitEvent = (2u << 29);
constexpr u32 HaltUsec = (0u << 24);
inline void FlowCtlrHaltUsec(u32 usec) {
[[maybe_unused]] inline void FlowCtlrHaltUsec(u32 usec) {
MMIO32(FlowCtlrBase + FlowCtlrHaltCopEvents) = HaltModeWaitEvent | HaltUsec | (usec & 0xFFFFFFu);
}