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 clkctrl for STMP3600 variants (creativezenv)

Change-Id: Ia8f0ce13cdf7dcbf1339bb7648f7a99822f74017

+10
+10
firmware/target/arm/imx233/clkctrl-imx233.c
··· 88 88 #endif 89 89 case CLK_SSP: BF_WR(CLKCTRL_SSP, DIV(div)); break; 90 90 case CLK_HBUS: 91 + #if IMX233_SUBTARGET >= 3700 91 92 /* make sure to switch to integer divide mode simulteanously */ 92 93 BF_WR(CLKCTRL_HBUS, DIV_FRAC_EN(0), DIV(div)); break; 94 + #else 95 + BF_WR(CLKCTRL_HBUS, DIV(div)); break; 96 + #endif 93 97 case CLK_XBUS: BF_WR(CLKCTRL_XBUS, DIV(div)); break; 94 98 default: return; 95 99 } ··· 111 115 case CLK_SSP: return BF_RD(CLKCTRL_SSP, DIV); 112 116 case CLK_HBUS: 113 117 /* since fractional and integer divider share the same field, clain it is disabled in frac mode */ 118 + #if IMX233_SUBTARGET >= 3700 114 119 if(BF_RD(CLKCTRL_HBUS, DIV_FRAC_EN)) 115 120 return 0; 116 121 else 122 + #endif 117 123 return BF_RD(CLKCTRL_HBUS, DIV); 118 124 case CLK_XBUS: return BF_RD(CLKCTRL_XBUS, DIV); 119 125 default: return 0; ··· 143 149 /* value 0 is forbidden because we can't simply disabble the divider, it's always 144 150 * active but either in integer or fractional mode 145 151 * make sure we write both the value and frac_en bit at the same time */ 152 + #if IMX233_SUBTARGET >= 3700 146 153 BF_WR(CLKCTRL_HBUS, DIV_FRAC_EN(1), DIV(fracdiv)); 154 + #else 155 + BF_WR(CLKCTRL_HBUS, DIV(fracdiv)); 156 + #endif 147 157 break; 148 158 default: break; 149 159 }