projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SPDX: Convert all of our single license tags to Linux Kernel style
[platform/kernel/u-boot.git]
/
drivers
/
net
/
ldpaa_eth
/
ldpaa_wriop.c
diff --git
a/drivers/net/ldpaa_eth/ldpaa_wriop.c
b/drivers/net/ldpaa_eth/ldpaa_wriop.c
index
f7f26c2
..
0731a79
100644
(file)
--- a/
drivers/net/ldpaa_eth/ldpaa_wriop.c
+++ b/
drivers/net/ldpaa_eth/ldpaa_wriop.c
@@
-1,7
+1,6
@@
+// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2015 Freescale Semiconductor
/*
* Copyright (C) 2015 Freescale Semiconductor
- *
- * SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
*/
#include <common.h>
@@
-37,6
+36,15
@@
void wriop_init_dpmac(int sd, int dpmac_id, int lane_prtcl)
}
}
}
}
+void wriop_init_dpmac_enet_if(int dpmac_id, phy_interface_t enet_if)
+{
+ dpmac_info[dpmac_id].enabled = 1;
+ dpmac_info[dpmac_id].id = dpmac_id;
+ dpmac_info[dpmac_id].phy_addr = -1;
+ dpmac_info[dpmac_id].enet_if = enet_if;
+}
+
+
/*TODO what it do */
static int wriop_dpmac_to_index(int dpmac_id)
{
/*TODO what it do */
static int wriop_dpmac_to_index(int dpmac_id)
{