pinmux: implement updated initial config api

This commit is contained in:
Michael Scire authored and SciresM committed 2020-11-14 03:37:51 -08:00
1 parent 68f42a14c8
commit d9350d24a9
37 files changed
+2837 -2117

No files matched your search

@@ -35,7 +35,8 @@ namespace ams::boot {
/* Helpers. */
bool IsUsbClockValid() {
uintptr_t car_regs = dd::GetIoMapping(0x60006000ul, os::MemoryPageSize);
uintptr_t car_regs = dd::QueryIoMapping(0x60006000ul, os::MemoryPageSize);
AMS_ASSERT(car_regs != 0);
const u32 pllu = reg::Read(car_regs + 0xC0);
const u32 utmip = reg::Read(car_regs + 0x480);
@@ -47,7 +48,7 @@ namespace ams::boot {
void CheckClock() {
if (!IsUsbClockValid()) {
/* Sleep for 1s, then reboot. */
svcSleepThread(1'000'000'000ul);
os::SleepThread(TimeSpan::FromSeconds(1));
RebootSystem();
}
}