summaryrefslogtreecommitdiff
path: root/src/southbridge
diff options
context:
space:
mode:
authorarch import user (historical) <svn@openbios.org>2005-07-06 17:14:08 +0000
committerarch import user (historical) <svn@openbios.org>2005-07-06 17:14:08 +0000
commit056d6195d8b3bf219d7f3e3207c5ffec145290cf (patch)
tree0d62de5406df847ab76915263def2f40607d3e19 /src/southbridge
parenta07e6ded1c6270d4bb768cc3d6abd7db1990f52e (diff)
downloadcoreboot-056d6195d8b3bf219d7f3e3207c5ffec145290cf.tar.xz
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
Diffstat (limited to 'src/southbridge')
-rw-r--r--src/southbridge/nvidia/ck804/ck804_nic.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/southbridge/nvidia/ck804/ck804_nic.c b/src/southbridge/nvidia/ck804/ck804_nic.c
index bb03fa9928..3ce3041aba 100644
--- a/src/southbridge/nvidia/ck804/ck804_nic.c
+++ b/src/southbridge/nvidia/ck804/ck804_nic.c
@@ -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++;