[U-Boot] 83xx, uec: adjust enet_interface settings on the fly.

Kim Phillips kim.phillips at freescale.com
Fri Jan 8 01:59:44 CET 2010


On Thu, 7 Jan 2010 09:01:32 +0100
Heiko Schocher <hs at denx.de> wrote:

>  static void adjust_link(struct eth_device *dev)
>  {
>  	uec_private_t		*uec = (uec_private_t *)dev->priv;
> @@ -547,6 +617,8 @@ static void adjust_link(struct eth_device *dev)
>  						dev->name, mii_info->speed);
>  					break;
>  				}
> +			} else if (uec->uec_info->uf_info.eth_type == FAST_ETH) {
> +				adjust_fast_enet_interface(mii_info->speed, dev);
>  			}

did you make any effort to refactor this into the existing eth_type ==
GIGA_ETH code?  I'm not sure why that code became conditional in commit
24c3aca3f1358b113d3215adb5433b156e99f72b "mpc83xx: Add support for the
MPC832XEMDS board" in the first place - Dave?

Kim


More information about the U-Boot mailing list