Lines Matching +full:0 +full:xf8
28 addr += 0x7a; /* offset for flash magic */ in check_radio_magic()
29 return (__raw_readb(addr) == 0x5a) && (__raw_readb(addr + 1) == 0xa5); in check_radio_magic()
34 return __raw_readl(addr) != 0xffffffff; in check_notempty()
49 if (check_radio_magic(addr + 0x1000)) in check_board_data()
51 if (check_radio_magic(addr + 0xf8)) in check_board_data()
61 const void __iomem *begin = limit - 0x1000; in find_board_config()
62 const void __iomem *end = limit - 0x30000; in find_board_config()
64 for (addr = begin; addr >= end; addr -= 0x1000) in find_board_config()
78 * Search forward from Board Configuration data by 0x1000 bytes in find_radio_config()
79 * at a time until we find non-0xffffffff. in find_radio_config()
81 begin = bcfg + 0x1000; in find_radio_config()
83 for (rcfg = begin; rcfg < end; rcfg += 0x1000) in find_radio_config()
88 begin = bcfg + 0xf8; in find_radio_config()
89 end = limit - 0x1000 + 0xf8; in find_radio_config()
90 for (rcfg = begin; rcfg < end; rcfg += 0x1000) in find_radio_config()
107 int broken_boarddata = 0; in ath25_find_config()
141 memcpy_fromio(board_data, bcfg, 0x100); in ath25_find_config()
147 config->reset_config_gpio = 0xffff; in ath25_find_config()
148 config->sys_led_gpio = 0xffff; in ath25_find_config()
150 config->wlan0_mac[0] &= ~0x06; in ath25_find_config()
156 /* Radio config starts 0x100 bytes after board config, regardless in ath25_find_config()
165 radio_data = board_data + 0x100 + ((rcfg - bcfg) & 0xfff); in ath25_find_config()
168 pr_info("Radio config found at offset 0x%x (0x%x)\n", rcfg - bcfg, in ath25_find_config()
173 mac_addr = &radio_data[0x1d * 2]; in ath25_find_config()
181 return 0; in ath25_find_config()
205 write_c0_watchlo0(0); in plat_mem_setup()