diff options
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r-- | apps/debug_menu.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index aba3964369..c8f7cf14f0 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -1648,6 +1648,28 @@ static bool view_battery(void) | |||
1648 | #elif defined(IPOD_NANO2G) | 1648 | #elif defined(IPOD_NANO2G) |
1649 | y = pmu_read_battery_current(); | 1649 | y = pmu_read_battery_current(); |
1650 | lcd_putsf(0, 2, "Battery current: %d mA", y); | 1650 | lcd_putsf(0, 2, "Battery current: %d mA", y); |
1651 | lcd_putsf(0, 3, "PWRCON: %8x", PWRCON); | ||
1652 | lcd_putsf(0, 4, "PWRCONEXT: %8x", PWRCONEXT); | ||
1653 | x = pmu_read(0x1b) & 0xf; | ||
1654 | y = pmu_read(0x1a) * 25 + 625; | ||
1655 | lcd_putsf(0, 5, "AUTO: %x / %d mV", x, y); | ||
1656 | x = pmu_read(0x1f) & 0xf; | ||
1657 | y = pmu_read(0x1e) * 25 + 625; | ||
1658 | lcd_putsf(0, 6, "DOWN1: %x / %d mV", x, y); | ||
1659 | x = pmu_read(0x23) & 0xf; | ||
1660 | y = pmu_read(0x22) * 25 + 625; | ||
1661 | lcd_putsf(0, 7, "DOWN2: %x / %d mV", x, y); | ||
1662 | x = pmu_read(0x27) & 0xf; | ||
1663 | y = pmu_read(0x26) * 100 + 900; | ||
1664 | lcd_putsf(0, 8, "MEMLDO: %x / %d mV", x, y); | ||
1665 | for (i = 0; i < 6; i++) | ||
1666 | { | ||
1667 | x = pmu_read(0x2e + (i << 1)) & 0xf; | ||
1668 | y = pmu_read(0x2d + (i << 1)) * 100 + 900; | ||
1669 | lcd_putsf(0, 9 + i, "LDO%d: %x / %d mV", i + 1, x, y); | ||
1670 | } | ||
1671 | lcd_putsf(0, 15, "CLKCON: %8x", CLKCON); | ||
1672 | lcd_putsf(17, 15, "PLL0: %6x", PLL0PMS); | ||
1651 | #else | 1673 | #else |
1652 | lcd_putsf(0, 3, "Charger: %s", | 1674 | lcd_putsf(0, 3, "Charger: %s", |
1653 | charger_inserted() ? "present" : "absent"); | 1675 | charger_inserted() ? "present" : "absent"); |