Hi,<br>
&nbsp;&nbsp;&nbsp; I am going through the uboot drivers code for smc91111 ethernet controller in uboot.<br>
<br>
&nbsp;&nbsp;&nbsp; My Objective is to know how boot loader configures the ethernet controller.<br>
<br>
&nbsp;&nbsp;&nbsp; This is for the first time i am going thru a boot loader code.<br>
<br>
&nbsp;&nbsp;&nbsp; I have some doubts:<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; How does a boot
loader know which device is connected. say i have connected the smc
91111 ethernet <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
controller&nbsp;&nbsp; - how does it&nbsp; know it is smc91111
controller.<br>
<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; I think as soon as it
detects the smc91111 controller is connected. it must&nbsp; configure
that - i think the <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; code in drivers/smc91111.c must be executed.<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
What will happen if there are 2 ethernet controllers in the board. how
u-boot responds to this.<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
However, i am not following the code given in smc91111.c i really dont
know what it is doing ?.<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i have the
data sheets with me and going thru it. i must admit i am totally
confused.<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Does
anybody know what constitues configuring a ethernet controller and
what&nbsp; the code does ?.<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i would
request you to kindly let me the flow in u-boot. from startup to
configuring ind. devices.<br>
<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Any description is available in this matter will be very useful. <br>
<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Any pointers in this matter is highly appreciated.<br>
<br>
<br>
&nbsp;&nbsp;&nbsp; Thanks,<br>
<br>
<br>
&nbsp;&nbsp; Regards,<br>
&nbsp;&nbsp;&nbsp;&nbsp; Ram<br>
 &nbsp;&nbsp;&nbsp; <br>