1 #include <linux/init.h>
2 #include <linux/module.h>
3 #include <linux/types.h>
4 #include <linux/string.h>
5 #include <linux/mtd/physmap.h>
6 #include <linux/kernel.h>
7 #include <linux/reboot.h>
8 #include <linux/platform_device.h>
9 #include <linux/leds.h>
10 #include <linux/etherdevice.h>
11 #include <linux/reboot.h>
12 #include <linux/time.h>
14 #include <linux/gpio.h>
17 #include <ifxmips_prom.h>
19 #include "arcaydian.h"
21 static int ifxmips_brn
= 0;
24 ifxmix_detect_brn_block(void)
26 unsigned char temp
[8];
28 (void *)KSEG1ADDR(IFXMIPS_FLASH_START
+ 0x800000 - 0x10000), 8);
29 if (!memcmp(temp
, "BRN-BOOT", 8))
35 ifxmips_find_brn_mac(unsigned char *ifxmips_ethaddr
)
39 memcpy_fromio(ifxmips_ethaddr
,
40 (void *)KSEG1ADDR(IFXMIPS_FLASH_START
+
41 0x800000 - 0x10000 + 0x16), 6);
42 return is_valid_ether_addr(ifxmips_ethaddr
);
46 ifxmips_has_brn_block(void)
50 EXPORT_SYMBOL(ifxmips_has_brn_block
);