Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

imx233: fix debug for stmp3600

The STMP3600 cannot lock some usb bits so there is only a single
status in POWER_STS. Also stmp3600 has no clock bypass and frac
div.

Change-Id: I101f4263bdddeff58e142d10f9b76dd643bf928d

+12
+12
firmware/target/arm/imx233/debug-imx233.c
··· 240 240 { 241 241 { CLK_PLL, "pll", true, false, false, false, true}, 242 242 { CLK_XTAL, "xtal", false, false, false, false, true}, 243 + #if IMX233_SUBTARGET >= 3700 243 244 { CLK_PIX, "pix", true, true, true, true, true }, 245 + #endif 244 246 { CLK_SSP, "ssp", true, true, true, false, true }, 245 247 { CLK_IO, "io", false, false, false, true, true }, 246 248 { CLK_CPU, "cpu", false, true, true, true, true }, ··· 279 281 lcd_putsf(0, i + 1, "%4s", c.name); 280 282 if(c.has_enable) 281 283 lcd_putsf(5, i + 1, "%2d", imx233_clkctrl_is_enabled(c.clk)); 284 + #if IMX233_SUBTARGET >= 3700 282 285 if(c.has_bypass) 283 286 lcd_putsf(8, i + 1, "%2d", imx233_clkctrl_get_bypass(c.clk)); 287 + #endif 284 288 if(c.has_idiv && imx233_clkctrl_get_div(c.clk) != 0) 285 289 lcd_putsf(10, i + 1, "%4d", imx233_clkctrl_get_div(c.clk)); 290 + #if IMX233_SUBTARGET >= 3700 286 291 if(c.has_fdiv && imx233_clkctrl_get_frac_div(c.clk) != 0) 287 292 lcd_putsf(16, i + 1, "%4d", imx233_clkctrl_get_frac_div(c.clk)); 293 + #endif 288 294 if(c.has_freq) 289 295 lcd_putsf(21, i + 1, "%9d", imx233_clkctrl_get_freq(c.clk)); 290 296 #undef c ··· 697 703 698 704 lcd_clear_display(); 699 705 int line = 0; 706 + #if IMX233_SUBTARGET >= 3700 700 707 lcd_putsf(0, line++, "VBUS valid: %d/%d", BF_RD(POWER_STS, VBUSVALID), BF_RD(POWER_STS, VBUSVALID_STATUS)); 701 708 lcd_putsf(0, line++, "A valid: %d/%d", BF_RD(POWER_STS, AVALID), BF_RD(POWER_STS, AVALID_STATUS)); 702 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 715 lcd_putsf(0, line++, "session end: %d", BF_RD(POWER_STS, SESSEND)); 704 716 lcd_putsf(0, line++, "dev plugin: %d", BF_RD(USBPHY_STATUS, DEVPLUGIN_STATUS)); 705 717 lcd_putsf(0, line++, "OTG ID: %d", BF_RD(USBPHY_STATUS, OTGID_STATUS));