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.tar.gz rockbox-4605df1e3cb260baed1ca8be747f76156265bbba.zip |
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 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) | |||
72 | _DEBUG_PRINTF("CPU:"); | 72 | _DEBUG_PRINTF("CPU:"); |
73 | _DEBUG_PRINTF("speed: %d MHz", cpu_hz / 1000000); | 73 | _DEBUG_PRINTF("speed: %d MHz", cpu_hz / 1000000); |
74 | _DEBUG_PRINTF("current_tick: %d", (unsigned int)current_tick); | 74 | _DEBUG_PRINTF("current_tick: %d", (unsigned int)current_tick); |
75 | uint32_t __res; | ||
76 | asm volatile ("mrc p15, 0, %0, c0, c0, 0" : "=r"(__res)); | ||
77 | _DEBUG_PRINTF("ID code: %08x", __res); | ||
78 | asm volatile ("mrc p15, 0, %0, c0, c0, 1" : "=r"(__res)); | ||
79 | _DEBUG_PRINTF("cache type: %08x", __res); | ||
80 | line++; | 75 | line++; |
81 | |||
82 | _DEBUG_PRINTF("LCD type: %d", lcd_type); | 76 | _DEBUG_PRINTF("LCD type: %d", lcd_type); |
83 | line++; | 77 | line++; |
84 | 78 | _DEBUG_PRINTF("capture HW type: %d", rec_hw_ver); | |
85 | _DEBUG_PRINTF("capture HW: %d", rec_hw_ver); | ||
86 | line++; | 79 | line++; |
87 | |||
88 | #ifdef CLOCKING_DEBUG | 80 | #ifdef CLOCKING_DEBUG |
89 | /* show all clocks */ | 81 | /* show all clocks */ |
90 | unsigned f_clk, c_clk, h_clk, p_clk, l_clk, s_clk; | 82 | unsigned f_clk, c_clk, h_clk, p_clk, l_clk, s_clk; |
@@ -96,18 +88,12 @@ bool dbg_hw_info(void) | |||
96 | #define MHZ 1000000 | 88 | #define MHZ 1000000 |
97 | #define TMHZ 100000 | 89 | #define TMHZ 100000 |
98 | _DEBUG_PRINTF("Clocks (MHz):"); | 90 | _DEBUG_PRINTF("Clocks (MHz):"); |
99 | _DEBUG_PRINTF(" FClk: %d.%d", f_clk / MHZ, (f_clk % MHZ) / TMHZ); | 91 | _DEBUG_PRINTF("FClk: %d.%d", f_clk / MHZ, (f_clk % MHZ) / TMHZ); |
100 | _DEBUG_PRINTF(" CPU: %d.%d", c_clk / MHZ, (c_clk % MHZ) / TMHZ); | 92 | _DEBUG_PRINTF(" CPU: %d.%d", c_clk / MHZ, (c_clk % MHZ) / TMHZ); |
101 | _DEBUG_PRINTF(" AHB: %d.%d", h_clk / MHZ, (h_clk % MHZ) / TMHZ); | 93 | _DEBUG_PRINTF(" AHB: %d.%d", h_clk / MHZ, (h_clk % MHZ) / TMHZ); |
102 | _DEBUG_PRINTF(" SM1: %d.%d", s_clk / MHZ, (s_clk % MHZ) / TMHZ); | 94 | _DEBUG_PRINTF(" SM1: %d.%d", s_clk / MHZ, (s_clk % MHZ) / TMHZ); |
103 | _DEBUG_PRINTF(" LCD: %d.%d", l_clk / MHZ, (l_clk % MHZ) / TMHZ); | 95 | _DEBUG_PRINTF(" LCD: %d.%d", l_clk / MHZ, (l_clk % MHZ) / TMHZ); |
104 | _DEBUG_PRINTF(" APB: %d.%d", p_clk / MHZ, (p_clk % MHZ) / TMHZ); | 96 | _DEBUG_PRINTF(" APB: %d.%d", p_clk / MHZ, (p_clk % MHZ) / TMHZ); |
105 | line++; | ||
106 | _DEBUG_PRINTF("CG16_SEL_x (Hz):"); | ||
107 | _DEBUG_PRINTF(" OSC: %d", soc_get_oscsel_freq()); | ||
108 | for (int i = 0; i < 3; i++) | ||
109 | _DEBUG_PRINTF(" PLL%d: %d (%d)", i, | ||
110 | pll_get_out_freq(i), pll_get_cfg_freq(i)); | ||
111 | #endif | 97 | #endif |
112 | } | 98 | } |
113 | else if(state==1) | 99 | else if(state==1) |