public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] MII / RMII
@ 2007-11-29 18:51 Guennadi Liakhovetski
  2007-11-29 20:31 ` Ben Warren
  2007-11-29 22:25 ` Ulf Samuelsson
  0 siblings, 2 replies; 9+ messages in thread
From: Guennadi Liakhovetski @ 2007-11-29 18:51 UTC (permalink / raw)
  To: u-boot

Hi,

1. Does it make sense at all to define CONFIG_RMII without defining 
CONFIG_MII? The question is meant not really theoretical as in what 
meaning RMII has, rather how the macro CONFIG_RMII is supposed to be used? 
For example, tests like

#if defined(CONFIG_MII) && defined(CONFIG_RMII)

isn't checking for CONFIG_MII redundant?

2. cpu/at32ap/at32ap7000/gpio.c also tests CONFIG_RMII. at32ap is an AVR32 
CPU and this macro is only defined in a few MPC8XX configurations, so, 
this test doesn't seem to make much sense in the current tree.

3. drivers/qe/uec_phy.c tests CONFIG_RMII_MODE, which doesn't occur 
anywhere else in the tree. The driver is enabled in some MPC85xx and 
MPC83xx configs.

4. drivers/macb.c tests for "RMII or MII mode" by jest checking

#ifdef CONFIG_RMII
...
#else
...
#endif

i.e., not for

#elif defined CONFIG_MII

This driver is only enabled in include/configs/atstk1002.h, which is also 
an AVR32 config, and it neither defines MII nor RMII.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.

DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de

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

end of thread, other threads:[~2008-01-08 16:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-29 18:51 [U-Boot-Users] MII / RMII Guennadi Liakhovetski
2007-11-29 20:31 ` Ben Warren
2007-11-29 22:25   ` Haavard Skinnemoen
2007-11-29 22:25 ` Ulf Samuelsson
2007-11-29 22:55   ` Ben Warren
2007-11-29 23:45     ` Ulf Samuelsson
2008-01-08  1:35   ` Andy Fleming
2008-01-08  4:43     ` Stefan Roese
2008-01-08 16:27       ` Ben Warren

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