Пример #1
0
__init void ap94_pci_init(u8 *cal_data0, u8 *mac_addr0,
			  u8 *cal_data1, u8 *mac_addr1)
{
	if (cal_data0)
		memcpy(ap9x_wmac0_data.eeprom_data, cal_data0,
		       sizeof(ap9x_wmac0_data.eeprom_data));

	if (cal_data1)
		memcpy(ap9x_wmac1_data.eeprom_data, cal_data1,
		       sizeof(ap9x_wmac1_data.eeprom_data));

	if (mac_addr0) {
		memcpy(ap9x_wmac0_mac, mac_addr0, sizeof(ap9x_wmac0_mac));
		ap9x_wmac0_data.macaddr = ap9x_wmac0_mac;
	}

	if (mac_addr1) {
		memcpy(ap9x_wmac1_mac, mac_addr1, sizeof(ap9x_wmac1_mac));
		ap9x_wmac1_data.macaddr = ap9x_wmac1_mac;
	}

	ath79_pci_set_plat_dev_init(ap94_pci_plat_dev_init);
	ath79_register_pci();

	pci_enable_ath9k_fixup(17, ap9x_wmac0_data.eeprom_data);
	pci_enable_ath9k_fixup(18, ap9x_wmac1_data.eeprom_data);
}
Пример #2
0
void __init ap94_pci_init(u8 *cal_data0, u8 *mac_addr0,
                          u8 *cal_data1, u8 *mac_addr1)
{
    if (cal_data0)
        memcpy(ap94_wmac0_data.eeprom_data, cal_data0,
               sizeof(ap94_wmac0_data.eeprom_data));

    if (cal_data1)
        memcpy(ap94_wmac1_data.eeprom_data, cal_data1,
               sizeof(ap94_wmac1_data.eeprom_data));

    if (mac_addr0) {
        memcpy(ap94_wmac0_mac, mac_addr0, sizeof(ap94_wmac0_mac));
        ap94_wmac0_data.macaddr = ap94_wmac0_mac;
    }

    if (mac_addr1) {
        memcpy(ap94_wmac1_mac, mac_addr1, sizeof(ap94_wmac1_mac));
        ap94_wmac1_data.macaddr = ap94_wmac1_mac;
    }

    ar71xx_pci_plat_dev_init = ap94_pci_plat_dev_init;
    ar71xx_pci_init(ARRAY_SIZE(ap94_pci_irqs), ap94_pci_irqs);

    pci_enable_ath9k_fixup(17, ap94_wmac0_data.eeprom_data);
    pci_enable_ath9k_fixup(18, ap94_wmac1_data.eeprom_data);
}
Пример #3
0
__init void ap91_pci_init(u8 *cal_data, u8 *mac_addr)
{
	if (cal_data)
		memcpy(ap9x_wmac0_data.eeprom_data, cal_data,
		       sizeof(ap9x_wmac0_data.eeprom_data));

	if (mac_addr) {
		memcpy(ap9x_wmac0_mac, mac_addr, sizeof(ap9x_wmac0_mac));
		ap9x_wmac0_data.macaddr = ap9x_wmac0_mac;
	}

    pci_enable_ath9k_fixup(0, ap9x_wmac0_data.eeprom_data);

	ath79_pci_set_plat_dev_init(ap91_pci_plat_dev_init);
	ath79_register_pci();
}
Пример #4
0
void __init ap91_pci_init(u8 *cal_data, u8 *mac_addr)
{
#ifndef CONFIG_ARCHERC7
	if (cal_data)
		memcpy(wmac_data.eeprom_data, cal_data, sizeof(wmac_data.eeprom_data));

	if (mac_addr) {
		memcpy(ap91_wmac_mac, mac_addr, sizeof(ap91_wmac_mac));
		wmac_data.macaddr = ap91_wmac_mac;
	}

	ar71xx_pci_plat_dev_init = ap91_pci_plat_dev_init;
	pci_enable_ath9k_fixup(0, wmac_data.eeprom_data);
#endif
	ar71xx_pci_init();
#ifdef CONFIG_MTD_NAND_ATH
	pcibios_init();
#endif
}