1
0
Fork 0
forked from len0rd/rockbox

iPod Classic: remove uninteresting info in HW debug screen

CPU type and frequency of the PLLs are fixed and have no interest
at this moment.

Change-Id: I9524127add872908c062a5cfa2fca348a03e846e
This commit is contained in:
Cástor Muñoz 2016-01-28 23:18:18 +01:00
parent e6cd53ad53
commit 4605df1e3c

View file

@ -72,19 +72,11 @@ bool dbg_hw_info(void)
_DEBUG_PRINTF("CPU:");
_DEBUG_PRINTF("speed: %d MHz", cpu_hz / 1000000);
_DEBUG_PRINTF("current_tick: %d", (unsigned int)current_tick);
uint32_t __res;
asm volatile ("mrc p15, 0, %0, c0, c0, 0" : "=r"(__res));
_DEBUG_PRINTF("ID code: %08x", __res);
asm volatile ("mrc p15, 0, %0, c0, c0, 1" : "=r"(__res));
_DEBUG_PRINTF("cache type: %08x", __res);
line++;
_DEBUG_PRINTF("LCD type: %d", lcd_type);
line++;
_DEBUG_PRINTF("capture HW: %d", rec_hw_ver);
_DEBUG_PRINTF("capture HW type: %d", rec_hw_ver);
line++;
#ifdef CLOCKING_DEBUG
/* show all clocks */
unsigned f_clk, c_clk, h_clk, p_clk, l_clk, s_clk;
@ -96,18 +88,12 @@ bool dbg_hw_info(void)
#define MHZ 1000000
#define TMHZ 100000
_DEBUG_PRINTF("Clocks (MHz):");
_DEBUG_PRINTF(" FClk: %d.%d", f_clk / MHZ, (f_clk % MHZ) / TMHZ);
_DEBUG_PRINTF(" CPU: %d.%d", c_clk / MHZ, (c_clk % MHZ) / TMHZ);
_DEBUG_PRINTF(" AHB: %d.%d", h_clk / MHZ, (h_clk % MHZ) / TMHZ);
_DEBUG_PRINTF(" SM1: %d.%d", s_clk / MHZ, (s_clk % MHZ) / TMHZ);
_DEBUG_PRINTF(" LCD: %d.%d", l_clk / MHZ, (l_clk % MHZ) / TMHZ);
_DEBUG_PRINTF(" APB: %d.%d", p_clk / MHZ, (p_clk % MHZ) / TMHZ);
line++;
_DEBUG_PRINTF("CG16_SEL_x (Hz):");
_DEBUG_PRINTF(" OSC: %d", soc_get_oscsel_freq());
for (int i = 0; i < 3; i++)
_DEBUG_PRINTF(" PLL%d: %d (%d)", i,
pll_get_out_freq(i), pll_get_cfg_freq(i));
_DEBUG_PRINTF("FClk: %d.%d", f_clk / MHZ, (f_clk % MHZ) / TMHZ);
_DEBUG_PRINTF(" CPU: %d.%d", c_clk / MHZ, (c_clk % MHZ) / TMHZ);
_DEBUG_PRINTF(" AHB: %d.%d", h_clk / MHZ, (h_clk % MHZ) / TMHZ);
_DEBUG_PRINTF(" SM1: %d.%d", s_clk / MHZ, (s_clk % MHZ) / TMHZ);
_DEBUG_PRINTF(" LCD: %d.%d", l_clk / MHZ, (l_clk % MHZ) / TMHZ);
_DEBUG_PRINTF(" APB: %d.%d", p_clk / MHZ, (p_clk % MHZ) / TMHZ);
#endif
}
else if(state==1)