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

Mugunthan V N mugunthanvnm at ti.com
Tue Apr 12 06:24:24 CEST 2016


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.

Regards
Mugunthan V N


More information about the U-Boot mailing list