summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2007-07-25 13:12:38 +0000
committerDave Chapman <dave@dchapman.com>2007-07-25 13:12:38 +0000
commitebc076bc15d6501674b9db772557a0eadfb4a5e2 (patch)
treea49e4460708d78c76ea25669afded36c3c631f04 /apps/debug_menu.c
parented095235d44a9427e76f05f9f6d35325ddf1d4d9 (diff)
downloadrockbox-ebc076bc15d6501674b9db772557a0eadfb4a5e2.zip
rockbox-ebc076bc15d6501674b9db772557a0eadfb4a5e2.tar.gz
rockbox-ebc076bc15d6501674b9db772557a0eadfb4a5e2.tar.bz2
rockbox-ebc076bc15d6501674b9db772557a0eadfb4a5e2.tar.xz
Remove the hack which read the ipod hardware revision from flash in the bootloader and passed it to Rockbox via a fixed address in SDRAM. Rockbox now remaps flash and so can just read the value itself. Also clean up the debug menu a little - only display the hw revision for ipods, and add the lcd_type variable to indicate the type of LCD (0 or 1) for ipod Color/Photo.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13986 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r--apps/debug_menu.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 452abe5..3755ba8 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -630,6 +630,7 @@ static bool dbg_hw_info(void)
return false;
}
#elif defined(CPU_PP502x)
+ int line = 0;
char buf[32];
char pp_version[] = { (PP_VER2 >> 24) & 0xff, (PP_VER2 >> 16) & 0xff,
(PP_VER2 >> 8) & 0xff, (PP_VER2) & 0xff,
@@ -640,16 +641,25 @@ static bool dbg_hw_info(void)
lcd_setfont(FONT_SYSFIXED);
lcd_clear_display();
- lcd_puts(0, 0, "[Hardware info]");
+ lcd_puts(0, line++, "[Hardware info]");
- snprintf(buf, sizeof(buf), "HW rev: 0x%08x", ipod_hw_rev);
- lcd_puts(0, 1, buf);
+#ifdef IPOD_ARCH
+ snprintf(buf, sizeof(buf), "HW rev: 0x%08lx", IPOD_HW_REVISION);
+ lcd_puts(0, line++, buf);
+#endif
+
+#ifdef IPOD_COLOR
+ extern int lcd_type; /* Defined in lcd-colornano.c */
+
+ snprintf(buf, sizeof(buf), "LCD type: %d", lcd_type);
+ lcd_puts(0, line++, buf);
+#endif
snprintf(buf, sizeof(buf), "PP version: %s", pp_version);
- lcd_puts(0, 2, buf);
+ lcd_puts(0, line++, buf);
snprintf(buf, sizeof(buf), "Est. clock (kHz): %d", perfcheck());
- lcd_puts(0, 3, buf);
+ lcd_puts(0, line++, buf);
lcd_update();