summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/target/arm/imx233/debug-imx233.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/debug-imx233.c b/firmware/target/arm/imx233/debug-imx233.c
index b121450d13..76f2c6b066 100644
--- a/firmware/target/arm/imx233/debug-imx233.c
+++ b/firmware/target/arm/imx233/debug-imx233.c
@@ -240,7 +240,9 @@ static struct
240{ 240{
241 { CLK_PLL, "pll", true, false, false, false, true}, 241 { CLK_PLL, "pll", true, false, false, false, true},
242 { CLK_XTAL, "xtal", false, false, false, false, true}, 242 { CLK_XTAL, "xtal", false, false, false, false, true},
243#if IMX233_SUBTARGET >= 3700
243 { CLK_PIX, "pix", true, true, true, true, true }, 244 { CLK_PIX, "pix", true, true, true, true, true },
245#endif
244 { CLK_SSP, "ssp", true, true, true, false, true }, 246 { CLK_SSP, "ssp", true, true, true, false, true },
245 { CLK_IO, "io", false, false, false, true, true }, 247 { CLK_IO, "io", false, false, false, true, true },
246 { CLK_CPU, "cpu", false, true, true, true, true }, 248 { CLK_CPU, "cpu", false, true, true, true, true },
@@ -279,12 +281,16 @@ bool dbg_hw_info_clkctrl(void)
279 lcd_putsf(0, i + 1, "%4s", c.name); 281 lcd_putsf(0, i + 1, "%4s", c.name);
280 if(c.has_enable) 282 if(c.has_enable)
281 lcd_putsf(5, i + 1, "%2d", imx233_clkctrl_is_enabled(c.clk)); 283 lcd_putsf(5, i + 1, "%2d", imx233_clkctrl_is_enabled(c.clk));
284#if IMX233_SUBTARGET >= 3700
282 if(c.has_bypass) 285 if(c.has_bypass)
283 lcd_putsf(8, i + 1, "%2d", imx233_clkctrl_get_bypass(c.clk)); 286 lcd_putsf(8, i + 1, "%2d", imx233_clkctrl_get_bypass(c.clk));
287#endif
284 if(c.has_idiv && imx233_clkctrl_get_div(c.clk) != 0) 288 if(c.has_idiv && imx233_clkctrl_get_div(c.clk) != 0)
285 lcd_putsf(10, i + 1, "%4d", imx233_clkctrl_get_div(c.clk)); 289 lcd_putsf(10, i + 1, "%4d", imx233_clkctrl_get_div(c.clk));
290#if IMX233_SUBTARGET >= 3700
286 if(c.has_fdiv && imx233_clkctrl_get_frac_div(c.clk) != 0) 291 if(c.has_fdiv && imx233_clkctrl_get_frac_div(c.clk) != 0)
287 lcd_putsf(16, i + 1, "%4d", imx233_clkctrl_get_frac_div(c.clk)); 292 lcd_putsf(16, i + 1, "%4d", imx233_clkctrl_get_frac_div(c.clk));
293#endif
288 if(c.has_freq) 294 if(c.has_freq)
289 lcd_putsf(21, i + 1, "%9d", imx233_clkctrl_get_freq(c.clk)); 295 lcd_putsf(21, i + 1, "%9d", imx233_clkctrl_get_freq(c.clk));
290 #undef c 296 #undef c
@@ -697,9 +703,15 @@ bool dbg_hw_info_usb(void)
697 703
698 lcd_clear_display(); 704 lcd_clear_display();
699 int line = 0; 705 int line = 0;
706#if IMX233_SUBTARGET >= 3700
700 lcd_putsf(0, line++, "VBUS valid: %d/%d", BF_RD(POWER_STS, VBUSVALID), BF_RD(POWER_STS, VBUSVALID_STATUS)); 707 lcd_putsf(0, line++, "VBUS valid: %d/%d", BF_RD(POWER_STS, VBUSVALID), BF_RD(POWER_STS, VBUSVALID_STATUS));
701 lcd_putsf(0, line++, "A valid: %d/%d", BF_RD(POWER_STS, AVALID), BF_RD(POWER_STS, AVALID_STATUS)); 708 lcd_putsf(0, line++, "A valid: %d/%d", BF_RD(POWER_STS, AVALID), BF_RD(POWER_STS, AVALID_STATUS));
702 lcd_putsf(0, line++, "B valid: %d/%d", BF_RD(POWER_STS, BVALID), BF_RD(POWER_STS, BVALID_STATUS)); 709 lcd_putsf(0, line++, "B valid: %d/%d", BF_RD(POWER_STS, BVALID), BF_RD(POWER_STS, BVALID_STATUS));
710#else
711 lcd_putsf(0, line++, "VBUS valid: %d/%d", BF_RD(POWER_STS, VBUSVALID));
712 lcd_putsf(0, line++, "A valid: %d/%d", BF_RD(POWER_STS, AVALID));
713 lcd_putsf(0, line++, "B valid: %d/%d", BF_RD(POWER_STS, BVALID));
714#endif
703 lcd_putsf(0, line++, "session end: %d", BF_RD(POWER_STS, SESSEND)); 715 lcd_putsf(0, line++, "session end: %d", BF_RD(POWER_STS, SESSEND));
704 lcd_putsf(0, line++, "dev plugin: %d", BF_RD(USBPHY_STATUS, DEVPLUGIN_STATUS)); 716 lcd_putsf(0, line++, "dev plugin: %d", BF_RD(USBPHY_STATUS, DEVPLUGIN_STATUS));
705 lcd_putsf(0, line++, "OTG ID: %d", BF_RD(USBPHY_STATUS, OTGID_STATUS)); 717 lcd_putsf(0, line++, "OTG ID: %d", BF_RD(USBPHY_STATUS, OTGID_STATUS));