summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/debug_menu.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 7eb3df5edf..f9f9a29e98 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -1349,28 +1349,27 @@ static bool view_battery(void)
1349 lcd_putsf(17, 1, "RAW: %d.%03d V", y / 1000, y % 1000); 1349 lcd_putsf(17, 1, "RAW: %d.%03d V", y / 1000, y % 1000);
1350 y = pmu_read_battery_current(); 1350 y = pmu_read_battery_current();
1351 lcd_putsf(0, 2, "Battery current: %d mA", y); 1351 lcd_putsf(0, 2, "Battery current: %d mA", y);
1352 lcd_putsf(0, 3, "PWRCON: %8x", PWRCON); 1352 lcd_putsf(0, 3, "PWRCON: %08x %08x", PWRCON, PWRCONEXT);
1353 lcd_putsf(0, 4, "PWRCONEXT: %8x", PWRCONEXT); 1353 lcd_putsf(0, 4, "CLKCON: %08x %03x %03x", CLKCON, CLKCON2, CLKCON3);
1354 lcd_putsf(0, 5, "PLL: %06x %06x %06x", PLL0PMS, PLL1PMS, PLL2PMS);
1354 x = pmu_read(0x1b) & 0xf; 1355 x = pmu_read(0x1b) & 0xf;
1355 y = pmu_read(0x1a) * 25 + 625; 1356 y = pmu_read(0x1a) * 25 + 625;
1356 lcd_putsf(0, 5, "AUTO: %x / %d mV", x, y); 1357 lcd_putsf(0, 6, "AUTO: %x / %d mV", x, y);
1357 x = pmu_read(0x1f) & 0xf; 1358 x = pmu_read(0x1f) & 0xf;
1358 y = pmu_read(0x1e) * 25 + 625; 1359 y = pmu_read(0x1e) * 25 + 625;
1359 lcd_putsf(0, 6, "DOWN1: %x / %d mV", x, y); 1360 lcd_putsf(0, 7, "DOWN1: %x / %d mV", x, y);
1360 x = pmu_read(0x23) & 0xf; 1361 x = pmu_read(0x23) & 0xf;
1361 y = pmu_read(0x22) * 25 + 625; 1362 y = pmu_read(0x22) * 25 + 625;
1362 lcd_putsf(0, 7, "DOWN2: %x / %d mV", x, y); 1363 lcd_putsf(0, 8, "DOWN2: %x / %d mV", x, y);
1363 x = pmu_read(0x27) & 0xf; 1364 x = pmu_read(0x27) & 0xf;
1364 y = pmu_read(0x26) * 100 + 900; 1365 y = pmu_read(0x26) * 100 + 900;
1365 lcd_putsf(0, 8, "MEMLDO: %x / %d mV", x, y); 1366 lcd_putsf(0, 9, "MEMLDO: %x / %d mV", x, y);
1366 for (i = 0; i < 6; i++) 1367 for (i = 0; i < 6; i++)
1367 { 1368 {
1368 x = pmu_read(0x2e + (i << 1)) & 0xf; 1369 x = pmu_read(0x2e + (i << 1)) & 0xf;
1369 y = pmu_read(0x2d + (i << 1)) * 100 + 900; 1370 y = pmu_read(0x2d + (i << 1)) * 100 + 900;
1370 lcd_putsf(0, 9 + i, "LDO%d: %x / %d mV", i + 1, x, y); 1371 lcd_putsf(0, 10 + i, "LDO%d: %x / %d mV", i + 1, x, y);
1371 } 1372 }
1372 lcd_putsf(0, 15, "CLKCON: %8x", CLKCON);
1373 lcd_putsf(17, 15, "PLL0: %6x", PLL0PMS);
1374#else 1373#else
1375 lcd_putsf(0, 3, "Charger: %s", 1374 lcd_putsf(0, 3, "Charger: %s",
1376 charger_inserted() ? "present" : "absent"); 1375 charger_inserted() ? "present" : "absent");