diff options
| author | Cástor Muñoz <cmvidal@gmail.com> | 2016-01-28 23:18:18 +0100 |
|---|---|---|
| committer | Cástor Muñoz <cmvidal@gmail.com> | 2016-01-29 19:28:22 +0100 |
| commit | 4605df1e3cb260baed1ca8be747f76156265bbba (patch) | |
| tree | c074657362eaef5132f0e5b122515464ec47fae2 | |
| parent | e6cd53ad53e7168e2bd46d49de83250d7f4097a4 (diff) | |
| download | rockbox-4605df1e3cb260baed1ca8be747f76156265bbba.zip rockbox-4605df1e3cb260baed1ca8be747f76156265bbba.tar.gz rockbox-4605df1e3cb260baed1ca8be747f76156265bbba.tar.bz2 rockbox-4605df1e3cb260baed1ca8be747f76156265bbba.tar.xz | |
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
| -rw-r--r-- | firmware/target/arm/s5l8702/debug-s5l8702.c | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/firmware/target/arm/s5l8702/debug-s5l8702.c b/firmware/target/arm/s5l8702/debug-s5l8702.c index fe20446..291c809 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) |