/* The 'NAS Config' flash partition has an ext2 filesystem which contains a file that has the ethernet MAC address in plain text (format "xx:xx:xx:xx:xx:xx\n").  */
void __init qnap_tsx09_find_mac_addr(u32 mem_base, u32 size)
/* The 'NAS Config' flash partition has an ext2 filesystem which contains a file that has the ethernet MAC address in plain text (format "xx:xx:xx:xx:xx:xx\n").  */
void __init qnap_tsx09_find_mac_addr(u32 mem_base, u32 size)
{
	unsigned long addr;
	for (addr = mem_base; addr < (mem_base + size); addr += 1024) {
		char *nor_page;
		int ret = 0;
		nor_page = ioremap(addr, 1024);
		if (nor_page != NULL) {
			ret = qnap_tsx09_check_mac_addr(nor_page);
			iounmap(nor_page);
		}
		if (ret == 0)
			break;
	}
}