From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 12 Apr 2016 10:51:20 -0400 Subject: [U-Boot] [PATCH 06/11] drivers: net: cpsw: add support for reading mac address from efuse In-Reply-To: <570C7878.6070706@ti.com> References: <1460042230-15205-1-git-send-email-mugunthanvnm@ti.com> <1460042230-15205-7-git-send-email-mugunthanvnm@ti.com> <20160411150129.GH13577@bill-the-cat> <570C7878.6070706@ti.com> Message-ID: <20160412145120.GA13577@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > > > > ... 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: