#endif /* __BOARD_COMMON_H */
--- /dev/null
+++ b/arch/mips/bcm63xx/boards/board_livebox.c
-@@ -0,0 +1,153 @@
+@@ -0,0 +1,158 @@
+/*
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+/*
+ * register & return a new board mac address
+ */
-+static int livebox_get_mac_address(u8 *mac)
++static int livebox_get_mac_address(u8 mac[ETH_ALEN])
+{
+ u8 *p;
+ int count;
++ void __iomem *volatile mmio;
+
-+ memcpy(mac, (u8 *)0xBEBFF377, ETH_ALEN);
++ mmio = ioremap(0x1ebff377, 0x8);
++ if (!mmio)
++ return -EIO;
++ memcpy_fromio(mac, mmio, ETH_ALEN);
++ iounmap(mmio);
+
+ p = mac + ETH_ALEN - 1;
+ count = mac_addr_used;
#endif /* __BOARD_COMMON_H */
--- /dev/null
+++ b/arch/mips/bcm63xx/boards/board_livebox.c
-@@ -0,0 +1,153 @@
+@@ -0,0 +1,158 @@
+/*
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+/*
+ * register & return a new board mac address
+ */
-+static int livebox_get_mac_address(u8 *mac)
++static int livebox_get_mac_address(u8 mac[ETH_ALEN])
+{
+ u8 *p;
+ int count;
++ void __iomem *volatile mmio;
+
-+ memcpy(mac, (u8 *)0xBEBFF377, ETH_ALEN);
++ mmio = ioremap(0x1ebff377, 0x8);
++ if (!mmio)
++ return -EIO;
++ memcpy_fromio(mac, mmio, ETH_ALEN);
++ iounmap(mmio);
+
+ p = mac + ETH_ALEN - 1;
+ count = mac_addr_used;