1 --- a/arch/mips/ath79/prom.c
2 +++ b/arch/mips/ath79/prom.c
5 #include <asm/bootinfo.h>
6 #include <asm/addrspace.h>
7 +#include <asm/fw/myloader/myloader.h>
11 @@ -69,6 +70,34 @@ static const char * __init ath79_prom_fi
15 +static int __init ath79_prom_init_myloader(void)
17 + struct myloader_info *mylo;
21 + mylo = myloader_get_info();
25 + switch (mylo->did) {
26 + case DEVID_COMPEX_WP543:
27 + ath79_prom_append_cmdline("board", "WP543");
30 + pr_warn("prom: unknown device id: %x\n", mylo->did);
34 + mac = mylo->macs[0];
35 + snprintf(mac_buf, sizeof(mac_buf), "%02x:%02x:%02x:%02x:%02x:%02x",
36 + mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
38 + ath79_prom_append_cmdline("ethaddr", mac_buf);
43 static __init void ath79_prom_init_cmdline(int argc, char **argv)
46 @@ -88,6 +117,9 @@ void __init prom_init(void)
50 + if (ath79_prom_init_myloader())
53 ath79_prom_init_cmdline(fw_arg0, (char **)fw_arg1);
55 envp = (char **)fw_arg2;