]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Fix RTL8139 in big endian
authorJin Zhengxiong-R64188 <Jason.Jin@freescale.com>
Tue, 27 Jun 2006 10:12:10 +0000 (18:12 +0800)
committerJon Loeliger <jdl@freescale.com>
Tue, 27 Jun 2006 15:29:32 +0000 (10:29 -0500)
signed-off-by: Jason Jin <Jason.Jin@freescale.com>
signed-off-by: Wei Zhang <wei.zhang@freescale.com>

drivers/rtl8139.c
include/configs/MPC8641HPCN.h

index a95f84e62585138f46cfffbe0a5c298ad1f87718..848d1d177aeee525a455cd9d2e20dbd5cb334060 100644 (file)
@@ -196,6 +196,7 @@ static void rtl_disable(struct eth_device *dev);
 
 static struct pci_device_id supported[] = {
        {PCI_VENDOR_ID_REALTEK, PCI_DEVICE_ID_REALTEK_8139},
+       {0x1186, 0x1300},
        {}
 };
 
index 4453171d45ae2ed2abaac69c6b3a67ba9d9f551f..b0897695a7c4b3d9019dde20dfafb4cedcdf84ce 100644 (file)
 #define CFG_PCI_MEMORY_SIZE     0x80000000
 
 /* For RTL8139 */
+#define KSEG1ADDR(x)           ({u32 _x=le32_to_cpu(*(u32 *)(x)); (&_x);})
 #define _IO_BASE                0x00000000
 
 #define CFG_PCI2_MEM_BASE      0xa0000000