summaryrefslogtreecommitdiff
path: root/board/denx
diff options
context:
space:
mode:
authorFabio Estevam <festevam@gmail.com>2011-12-20 05:46:31 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-01-16 08:40:09 +0100
commitbe252b654a018cd9f513b0f2a5da4855a209c40c (patch)
treed9314c6c7e5bc9e0c426f0996abc3cb2578d2d16 /board/denx
parent3c057897e9873fb95bfe6eae5e483d724670a288 (diff)
downloadu-boot-imx-be252b654a018cd9f513b0f2a5da4855a209c40c.zip
u-boot-imx-be252b654a018cd9f513b0f2a5da4855a209c40c.tar.gz
u-boot-imx-be252b654a018cd9f513b0f2a5da4855a209c40c.tar.bz2
net: imx: Add multi-FEC support for imx_get_mac_from_fuse
Add multi-FEC support for imx_get_mac_from_fuse by passing dev_id as a parameter. This feature is important on mx28 SoC for example that has two FEC ports. Cc: Ben Warren <biggerbadderben@gmail.com> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Acked-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'board/denx')
-rw-r--r--board/denx/m28evk/m28evk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/denx/m28evk/m28evk.c b/board/denx/m28evk/m28evk.c
index fcee046..a0fabc0 100644
--- a/board/denx/m28evk/m28evk.c
+++ b/board/denx/m28evk/m28evk.c
@@ -181,7 +181,7 @@ int board_eth_init(bd_t *bis)
#ifdef CONFIG_M28_FEC_MAC_IN_OCOTP
#define MXS_OCOTP_MAX_TIMEOUT 1000000
-void imx_get_mac_from_fuse(char *mac)
+void imx_get_mac_from_fuse(int dev_id, char *mac)
{
struct mx28_ocotp_regs *ocotp_regs =
(struct mx28_ocotp_regs *)MXS_OCOTP_BASE;
@@ -207,7 +207,7 @@ void imx_get_mac_from_fuse(char *mac)
mac[5] = data & 0xff;
}
#else
-void imx_get_mac_from_fuse(char *mac)
+void imx_get_mac_from_fuse(int dev_id, char *mac)
{
memset(mac, 0, 6);
}