Lines Matching full:im
48 void cpu_init_f (volatile immap_t * im) in cpu_init_f() argument
211 clrsetbits_be32(&im->arbiter.acr, acr_mask, acr_val); in cpu_init_f()
213 clrsetbits_be32(&im->sysconf.spcr, spcr_mask, spcr_val); in cpu_init_f()
215 clrsetbits_be32(&im->clk.sccr, sccr_mask, sccr_val); in cpu_init_f()
218 gd->arch.reset_status = __raw_readl(&im->reset.rsr); in cpu_init_f()
219 __raw_writel(~(RSR_RES), &im->reset.rsr); in cpu_init_f()
222 gd->arch.arbiter_event_attributes = __raw_readl(&im->arbiter.aeatr); in cpu_init_f()
223 gd->arch.arbiter_event_address = __raw_readl(&im->arbiter.aeadr); in cpu_init_f()
229 __raw_writel(RMR_CSRE & (1<<RMR_CSRE_SHIFT), &im->reset.rmr); in cpu_init_f()
234 clrsetbits_be32(&im->im_lbc.lcrr, lcrr_mask, lcrr_val); in cpu_init_f()
235 __raw_readl(&im->im_lbc.lcrr); in cpu_init_f()
239 setbits_be32(&im->sysconf.spcr, SPCR_TBEN); in cpu_init_f()
245 __raw_writel((im->sysconf.sicrh & 0x0000000C) | CONFIG_SYS_SICRH, in cpu_init_f()
246 &im->sysconf.sicrh); in cpu_init_f()
248 __raw_writel(CONFIG_SYS_SICRH, &im->sysconf.sicrh); in cpu_init_f()
252 __raw_writel(CONFIG_SYS_SICRL, &im->sysconf.sicrl); in cpu_init_f()
255 __raw_writel(CONFIG_SYS_GPR1, &im->sysconf.gpr1); in cpu_init_f()
258 __raw_writel(CONFIG_SYS_DDRCDR, &im->sysconf.ddrcdr); in cpu_init_f()
261 __raw_writel(CONFIG_SYS_OBIR, &im->sysconf.obir); in cpu_init_f()
273 im->sysconf.lblaw[0].bar = CONFIG_SYS_LBLAWBAR0_PRELIM; in cpu_init_f()
274 im->sysconf.lblaw[0].ar = CONFIG_SYS_LBLAWAR0_PRELIM; in cpu_init_f()
280 im->sysconf.lblaw[1].bar = CONFIG_SYS_LBLAWBAR1_PRELIM; in cpu_init_f()
281 im->sysconf.lblaw[1].ar = CONFIG_SYS_LBLAWAR1_PRELIM; in cpu_init_f()
284 im->sysconf.lblaw[2].bar = CONFIG_SYS_LBLAWBAR2_PRELIM; in cpu_init_f()
285 im->sysconf.lblaw[2].ar = CONFIG_SYS_LBLAWAR2_PRELIM; in cpu_init_f()
288 im->sysconf.lblaw[3].bar = CONFIG_SYS_LBLAWBAR3_PRELIM; in cpu_init_f()
289 im->sysconf.lblaw[3].ar = CONFIG_SYS_LBLAWAR3_PRELIM; in cpu_init_f()
292 im->sysconf.lblaw[4].bar = CONFIG_SYS_LBLAWBAR4_PRELIM; in cpu_init_f()
293 im->sysconf.lblaw[4].ar = CONFIG_SYS_LBLAWAR4_PRELIM; in cpu_init_f()
296 im->sysconf.lblaw[5].bar = CONFIG_SYS_LBLAWBAR5_PRELIM; in cpu_init_f()
297 im->sysconf.lblaw[5].ar = CONFIG_SYS_LBLAWAR5_PRELIM; in cpu_init_f()
300 im->sysconf.lblaw[6].bar = CONFIG_SYS_LBLAWBAR6_PRELIM; in cpu_init_f()
301 im->sysconf.lblaw[6].ar = CONFIG_SYS_LBLAWAR6_PRELIM; in cpu_init_f()
304 im->sysconf.lblaw[7].bar = CONFIG_SYS_LBLAWBAR7_PRELIM; in cpu_init_f()
305 im->sysconf.lblaw[7].ar = CONFIG_SYS_LBLAWAR7_PRELIM; in cpu_init_f()
308 im->gpio[0].dat = CONFIG_SYS_GPIO1_DAT; in cpu_init_f()
309 im->gpio[0].dir = CONFIG_SYS_GPIO1_DIR; in cpu_init_f()
312 im->gpio[1].dat = CONFIG_SYS_GPIO2_DAT; in cpu_init_f()
313 im->gpio[1].dir = CONFIG_SYS_GPIO2_DIR; in cpu_init_f()