]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ppc4xx: Set default PCI device ID for 405EP boards
authorMatthias Fuchs <matthias.fuchs@esd.eu>
Wed, 8 Jul 2009 13:31:57 +0000 (15:31 +0200)
committerStefan Roese <sr@denx.de>
Fri, 10 Jul 2009 06:26:11 +0000 (08:26 +0200)
Current code only sets the PCI vendor id to 0x1014 and
leaved device id to 0x0000.

Ths patch ....
a) uses the correct PCI_VENDOR_ID_IBM macro for this
b) sets the default device ID as stated in the UM to 0x0156
   by using PCI_DEVICE_ID_IBM_405GP for this.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu>
Signed-off-by: Stefan Roese <sr@denx.de>
cpu/ppc4xx/4xx_pci.c

index 33dd743aecb1750bd75cd46e873a0a9c5f866cc6..4b5d636bd199b8e99fd96d407662c605e7044c5d 100644 (file)
@@ -337,8 +337,15 @@ void pci_405gp_init(struct pci_controller *hose)
        }
 #endif
 
-#if defined(CONFIG_405EP) /* on ppc405ep vendor id is not set */
-       pci_write_config_word(PCIDEVID_405GP, PCI_VENDOR_ID, 0x1014); /* IBM */
+#if defined(CONFIG_405EP)
+       /*
+        * on ppc405ep vendor/device id is not set
+        * The user manual says 0x1014 (IBM) / 0x0156 (405GP!)
+        * are the correct values.
+        */
+       pci_write_config_word(PCIDEVID_405GP, PCI_VENDOR_ID, PCI_VENDOR_ID_IBM);
+       pci_write_config_word(PCIDEVID_405GP,
+                             PCI_DEVICE_ID, PCI_DEVICE_ID_IBM_405GP);
 #endif
 
        /*