]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
pcie-layerscape: Initialize pci-lut for NXP chasis-2 socs
authorBharat Bhushan <bharat.bhushan@nxp.com>
Wed, 22 Mar 2017 06:36:30 +0000 (12:06 +0530)
committerYork Sun <york.sun@nxp.com>
Tue, 28 Mar 2017 17:52:41 +0000 (10:52 -0700)
Layerscape Chasis-2 also uses same PCIe controller as Chasis-3
and have similar PCI-Lut.

Signed-off-by: Bharat Bhushan <bharat.bhushan@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
drivers/pci/pcie_layerscape_fixup.c

index 64e461eabc51a4fdf9cdce1ff2b7ad4c7a1008e2..d7591bcff02fe61d25c6bd04a1c1e287913bc49f 100644 (file)
@@ -15,7 +15,7 @@
 #include <fdt_support.h>
 #include "pcie_layerscape.h"
 
-#ifdef CONFIG_FSL_LSCH3
+#if defined(CONFIG_FSL_LSCH3) || defined(CONFIG_FSL_LSCH2)
 /*
  * Return next available LUT index.
  */
@@ -188,7 +188,7 @@ void ft_pci_setup(void *blob, bd_t *bd)
        list_for_each_entry(pcie, &ls_pcie_list, list)
                ft_pcie_ls_setup(blob, pcie);
 
-#ifdef CONFIG_FSL_LSCH3
+#if defined(CONFIG_FSL_LSCH3) || defined(CONFIG_FSL_LSCH2)
        fdt_fixup_pcie(blob);
 #endif
 }