forked from len0rd/rockbox
Show exact CPU version on PP5002 targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15427 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3be1ca0281
commit
c9fca1e69c
2 changed files with 13 additions and 0 deletions
|
@ -630,6 +630,11 @@ static bool dbg_hw_info(void)
|
||||||
#elif CONFIG_CPU == PP5002
|
#elif CONFIG_CPU == PP5002
|
||||||
int line = 0;
|
int line = 0;
|
||||||
char buf[32];
|
char buf[32];
|
||||||
|
char pp_version[] = { (PP_VER4 >> 8) & 0xff, PP_VER4 & 0xff,
|
||||||
|
(PP_VER3 >> 8) & 0xff, PP_VER3 & 0xff,
|
||||||
|
(PP_VER2 >> 8) & 0xff, PP_VER2 & 0xff,
|
||||||
|
(PP_VER1 >> 8) & 0xff, PP_VER1 & 0xff, '\0' };
|
||||||
|
|
||||||
|
|
||||||
lcd_setmargins(0, 0);
|
lcd_setmargins(0, 0);
|
||||||
lcd_setfont(FONT_SYSFIXED);
|
lcd_setfont(FONT_SYSFIXED);
|
||||||
|
@ -642,6 +647,9 @@ static bool dbg_hw_info(void)
|
||||||
lcd_puts(0, line++, buf);
|
lcd_puts(0, line++, buf);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
snprintf(buf, sizeof(buf), "PP version: %s", pp_version);
|
||||||
|
lcd_puts(0, line++, buf);
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "Est. clock (kHz): %d", perfcheck());
|
snprintf(buf, sizeof(buf), "Est. clock (kHz): %d", perfcheck());
|
||||||
lcd_puts(0, line++, buf);
|
lcd_puts(0, line++, buf);
|
||||||
|
|
||||||
|
|
|
@ -136,6 +136,11 @@
|
||||||
#define TIMING1_CTL (*(volatile unsigned long *)(0xcf004000))
|
#define TIMING1_CTL (*(volatile unsigned long *)(0xcf004000))
|
||||||
#define TIMING2_CTL (*(volatile unsigned long *)(0xcf004008))
|
#define TIMING2_CTL (*(volatile unsigned long *)(0xcf004008))
|
||||||
|
|
||||||
|
#define PP_VER1 (*(volatile unsigned long *)(0xcf004030))
|
||||||
|
#define PP_VER2 (*(volatile unsigned long *)(0xcf004034))
|
||||||
|
#define PP_VER3 (*(volatile unsigned long *)(0xcf004038))
|
||||||
|
#define PP_VER4 (*(volatile unsigned long *)(0xcf00403c))
|
||||||
|
|
||||||
#define CPU_CTL (*(volatile unsigned char *)(0xcf004054))
|
#define CPU_CTL (*(volatile unsigned char *)(0xcf004054))
|
||||||
#define COP_CTL (*(volatile unsigned char *)(0xcf004058))
|
#define COP_CTL (*(volatile unsigned char *)(0xcf004058))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue