public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] dynamic setting of CONFIG_SYS_CLK_FREQ
@ 2004-04-22 16:02 Kumar Gala
  2004-04-22 17:14 ` Wolfgang Denk
  2004-04-22 17:58 ` Dan Malek
  0 siblings, 2 replies; 18+ messages in thread
From: Kumar Gala @ 2004-04-22 16:02 UTC (permalink / raw)
  To: u-boot

I was wondering if there where an examples in the current u-boot source 
tree in which CONFIG_SYS_CLK_FREQ was determined dynamically.  I have a 
system in which I can read a config register on the board to let me 
know if the CONFIG_SYS_CLK_FREQ is 66Mhz or 33Mhz.  I was hoping to 
have the 16550 uart (and anything else) that needed CONFIG_SYS_CLK_FREQ 
grab it from a variable instead.

This is on an MPC85xx platform system.

thanks

- Kumar

^ permalink raw reply	[flat|nested] 18+ messages in thread
* [U-Boot-Users] dynamic setting of CONFIG_SYS_CLK_FREQ
@ 2004-04-22 17:52 VanBaren, Gerald
  0 siblings, 0 replies; 18+ messages in thread
From: VanBaren, Gerald @ 2004-04-22 17:52 UTC (permalink / raw)
  To: u-boot

The simplest way for shortcutting...

#define CONFIG_SYS_CLK_FREQ   get_clock_freq()

(writing of an acceptable get_clock_freq()is left as an exercize for the reader)

gvb


> -----Original Message-----
> From: u-boot-users-admin at lists.sourceforge.net
> [mailto:u-boot-users-admin at lists.sourceforge.net]On Behalf Of Wolfgang
> Denk
> Sent: Thursday, April 22, 2004 1:15 PM
> To: Kumar Gala
> Cc: U-Boot mailing list
> Subject: Re: [U-Boot-Users] dynamic setting of CONFIG_SYS_CLK_FREQ
>
>
> In message
> <66FC73FC-9476-11D8-A48D-000393DBC2E8@motorola.com> you wrote:
> > I was wondering if there where an examples in the current
> u-boot source
> > tree in which CONFIG_SYS_CLK_FREQ was determined
> dynamically.  I have a
>
> Not exactly for CONFIG_SYS_CLK_FREQ - but the TQM8xxL boards  contain
> code to measure the input clock against the (known) 32kHz clock.
>
> > system in which I can read a config register on the board to let me
> > know if the CONFIG_SYS_CLK_FREQ is 66Mhz or 33Mhz.  I was hoping to
> > have the 16550 uart (and anything else) that needed
> CONFIG_SYS_CLK_FREQ
> > grab it from a variable instead.
>
> If you provide a suitable init fuction which sets the  value  in  the
> global  data  section eraly enough, you can probably shortcut the use
> of CONFIG_SYS_CLK_FREQ.
>
> > This is on an MPC85xx platform system.
>
> ...or any other.
>
>
> Best regards,
>
> Wolfgang Denk
>
> --
> Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
> Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
> "There are three principal ways to lose money: wine, women, and engi-
> neers. While the first two are more pleasant, the third is by far the
> more certain."                           - Baron Rothschild, ca. 1800
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>



******************************************
The information contained in, or attached to, this e-mail, may contain confidential information and is intended solely for the use of the individual or entity to whom they are addressed and may be subject to legal privilege.  If you have received this e-mail in error you should notify the sender immediately by reply e-mail, delete the message from your system and notify your system manager.  Please do not copy it for any purpose, or disclose its contents to any other person.  The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company.  The recipient should check this e-mail and any attachments for the presence of viruses.  The company accepts no liability for any damage caused, directly or indirectly, by any virus transmitted in this email.
******************************************

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2004-04-26 14:00 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-22 16:02 [U-Boot-Users] dynamic setting of CONFIG_SYS_CLK_FREQ Kumar Gala
2004-04-22 17:14 ` Wolfgang Denk
2004-04-22 17:28   ` Kumar Gala
2004-04-22 19:44     ` Wolfgang Denk
2004-04-22 19:51       ` Kumar Gala
2004-04-25 14:03         ` Wolfgang Denk
2004-04-26  6:33           ` Pantelis Antoniou
2004-04-26  8:02             ` Wolfgang Denk
2004-04-26  8:16               ` Pantelis Antoniou
2004-04-26  9:14                 ` Wolfgang Denk
2004-04-26 10:18                   ` Pantelis Antoniou
2004-04-26 11:13                     ` Wolfgang Denk
2004-04-26 11:32                       ` Pantelis Antoniou
2004-04-26 13:03                         ` Wolfgang Denk
2004-04-26 13:25                           ` Pantelis Antoniou
2004-04-26 14:00                             ` Wolfgang Denk
2004-04-22 17:58 ` Dan Malek
  -- strict thread matches above, loose matches on Subject: below --
2004-04-22 17:52 VanBaren, Gerald

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox