[U-Boot-Users] Please pull from 'mpc83xx' branch

Kumar Gala galak at kernel.crashing.org
Thu Feb 1 17:39:53 CET 2007


On Feb 1, 2007, at 10:06 AM, Timur Tabi wrote:

> Kumar Gala wrote:
>
>> This is on purpose, the boards in question are using the default  
>> value of SCCR and have been.  Kim added the CFG_SCCR_* but it was  
>> never actually used by the boards.
>
> I got an email a way back from someone complaining that because the  
> USB clocks were not being initialized on an 8349EMDS, the USB Linux  
> driver was hanging on initialization.  I have not seen this myself,  
> and I don't remember who sent the email, but whoever did was  
> convinced that programming the clocks fixed the problem.

If that's an issue I'd suggest a follow up patch for it.  I was  
cleaning up the code and leaving the boards in the state I found them :)

>>> You can also probably get rid of these macros in mpc83xx.h:
>>>
>>> #define SCCR_ENCCM_0            0x00000000
>>> #define SCCR_ENCCM_1            0x01000000
>>> #define SCCR_ENCCM_2            0x02000000
>>> #define SCCR_ENCCM_3            0x03000000
>>> #define SCCR_TSEC1CM_0            0x00000000
>>> #define SCCR_TSEC1CM_1            0x40000000
>>> #define SCCR_TSEC1CM_2            0x80000000
>>> #define SCCR_TSEC1CM_3            0xC0000000
>>> #define SCCR_TSEC2CM_0            0x00000000
>>> #define SCCR_TSEC2CM_1            0x10000000
>>> #define SCCR_TSEC2CM_2            0x20000000
>>> #define SCCR_TSEC2CM_3            0x30000000
>>> #define SCCR_USBCM_0            0x00000000
>>> #define SCCR_USBCM_1            0x00500000
>>> #define SCCR_USBCM_2            0x00A00000
>>> #define SCCR_USBCM_3            0x00F00000
>> Don't see any harm in having them.
>
> Someone might seem them and think they should be used to initialize  
> the clocks.  With the changes to cpu_init_f(), these macros will  
> never be used.

I can for see using them if I wanted to set the SCCR in a single  
shot.  Feel free to post a patch to remove them.

Kim asked me to clean up the original patch because of the issues you  
pointed out, that's been done.  Anything beyond that I'll leave up to  
you guys.

- k




More information about the U-Boot mailing list