Skip to contentSkip to conversation

Best Point for initialization

U-Boot-Users Jens Scharsig 3 participants 4 messages Jul 29, 2005 – Aug 1, 2005

lore
Share & tools
lore
#0 lore raw

Hello,

my u-boot port runs. But I want to initialize a very spezial non standard device. Where is the best point to do this? My first intension is checkboard?

Regard Jens

#1 lore raw

Hi Jens,

Quoted 3 lines

my u-boot port runs. But I want to initialize a very spezial non standard device. Where is the best point to do this? My first intension is checkboard?

You might want to consider early/late init as well. See CONFIG_BOARD_EARLY_INIT_F and CONFIG_BOARD_LATE_INIT

Regards,
--Scott

#2 lore raw
In reply to Jens Scharsig
Quoted 4 lines · In message <[email protected]> you wrote:

my u-boot port runs. But I want to initialize a very spezial non standard device. Where is the best point to do this? My first intension is checkboard?

Please do not misuse code. checkboard() is, as the name suggests, intended to check and print the board version etc. Please use one of the *init() routined for initialization stuff. misc_init_f() and misc_init_r() are probably best choice.

Best regards,

Wolfgang Denk

Signature · 5 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A star captain's most solemn oath is that he will give his life, even
his entire crew, rather than violate the Prime Directive.
	-- Kirk, "The Omega Glory", stardate unknown
#3 lore raw
Quoted 8 lines · Wolfgang Denk
Quoted 3 lines · In message <[email protected]> you wrote:

my u-boot port runs. But I want to initialize a very spezial non standard device. Where is the best point to do this? My first intension is checkboard?

Please do not misuse code. checkboard() is, as the name suggests,

I don't realy plan to use checkboard() to do this. But I don't know the right point.

Quoted 3 lines

intended to check and print the board version etc. Please use one of the *init() routined for initialization stuff. misc_init_f() and misc_init_r() are probably best choice.

Now I know it. thanks

Regards Jens