On Sep 18, 2009, at 4:55 PM, Scott Wood wrote: >> +#ifdef CONFIG_FSL_CORENET >> + volatile ccsr_local_t *ccm; >> + volatile u32 *base, *lawbarh, *lawbarl, *lawar; >> + >> + ccm = (void *)(CONFIG_SYS_FSL_CORENET_CCM_ADDR); >> + >> + base = &(ccm->lawbarh0); >> + lawbarh = base + i * 4; >> + lawbarl = lawbarh + 1; >> + lawar = lawbarl + 1; > > So the consequence of not using an array in the reg struct, is that > we don't use the reg struct. :-(
Maybe I'll get motivated and rework the code to have this as an array. (The thought did cross my mind about how it would have been nicer if there was an array. :) I think the reason we didn't have an array on PQ3 was the # kept growing. However I'm pretty sure 32 will be the max # for a while on CoreNet platforms. - k _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot