IBM Akebono: Add the Akebono platform
[cascardo/linux.git] / arch / powerpc / sysdev / ppc4xx_pci.c
index 4914fd3..5a4f61e 100644 (file)
@@ -1440,7 +1440,8 @@ static int __init ppc4xx_pciex_check_core_init(struct device_node *np)
                ppc4xx_pciex_hwops = &ppc405ex_pcie_hwops;
 #endif
 #ifdef CONFIG_476FPE
-       if (of_device_is_compatible(np, "ibm,plb-pciex-476fpe"))
+       if (of_device_is_compatible(np, "ibm,plb-pciex-476fpe")
+               || of_device_is_compatible(np, "ibm,plb-pciex-476gtr"))
                ppc4xx_pciex_hwops = &ppc_476fpe_pcie_hwops;
 #endif
        if (ppc4xx_pciex_hwops == NULL) {
@@ -1751,7 +1752,10 @@ static int __init ppc4xx_setup_one_pciex_POM(struct ppc4xx_pciex_port    *port,
                        dcr_write(port->dcrs, DCRO_PEGPL_OMR1MSKL,
                                sa | DCRO_PEGPL_460SX_OMR1MSKL_UOT
                                        | DCRO_PEGPL_OMRxMSKL_VAL);
-               else if (of_device_is_compatible(port->node, "ibm,plb-pciex-476fpe"))
+               else if (of_device_is_compatible(
+                               port->node, "ibm,plb-pciex-476fpe") ||
+                       of_device_is_compatible(
+                               port->node, "ibm,plb-pciex-476gtr"))
                        dcr_write(port->dcrs, DCRO_PEGPL_OMR1MSKL,
                                sa | DCRO_PEGPL_476FPE_OMR1MSKL_UOT
                                        | DCRO_PEGPL_OMRxMSKL_VAL);
@@ -1881,7 +1885,10 @@ static void __init ppc4xx_configure_pciex_PIMs(struct ppc4xx_pciex_port *port,
                        sa |= PCI_BASE_ADDRESS_MEM_PREFETCH;
 
                if (of_device_is_compatible(port->node, "ibm,plb-pciex-460sx") ||
-                   of_device_is_compatible(port->node, "ibm,plb-pciex-476fpe"))
+                   of_device_is_compatible(
+                           port->node, "ibm,plb-pciex-476fpe") ||
+                   of_device_is_compatible(
+                           port->node, "ibm,plb-pciex-476gtr"))
                        sa |= PCI_BASE_ADDRESS_MEM_TYPE_64;
 
                out_le32(mbase + PECFG_BAR0HMPA, RES_TO_U32_HIGH(sa));