aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ixp2000/pm3386.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ixp2000/pm3386.c')
-rw-r--r--drivers/net/ixp2000/pm3386.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/ixp2000/pm3386.c b/drivers/net/ixp2000/pm3386.c
index 267b6bd5f79..870b486f5de 100644
--- a/drivers/net/ixp2000/pm3386.c
+++ b/drivers/net/ixp2000/pm3386.c
@@ -215,6 +215,13 @@ void pm3386_get_mac(int port, u8 *mac)
mac[5] = (temp >> 8) & 0xff;
}
+void pm3386_set_mac(int port, u8 *mac)
+{
+ pm3386_port_reg_write(port, 0x308, 0x100, (mac[1] << 8) | mac[0]);
+ pm3386_port_reg_write(port, 0x309, 0x100, (mac[3] << 8) | mac[2]);
+ pm3386_port_reg_write(port, 0x30a, 0x100, (mac[5] << 8) | mac[4]);
+}
+
static u32 pm3386_get_stat(int port, u16 base)
{
u32 value;