summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2010-09-25 21:42:35 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2010-09-25 21:42:35 +0000
commit1aa690acb6364eb0da087c4b0611774110158526 (patch)
tree8f604a5d9aa9876237238f9feb5e41cb158c24d7
parent274c84fae9e6c4f4ee7cd957f290454dbbdf53b8 (diff)
Add some more information to iPod nano 2G debug screen.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28162 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/s5l8700/debug-s5l8700.c28
1 files changed, 12 insertions, 16 deletions
diff --git a/firmware/target/arm/s5l8700/debug-s5l8700.c b/firmware/target/arm/s5l8700/debug-s5l8700.c
index 96df1546ef..094d63a16a 100644
--- a/firmware/target/arm/s5l8700/debug-s5l8700.c
+++ b/firmware/target/arm/s5l8700/debug-s5l8700.c
@@ -99,25 +99,21 @@ bool __dbg_hw_info(void)
}
else if(state==1)
{
+ pmu_ldo_set_voltage(5, 0x10);
_DEBUG_PRINTF("PMU:");
for(i=0;i<7;i++)
{
- if(i == 1)
- {
- _DEBUG_PRINTF("ldo %d: %dmV (CLICKWHEEL)",i,900 + pmu_read(0x2d + (i << 1))*100);
- }
- else if(i == 3)
- {
- _DEBUG_PRINTF("ldo %d: %dmV (AUDIO)",i,900 + pmu_read(0x2d + (i << 1))*100);
- }
- else if(i == 4)
- {
- _DEBUG_PRINTF("ldo %d: %dmV (NAND)",i,900 + pmu_read(0x2d + (i << 1))*100);
- }
- else
- {
- _DEBUG_PRINTF("ldo %d: %dmV",i,900 + pmu_read(0x2d + (i << 1))*100);
- }
+ char *device[] = {"(unknown)",
+ "(CLICKWHEEL)",
+ "(LCD)",
+ "(AUDIO)",
+ "(NAND)",
+ "(unknown)",
+ "(ACCESSORY)"};
+ _DEBUG_PRINTF("ldo%d %s: %dmV %s",i,
+ pmu_read(0x2e + (i << 1))?" on":"off",
+ 900 + pmu_read(0x2d + (i << 1))*100,
+ device[i]);
}
_DEBUG_PRINTF("cpu voltage: %dmV",625 + pmu_read(0x1e)*25);
_DEBUG_PRINTF("memory voltage: %dmV",625 + pmu_read(0x22)*25);