diff mbox

[U-Boot,v2,6/6] pcie-layerscape: Initialize pci-lut for NXP chasis-2 socs

Message ID 1490164590-5907-6-git-send-email-Bharat.Bhushan@nxp.com
State Accepted
Delegated to: York Sun
Headers show

Commit Message

Bharat Bhushan March 22, 2017, 6:36 a.m. UTC
From: Bharat Bhushan <bharat.bhushan@nxp.com>

Layerscape Chasis-2 also uses same PCIe controller
as used in Chasis-3 and have similar PCI-Lut.

We need to initialize the pcie-lut for Chasis-2 also
as in Chasis-3.

Signed-off-by: Bharat Bhushan <bharat.bhushan@nxp.com>
---
 drivers/pci/pcie_layerscape_fixup.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

York Sun March 28, 2017, 6 p.m. UTC | #1
On 03/21/2017 11:38 PM, Bharat Bhushan wrote:
> From: Bharat Bhushan <bharat.bhushan@nxp.com>
>
> Layerscape Chasis-2 also uses same PCIe controller
> as used in Chasis-3 and have similar PCI-Lut.
>
> We need to initialize the pcie-lut for Chasis-2 also
> as in Chasis-3.
>
> Signed-off-by: Bharat Bhushan <bharat.bhushan@nxp.com>
> ---

Minor adjustment in commit message. Applied to fsl-qoriq master, 
awaiting upstream. Thanks.

York
diff mbox

Patch

diff --git a/drivers/pci/pcie_layerscape_fixup.c b/drivers/pci/pcie_layerscape_fixup.c
index 19ede2f..8f8f6b6 100644
--- a/drivers/pci/pcie_layerscape_fixup.c
+++ b/drivers/pci/pcie_layerscape_fixup.c
@@ -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.
  */
@@ -175,7 +175,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
 }