diff options
author | Michael Sparmann <theseven@rockbox.org> | 2010-11-14 15:08:38 +0000 |
---|---|---|
committer | Michael Sparmann <theseven@rockbox.org> | 2010-11-14 15:08:38 +0000 |
commit | 59d9361f75f61172644032540f7acb3c5066dfb8 (patch) | |
tree | df3e6a4d6bea05430caf37ac9966b52bda17f9e3 | |
parent | e95bca0f8ee9a17d2eb081e699fef3d6d7bf9dcf (diff) | |
download | rockbox-59d9361f75f61172644032540f7acb3c5066dfb8.tar.gz rockbox-59d9361f75f61172644032540f7acb3c5066dfb8.zip |
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
-rw-r--r-- | apps/debug_menu.c | 17 |
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"); |