]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
armv8: lx2160a: Add FSL_PEX_STREAM_ID_END for LX2160A
authorWasim Khan <wasim.khan@nxp.com>
Fri, 15 Nov 2019 09:23:39 +0000 (09:23 +0000)
committerPriyanka Jain <priyanka.jain@nxp.com>
Thu, 26 Dec 2019 10:30:21 +0000 (16:00 +0530)
Add FSL_PEX_STREAM_ID_END and remove FSL_PEX_STREAM_ID_NUM
for lx2160a.

Signed-off-by: Wasim Khan <wasim.khan@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
arch/arm/include/asm/arch-fsl-layerscape/stream_id_lsch3.h
drivers/pci/pcie_layerscape_gen4_fixup.c

index 01d362d1836517b84360bee67c99252e8349ce48..4c54e3d3d5e7d3eace88924a8f8886cb3831dbca 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0+ */
 /*
- * Copyright 2015-2018 NXP
+ * Copyright 2015-2019 NXP
  * Copyright 2014 Freescale Semiconductor, Inc.
  *
  */
 /* PCI - programmed in PEXn_LUT */
 #define FSL_PEX_STREAM_ID_START                7
 
-#ifdef CONFIG_ARCH_LX2160A
-#define FSL_PEX_STREAM_ID_NUM          (0x100)
-#endif
-
 #if defined(CONFIG_ARCH_LS2080A) || defined(CONFIG_ARCH_LS1028A)
 #define FSL_PEX_STREAM_ID_END          22
 #elif defined(CONFIG_ARCH_LS1088A)
 #define FSL_PEX_STREAM_ID_END          18
+#elif defined(CONFIG_ARCH_LX2160A)
+#define FSL_PEX_STREAM_ID_END          (0x100)
 #endif
 
 
index fe478dbde6392107f0e54f426fe059e7840eb515..b58ddd55cd331a94b73354a14555187259737b39 100644 (file)
@@ -37,7 +37,7 @@ static int ls_pcie_g4_next_streamid(struct ls_pcie_g4 *pcie)
 {
        int stream_id = pcie->stream_id_cur;
 
-       if (stream_id > FSL_PEX_STREAM_ID_NUM)
+       if (stream_id > FSL_PEX_STREAM_ID_END)
                return -EINVAL;
 
        pcie->stream_id_cur++;