summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/target/arm/s5l8702/debug-s5l8702.c28
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)