Revision: linuxbios@linuxbios.org--devel/freebios--devel--2.0--patch-32
Creator: Yinghai Lu <yhlu@tyan.com> set CK804 nic mac addr in MMIO instead of pci config git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1948 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
a07e6ded1c
commit
056d6195d8
|
@ -82,10 +82,17 @@ static void nic_init(struct device *dev)
|
|||
mac_l = readl(mac_pos) + nic_index;
|
||||
mac_h = readl(mac_pos + 4);
|
||||
}
|
||||
|
||||
#if 1
|
||||
// set that into NIC MMIO
|
||||
#define NvRegMacAddrA 0xA8
|
||||
#define NvRegMacAddrB 0xAC
|
||||
writel(mac_l, base + NvRegMacAddrA);
|
||||
writel(mac_h, base + NvRegMacAddrB);
|
||||
#else
|
||||
// set that into NIC
|
||||
pci_write_config32(dev, 0xa8, mac_l);
|
||||
pci_write_config32(dev, 0xac, mac_h);
|
||||
#endif
|
||||
|
||||
nic_index++;
|
||||
|
||||
|
|
Loading…
Reference in New Issue