From 59d9361f75f61172644032540f7acb3c5066dfb8 Mon Sep 17 00:00:00 2001 From: Michael Sparmann Date: Sun, 14 Nov 2010 15:08:38 +0000 Subject: [PATCH] iPod Nano 2G: Show all PLLPMS and CLKCON values in the battery debug screen git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28586 a1c6a512-1295-4272-9138-f99709370657 --- apps/debug_menu.c | 17 ++++++++--------- 1 file 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) lcd_putsf(17, 1, "RAW: %d.%03d V", y / 1000, y % 1000); y = pmu_read_battery_current(); lcd_putsf(0, 2, "Battery current: %d mA", y); - lcd_putsf(0, 3, "PWRCON: %8x", PWRCON); - lcd_putsf(0, 4, "PWRCONEXT: %8x", PWRCONEXT); + lcd_putsf(0, 3, "PWRCON: %08x %08x", PWRCON, PWRCONEXT); + lcd_putsf(0, 4, "CLKCON: %08x %03x %03x", CLKCON, CLKCON2, CLKCON3); + lcd_putsf(0, 5, "PLL: %06x %06x %06x", PLL0PMS, PLL1PMS, PLL2PMS); x = pmu_read(0x1b) & 0xf; y = pmu_read(0x1a) * 25 + 625; - lcd_putsf(0, 5, "AUTO: %x / %d mV", x, y); + lcd_putsf(0, 6, "AUTO: %x / %d mV", x, y); x = pmu_read(0x1f) & 0xf; y = pmu_read(0x1e) * 25 + 625; - lcd_putsf(0, 6, "DOWN1: %x / %d mV", x, y); + lcd_putsf(0, 7, "DOWN1: %x / %d mV", x, y); x = pmu_read(0x23) & 0xf; y = pmu_read(0x22) * 25 + 625; - lcd_putsf(0, 7, "DOWN2: %x / %d mV", x, y); + lcd_putsf(0, 8, "DOWN2: %x / %d mV", x, y); x = pmu_read(0x27) & 0xf; y = pmu_read(0x26) * 100 + 900; - lcd_putsf(0, 8, "MEMLDO: %x / %d mV", x, y); + lcd_putsf(0, 9, "MEMLDO: %x / %d mV", x, y); for (i = 0; i < 6; i++) { x = pmu_read(0x2e + (i << 1)) & 0xf; y = pmu_read(0x2d + (i << 1)) * 100 + 900; - lcd_putsf(0, 9 + i, "LDO%d: %x / %d mV", i + 1, x, y); + lcd_putsf(0, 10 + i, "LDO%d: %x / %d mV", i + 1, x, y); } - lcd_putsf(0, 15, "CLKCON: %8x", CLKCON); - lcd_putsf(17, 15, "PLL0: %6x", PLL0PMS); #else lcd_putsf(0, 3, "Charger: %s", charger_inserted() ? "present" : "absent");