[U-Boot] [PATCH 2/7] ppc/p4080: Add support for CoreNet style platform LAWs

Kumar Gala galak at kernel.crashing.org
Sat Sep 19 00:48:04 CEST 2009


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


More information about the U-Boot mailing list