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