[U-Boot] [PATCH 06/11] drivers: net: cpsw: add support for reading mac address from efuse

Tom Rini trini at konsulko.com
Tue Apr 12 16:51:20 CEST 2016


On Tue, Apr 12, 2016 at 09:54:24AM +0530, Mugunthan V N wrote:
> On Monday 11 April 2016 08:31 PM, Tom Rini wrote:
> > On Thu, Apr 07, 2016 at 08:47:05PM +0530, Mugunthan V N wrote:
> > 
> >> Different TI platforms has to read with different combination to
> >> get the mac address from efuse. So add support to read mac address
> >> based on machine/device compatibles.
> >>
> >> The code is taken from Linux drivers/net/ethernet/ti/cpsw-common.c
> >> done by Tony Lindgren.
> >>
> >> Signed-off-by: Mugunthan V N <mugunthanvnm at ti.com>
> > 
> > ... but we don't do anything with the half dozen copies of that code
> > that we already have in the tree and it needs to also take care of
> > setting ethaddr.
> > 
> 
> The file is just a copy of the file from Kernel and modified header file
> inclusions and defines as per u-boot requirement. Kept the functions
> intact so that later patches from Kernel can be pulled to u-boot or
> vice-versa when new SoC is brought up.
> 
> Driver has to update the pdata->enetaddr, it will be set to env in eth
> uclass driver post probe function.

Ah, OK.  So we'll be able to remove the board/ versions and such after
we move it all to DM, I can accept that, thanks.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160412/60513c7b/attachment.sig>


More information about the U-Boot mailing list