rosalina: print sdmmc speed info in debug menu
This commit is contained in:
parent
3afecb064c
commit
4ae4d16dba
@ -86,6 +86,8 @@ void RosalinaMenu_ShowDebugInfo(void)
|
||||
u32 kextSize = (u32)kextAddrSize;
|
||||
|
||||
u32 kernelVer = osGetKernelVersion();
|
||||
FS_SdMmcSpeedInfo speedInfo;
|
||||
|
||||
do
|
||||
{
|
||||
Draw_Lock();
|
||||
@ -98,10 +100,29 @@ void RosalinaMenu_ShowDebugInfo(void)
|
||||
GET_VERSION_MAJOR(kernelVer), GET_VERSION_MINOR(kernelVer), GET_VERSION_REVISION(kernelVer)
|
||||
);
|
||||
if (mcuFwVersion != 0)
|
||||
{
|
||||
posY = Draw_DrawFormattedString(
|
||||
10, posY, COLOR_WHITE, "MCU FW version: %lu.%lu\n",
|
||||
GET_VERSION_MAJOR(mcuFwVersion), GET_VERSION_MINOR(mcuFwVersion)
|
||||
);
|
||||
}
|
||||
|
||||
if (R_SUCCEEDED(FSUSER_GetSdmcSpeedInfo(&speedInfo)))
|
||||
{
|
||||
u32 clkDiv = 1 << (1 + (speedInfo.sdClkCtrl & 0xFF));
|
||||
posY = Draw_DrawFormattedString(
|
||||
10, posY, COLOR_WHITE, "SDMC speed: HS=%d %lukHz\n",
|
||||
(int)speedInfo.highSpeedModeEnabled, SYSCLOCK_SDMMC / (1000 * clkDiv)
|
||||
);
|
||||
}
|
||||
if (R_SUCCEEDED(FSUSER_GetNandSpeedInfo(&speedInfo)))
|
||||
{
|
||||
u32 clkDiv = 1 << (1 + (speedInfo.sdClkCtrl & 0xFF));
|
||||
posY = Draw_DrawFormattedString(
|
||||
10, posY, COLOR_WHITE, "NAND speed: HS=%d %lukHz\n",
|
||||
(int)speedInfo.highSpeedModeEnabled, SYSCLOCK_SDMMC / (1000 * clkDiv)
|
||||
);
|
||||
}
|
||||
Draw_FlushFramebuffer();
|
||||
Draw_Unlock();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user