Lines Matching refs:cpg
139 struct sh73a0_sbsc_cpg *cpg = (struct sh73a0_sbsc_cpg *)CPG_BASE; in s_init() local
155 clrbits_le32(&cpg->smstpcr3, (1 << 15)); in s_init()
157 clrbits_le32(&cpg->smstpcr2, (1 << 18)); in s_init()
159 writel(0x0, &cpg->pllecr); in s_init()
161 cmp_loop(&cpg->pllecr, 0x00000F00, 0x0); in s_init()
162 cmp_loop(&cpg->frqcrb, 0x80000000, 0x0); in s_init()
164 writel(0x2D000000, &cpg->pll0cr); in s_init()
165 writel(0x17100000, &cpg->pll1cr); in s_init()
166 writel(0x96235880, &cpg->frqcrb); in s_init()
167 cmp_loop(&cpg->frqcrb, 0x80000000, 0x0); in s_init()
169 writel(0xB, &cpg->flckcr); in s_init()
170 clrbits_le32(&cpg->smstpcr0, (1 << 1)); in s_init()
178 writel(0x00092000, &cpg->dvfscr4); in s_init()
179 writel(0x000000DC, &cpg->dvfscr5); in s_init()
180 writel(0x0, &cpg->pllecr); in s_init()
181 cmp_loop(&cpg->pllecr, 0x00000F00, 0x0); in s_init()
184 writel(0x0012453C, &cpg->frqcra); in s_init()
185 writel(0x80431350, &cpg->frqcrb); /* ETM TRCLK 78MHz */ in s_init()
186 cmp_loop(&cpg->frqcrb, 0x80000000, 0x0); in s_init()
187 writel(0x00000B0B, &cpg->frqcrd); in s_init()
188 cmp_loop(&cpg->frqcrd, 0x80000000, 0x0); in s_init()
192 writel(0x0000012F, &cpg->vclkcr1); in s_init()
193 writel(0x00000119, &cpg->vclkcr2); in s_init()
194 writel(0x00000119, &cpg->vclkcr3); in s_init()
195 writel(0x00000002, &cpg->zbckcr); in s_init()
196 writel(0x00000005, &cpg->flckcr); in s_init()
197 writel(0x00000080, &cpg->sd0ckcr); in s_init()
198 writel(0x00000080, &cpg->sd1ckcr); in s_init()
199 writel(0x00000080, &cpg->sd2ckcr); in s_init()
200 writel(0x0000003F, &cpg->fsiackcr); in s_init()
201 writel(0x0000003F, &cpg->fsibckcr); in s_init()
202 writel(0x00000080, &cpg->subckcr); in s_init()
203 writel(0x0000000B, &cpg->spuackcr); in s_init()
204 writel(0x0000000B, &cpg->spuvckcr); in s_init()
205 writel(0x0000013F, &cpg->msuckcr); in s_init()
206 writel(0x00000080, &cpg->hsickcr); in s_init()
207 writel(0x0000003F, &cpg->mfck1cr); in s_init()
208 writel(0x0000003F, &cpg->mfck2cr); in s_init()
209 writel(0x00000107, &cpg->dsitckcr); in s_init()
210 writel(0x00000313, &cpg->dsi0pckcr); in s_init()
211 writel(0x0000130D, &cpg->dsi1pckcr); in s_init()
212 writel(0x2A800E0E, &cpg->dsi0phycr); in s_init()
213 writel(0x1E000000, &cpg->pll0cr); in s_init()
214 writel(0x2D000000, &cpg->pll0cr); in s_init()
215 writel(0x17100000, &cpg->pll1cr); in s_init()
216 writel(0x27000080, &cpg->pll2cr); in s_init()
217 writel(0x1D000000, &cpg->pll3cr); in s_init()
218 writel(0x00080000, &cpg->pll0stpcr); in s_init()
219 writel(0x000120C0, &cpg->pll1stpcr); in s_init()
220 writel(0x00012000, &cpg->pll2stpcr); in s_init()
221 writel(0x00000030, &cpg->pll3stpcr); in s_init()
223 writel(0x0000000B, &cpg->pllecr); in s_init()
224 cmp_loop(&cpg->pllecr, 0x00000B00, 0x00000B00); in s_init()
226 writel(0x000120F0, &cpg->dvfscr3); in s_init()
227 writel(0x00000020, &cpg->mpmode); in s_init()
228 writel(0x0000028A, &cpg->vrefcr); in s_init()
229 writel(0xE4628087, &cpg->rmstpcr0); in s_init()
230 writel(0xFFFFFFFF, &cpg->rmstpcr1); in s_init()
231 writel(0x53FFFFFF, &cpg->rmstpcr2); in s_init()
232 writel(0xFFFFFFFF, &cpg->rmstpcr3); in s_init()
233 writel(0x00800D3D, &cpg->rmstpcr4); in s_init()
234 writel(0xFFFFF3FF, &cpg->rmstpcr5); in s_init()
235 writel(0x00000000, &cpg->smstpcr2); in s_init()
238 clrbits_le32(&cpg->pllecr, (1 << 3)); in s_init()
239 cmp_loop(&cpg->pllecr, 0x00000800, 0x0); in s_init()
244 writel(0x00001414, &cpg->frqcrd); in s_init()
245 cmp_loop(&cpg->frqcrd, 0x80000000, 0x0); in s_init()
247 writel(0x1d000000, &cpg->pll3cr); in s_init()
248 setbits_le32(&cpg->pllecr, (1 << 3)); in s_init()
249 cmp_loop(&cpg->pllecr, 0x800, 0x800); in s_init()
257 writel(0x00000b0b, &cpg->frqcrd); in s_init()
258 cmp_loop(&cpg->frqcrd, 0x80000000, 0x0); in s_init()
259 writel(0xfffffffc, &cpg->cpgxxcs4); in s_init()
264 struct sh73a0_sbsc_cpg *cpg = (struct sh73a0_sbsc_cpg *)CPG_BASE; in board_early_init_f() local
276 clrbits_le32(&cpg->smstpcr1, (SMSTPCR1_CMT0|SMSTPCR1_I2C0)); in board_early_init_f()
278 clrbits_le32(&cpg->smstpcr3, (SMSTPCR3_USB|SMSTPCR3_I2C1)); in board_early_init_f()
280 writel(VCLKCR1_D, &cpg->vclkcr1); in board_early_init_f()