Skip to content
Snippets Groups Projects
Commit 33e68354 authored by Laurentiu TUDOR's avatar Laurentiu TUDOR Committed by Kumar Gala
Browse files

powerpc/85xx: Fix setting of LIODN prop in PCIe nodes on P3041/P5020


We utilize the compatible string to find the node to add fsl,liodn
property to.  However P3041 & P5020 don't have "fsl,p4080-pcie"
compatible for their PCIe controllers as they aren't backwards compatible.

Allow the macro's to specify the PCIe compatible to use to allow SoC
uniqueness.  On P3041 & P5020 we utilize "fsl,qoriq-pcie-v2.2" for the
PCIe controllers.

Signed-off-by: default avatarLaurentiu TUDOR <Laurentiu.Tudor@freescale.com>
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 9899ac19
No related branches found
No related tags found
No related merge requests found
/* /*
* Copyright 2010 Freescale Semiconductor, Inc. * Copyright 2010-2011 Freescale Semiconductor, Inc.
* *
* See file CREDITS for list of people who contributed to this * See file CREDITS for list of people who contributed to this
* project. * project.
...@@ -52,10 +52,10 @@ struct liodn_id_table liodn_tbl[] = { ...@@ -52,10 +52,10 @@ struct liodn_id_table liodn_tbl[] = {
SET_SATA_LIODN(1, 127), SET_SATA_LIODN(1, 127),
SET_SATA_LIODN(2, 128), SET_SATA_LIODN(2, 128),
SET_PCI_LIODN(1, 193), SET_PCI_LIODN("fsl,qoriq-pcie-v2.2", 1, 193),
SET_PCI_LIODN(2, 194), SET_PCI_LIODN("fsl,qoriq-pcie-v2.2", 2, 194),
SET_PCI_LIODN(3, 195), SET_PCI_LIODN("fsl,qoriq-pcie-v2.2", 3, 195),
SET_PCI_LIODN(4, 196), SET_PCI_LIODN("fsl,qoriq-pcie-v2.2", 4, 196),
SET_DMA_LIODN(1, 197), SET_DMA_LIODN(1, 197),
SET_DMA_LIODN(2, 198), SET_DMA_LIODN(2, 198),
......
/* /*
* Copyright 2010 Freescale Semiconductor, Inc. * Copyright 2010-2011 Freescale Semiconductor, Inc.
* *
* See file CREDITS for list of people who contributed to this * See file CREDITS for list of people who contributed to this
* project. * project.
...@@ -44,9 +44,9 @@ struct liodn_id_table liodn_tbl[] = { ...@@ -44,9 +44,9 @@ struct liodn_id_table liodn_tbl[] = {
SET_SDHC_LIODN(1, 156), SET_SDHC_LIODN(1, 156),
SET_PCI_LIODN(1, 193), SET_PCI_LIODN("fsl,p4080-pcie", 1, 193),
SET_PCI_LIODN(2, 194), SET_PCI_LIODN("fsl,p4080-pcie", 2, 194),
SET_PCI_LIODN(3, 195), SET_PCI_LIODN("fsl,p4080-pcie", 3, 195),
SET_DMA_LIODN(1, 196), SET_DMA_LIODN(1, 196),
SET_DMA_LIODN(2, 197), SET_DMA_LIODN(2, 197),
......
/* /*
* Copyright 2010 Freescale Semiconductor, Inc. * Copyright 2010-2011 Freescale Semiconductor, Inc.
* *
* See file CREDITS for list of people who contributed to this * See file CREDITS for list of people who contributed to this
* project. * project.
...@@ -52,10 +52,10 @@ struct liodn_id_table liodn_tbl[] = { ...@@ -52,10 +52,10 @@ struct liodn_id_table liodn_tbl[] = {
SET_SATA_LIODN(1, 127), SET_SATA_LIODN(1, 127),
SET_SATA_LIODN(2, 128), SET_SATA_LIODN(2, 128),
SET_PCI_LIODN(1, 193), SET_PCI_LIODN("fsl,qoriq-pcie-v2.2", 1, 193),
SET_PCI_LIODN(2, 194), SET_PCI_LIODN("fsl,qoriq-pcie-v2.2", 2, 194),
SET_PCI_LIODN(3, 195), SET_PCI_LIODN("fsl,qoriq-pcie-v2.2", 3, 195),
SET_PCI_LIODN(4, 196), SET_PCI_LIODN("fsl,qoriq-pcie-v2.2", 4, 196),
SET_DMA_LIODN(1, 197), SET_DMA_LIODN(1, 197),
SET_DMA_LIODN(2, 198), SET_DMA_LIODN(2, 198),
......
...@@ -70,8 +70,8 @@ extern void fdt_fixup_liodn(void *blob); ...@@ -70,8 +70,8 @@ extern void fdt_fixup_liodn(void *blob);
SET_GUTS_LIODN("fsl,pq-sata-v2", liodn, sata##sataNum##liodnr,\ SET_GUTS_LIODN("fsl,pq-sata-v2", liodn, sata##sataNum##liodnr,\
CONFIG_SYS_MPC85xx_SATA##sataNum##_OFFSET) CONFIG_SYS_MPC85xx_SATA##sataNum##_OFFSET)
#define SET_PCI_LIODN(pciNum, liodn) \ #define SET_PCI_LIODN(compat, pciNum, liodn) \
SET_GUTS_LIODN("fsl,p4080-pcie", liodn, pex##pciNum##liodnr,\ SET_GUTS_LIODN(compat, liodn, pex##pciNum##liodnr,\
CONFIG_SYS_MPC85xx_PCIE##pciNum##_OFFSET) CONFIG_SYS_MPC85xx_PCIE##pciNum##_OFFSET)
/* reg nodes for DMA start @ 0x300 */ /* reg nodes for DMA start @ 0x300 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment