Skip to contentSkip to conversation

Initialization of Timer Clock on the MPC8260

DISCUSSION annamaya 2 participants 4 messages Dec 14, 2004 – Dec 17, 2004

lore
Share & tools
lore

annamaya

author
#0 lore raw

I am not sure if this is the right place to ask this question since this may be a U-Boot question. I am trying to understand how the source for the timer clock is selected on this processor. Figure 4-3 tries to explain this but I am unable to find code in U-Boot that actually sets either BRG1 or one of the GPIO pins to act as inputs for the timer clock generation. Can someone point me to the right place in the code where this is done? I think I know how to do it but I fail to understand where this is being actually done. All I see is the settings of PISCR and TMCNT registers in cpu initialization code. Thanks for your help in advance.

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#1 lore raw
Quoted 2 lines · In message <[email protected]> you wrote:

I am not sure if this is the right place to ask this question since this may be a U-Boot question. I am

Why do you ask here and not on the U-Boot mailing list then?

Quoted 6 lines

trying to understand how the source for the timer clock is selected on this processor. Figure 4-3 tries to explain this but I am unable to find code in U-Boot that actually sets either BRG1 or one of the GPIO pins to act as inputs for the timer clock generation. Can someone point me to the right place in the code where

Well, did you check the place where all GPIO pins
get initialized, i. e. board/<name>/<name>.c ?

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
"To take a significant step forward, you must make a series of finite
improvements." - Donald J. Atwood, General Motors
author
#2 lore raw

Hello Wolfgang,

I will surely post this in the U-Boot forums. I just did not know where it was but I think I've found it now. I still had the address to the PPCBOOT mailist lists. I miss the good old days. :-)

And to answer you questions, yes, I did look at the GPIO pins for all the 8260 boards and not one of them was configured to be a clock. And I was unable to find the setbrg() routine elsewhere to set brgc1 to be the input for timerclk.

-Navin.

Quoted 20 lines · --- Wolfgang Denk

In message <[email protected]>

Quoted 1 line · you

I am not sure if this is the right place to ask

this

Quoted 1 line

question since this may be a U-Boot question. I am

Why do you ask here and not on the U-Boot mailing
list then?

Quoted 2 lines

trying to understand how the source for the timer
clock is selected on this processor. Figure 4-3

tries

Quoted 1 line

to explain this but I am unable to find code in

U-Boot

Quoted 1 line

that actually sets either BRG1 or one of the GPIO

pins

Quoted 1 line

to act as inputs for the timer clock generation.

Can

Quoted 1 line

someone point me to the right place in the code

Quoted 18 lines

where

Well, did you check the place where all GPIO pins
get initialized, i. e. board/<name>/<name>.c ?

Best regards,

Wolfgang Denk

Signature · 7 lines
Software Engineering:  Embedded and Realtime
Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80
Email: [email protected]
"To take a significant step forward, you must make a
series of finite
improvements." - Donald J. Atwood, General Motors

__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com

author
#3 lore raw

OK Wolfgang. Noone has posted an answer to this question in the U-Boot mailing list. So, I still need help with this. :-)

I am looking at the support for one of your own boards, the TQM8260. I dont see PC25, PC27 and PC26 being configured anywhere. And PC29 is configured as an SCC1 CLSN signal. Therefore, I think the internal BRGCLK is used as an input to the timerclk. Now, if this was true, BRGC1 should have been programmed to generate either 4MHz or 32KHz clock. But I dont see this being done anywhere else in the code. I am missing something and I am not sure what that is.

Thanks much for your help.

Quoted 74 lines · --- annamaya

Hello Wolfgang,

I will surely post this in the U-Boot forums. I just did not know where it was but I think I've found it now. I still had the address to the PPCBOOT mailist lists. I miss the good old days. :-)

And to answer you questions, yes, I did look at the GPIO pins for all the 8260 boards and not one of them
was configured to be a clock. And I was unable to find
the setbrg() routine elsewhere to set brgc1 to be the
input for timerclk.

-Navin.

Quoted 2 lines · --- Wolfgang Denk

In message

<[email protected]>

Quoted 4 lines
Quoted 1 line · you

I am not sure if this is the right place to ask

this

Quoted 1 line

question since this may be a U-Boot question. I

am

Quoted 5 lines

Why do you ask here and not on the U-Boot mailing
list then?

Quoted 1 line

trying to understand how the source for the

timer

Quoted 5 lines
Quoted 1 line

clock is selected on this processor. Figure 4-3

tries

Quoted 1 line

to explain this but I am unable to find code in

U-Boot

Quoted 1 line

that actually sets either BRG1 or one of the

GPIO

Quoted 4 lines

pins

Quoted 1 line

to act as inputs for the timer clock generation.

Can

Quoted 1 line

someone point me to the right place in the code

Quoted 13 lines

where

Well, did you check the place where all GPIO pins
get initialized, i. e. board/<name>/<name>.c ?

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime
Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax:

(+49)-8142-66989-80

Quoted 2 lines

Email: [email protected]
"To take a significant step forward, you must make

a

Quoted 3 lines

series of finite
improvements." - Donald J. Atwood, General Motors

__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com

Quoted 4 lines

_______________________________________________
Linuxppc-embedded mailing list
[email protected]

https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Quoted 1 line

__________________________________
Do you Yahoo!?
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com