++static u16 arv45xx_ath5k_eeprom_data[ATH5K_PLAT_EEP_MAX_WORDS];
++static struct ath5k_platform_data arv45xx_ath5k_platform_data;
++
++static int arv45xx_pci_plat_dev_init(struct pci_dev *dev)
++{
++ dev->dev.platform_data = &arv45xx_ath5k_platform_data;
++ return 0;
++}
++
++void __init
++arv45xx_register_ath5k(void)
++{
++#define ARV45XX_BRN_ATH 0x3f0478
++ int i;
++ unsigned char eeprom_mac[6];
++ static u16 eeprom_data[ATH5K_PLAT_EEP_MAX_WORDS];
++ u32 *p = (u32*)arv45xx_ath5k_eeprom_data;
++
++ memcpy_fromio(eeprom_mac,
++ (void *)KSEG1ADDR(LQ_FLASH_START + ARV45XX_BRN_MAC), 6);
++ eeprom_mac[5]++;
++ memcpy_fromio(arv45xx_ath5k_eeprom_data,
++ (void *)KSEG1ADDR(LQ_FLASH_START + ARV45XX_BRN_ATH), ATH5K_PLAT_EEP_MAX_WORDS);
++ // swap eeprom bytes
++ for (i = 0; i < ATH5K_PLAT_EEP_MAX_WORDS>>1; i++){
++ //arv4518_ath5k_eeprom_data[i] = ((eeprom_data[i]&0xff)<<8)|((eeprom_data[i]&0xff00)>>8);
++ p[i] = ((eeprom_data[(i<<1)+1]&0xff)<<24)|((eeprom_data[(i<<1)+1]&0xff00)<<8)|((eeprom_data[i<<1]&0xff)<<8)|((eeprom_data[i<<1]&0xff00)>>8);
++ if (i == 0xbf>>1){
++ // printk ("regdomain: 0x%x --> 0x%x\n", p[i], (p[i] & 0xffff0000)|0x67);
++ /* regdomain is invalid?? how did original fw convert
++ * value to 0x82d4 ??
++ * for now, force to 0x67 */
++ p[i] &= 0xffff0000;
++ p[i] |= 0x67;
++ }
++ }
++ arv45xx_ath5k_platform_data.eeprom_data = arv45xx_ath5k_eeprom_data;
++ arv45xx_ath5k_platform_data.macaddr = eeprom_mac;
++ lqpci_plat_dev_init = arv45xx_pci_plat_dev_init;
++}
++
++static void __init
++arv3527p_init(void)
++{
++ lq_register_gpio();
++ lq_register_gpio_stp();
++ //lq_register_gpio_leds(arv3527p_leds_gpio, ARRAY_SIZE(arv3527p_leds_gpio));
++ lq_register_asc(0);
++ lq_register_asc(1);
++ lq_register_nor(&arv45xx_flash_data);
++ lq_register_wdt();
++ arv45xx_register_ethernet();
++}
++
++MIPS_MACHINE(LANTIQ_MACH_ARV3527P,
++ "ARV3527P",
++ "ARV3527P - Arcor Easybox 401",
++ arv3527p_init);
++