From 4605df1e3cb260baed1ca8be747f76156265bbba Mon Sep 17 00:00:00 2001 From: Cástor Muñoz Date: Thu, 28 Jan 2016 23:18:18 +0100 Subject: 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 --- firmware/target/arm/s5l8702/debug-s5l8702.c | 28 +++++++--------------------- 1 file changed, 7 insertions(+), 21 deletions(-) (limited to 'firmware') diff --git a/firmware/target/arm/s5l8702/debug-s5l8702.c b/firmware/target/arm/s5l8702/debug-s5l8702.c index fe2044690d..291c809bce 100644 --- a/firmware/target/arm/s5l8702/debug-s5l8702.c +++ b/firmware/target/arm/s5l8702/debug-s5l8702.c @@ -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) -- cgit v1.2.3