[U-Boot] [PATCH v3] TI: DaVinci DM365: Enabling network Support on DM365 EVM
Paulraj, Sandeep
s-paulraj at ti.com
Tue Sep 29 19:39:23 CEST 2009
>
> Hi Sandeep,
>
> s-paulraj at ti.com wrote:
> > From: Sandeep Paulraj <s-paulraj at ti.com>
> >
> > This patch enables EMAC on the DM365 EVM.
> >
> > Signed-off-by: Sandeep Paulraj <s-paulraj at ti.com>
> > ---
> >
> <snip>
> > + /* Read Ethernet MAC address from EEPROM */
> > + if (dvevm_read_mac_address(eeprom_enetaddr))
> > + dv_configure_mac_address(eeprom_enetaddr);
> > +
> >
> You should get rid of this function (dv_configure_mac_address), as it
> duplicates logic already present in net/eth.c, albeit in a different
> order. Mike Frysinger has invested a lot of effort in cleaning this up
> (and documenting it too). The correct behavior is as follows:
>
> 1. davinci_emac_initialize() should read programmed MAC address from ROM
> and stuff it into dev->enetaddr
> 2. eth_initialize() (in net/eth.c) reads from the environment and
> compares to the value in dev->enetaddr, warning on mismatch.
I will take a look at this as I have not followed this discussion.
I know that the NET_MULTI updates broke DM9000 and EMAC on DaVinci SOC s which I fixed
I will post follow up patches after studying Mike updates.
Getting rid of this as you suggest involves multiple boards so I have to test as well.
And besides I have to clean up the davinci EMAC driver as well because there are other DaVinci SOCs which will use that driver albeit with some updates.
Updates for DaVinci EMAC are going to be sent soon. The header for this patch also says that.
> > + davinci_emac_initialize();
> > +
> > + return 0;
> > +}
> > +#endif
> > +
> > #ifdef CONFIG_NAND_DAVINCI
> > static void nand_dm365evm_select_chip(struct mtd_info *mtd, int chip)
> > {
> >
> regards,
> Ben
Thanks,
Sandeep
More information about the U-Boot
mailing list