Re: RFC: Make ethernet phy mode RMII the default

Uwe Bonnes <bon-1JbLm1bU5j5ZIx36JBfelj3+ndqKAYMe9FMPySWZwLkb1SvskN2V4Q@public.gmane.org>
Newsgroups gmane.comp.hardware.microcontrollers.ethernut
Message-ID <[email protected]>
Hello,

This mails now is sent with intend...

>>>>> "Ole" == Ole Reinhardt <ole.reinhardt-L1vi/[email protected]> writes:

    Ole> Hi Uwe, in most designs, we normaly use RMII mode anyway, because
    Ole> it needs less connections.

    Ole> AFAIK MII mode is only needed for some AT91 platforms. So I would
    Ole> suggest to make RMII mode the default for most platforms and keep
    Ole> MII as default only for those AT91 drivers. What do you think?


This sounds like a good idea, but I have problems to implement.

How I would like the logic to be:

- for any arch, if "PHY_MODE_MII" is defined in the .conf file,
  PHY_MODE_MII should be provided and should be defined.
- for any arch, if "PHY_MODE_RMII" is defined in the .conf file,
  PHY_MODE_MII should not be provided and should not be defined.
- For AT91, with neither "PHY_MODE_RMII" nor "PHY_MODE_MII" in the conf file,
  "PHY_MODE_MII" should be provided and be defined.
- For all other archs, with neither "PHY_MODE_RMII" nor "PHY_MODE_MII" in
  the conf file, "PHY_MODE_MII" should not be provided and not be defined.

A "PHY_MODE_MII" provided will present the user the MII pin selection
in the configurator. Otherwise the MII-only pins are greyed out.
A "PHY_MODE_MII" defined will switch to MII mode in the code.

Any other implementation ideas welcome.

Bye

-- 
Uwe Bonnes                bon-1JbLm1bU5j5ZIx36JBfelj3+ndqKAYMe9FMPySWZwLkb1SvskN2V4Q@public.gmane.org

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.