powerpc/85xx: use CONFIG_SYS_FSL_PCIE_COMPAT macro when setting the PCI LIODNs
PATCH 1/1 powerpc/85xx: use CONFIG_SYS_FSL_PCIE_COMPAT macro when setting the PCI LIODNs
The SET_PCI_LIODN() macro takes a compatible property string as a parameter, so that it knows which PCI device tree node to look for. The calls to these macros are using a hard-coded string, but we already have the CONFIG_SYS_FSL_PCIE_COMPAT macro which contains the same string, so we should use that.
Signed-off-by Timur Tabi <[email protected]>
---
We don't update p3060_ids.c because support for that SOC is going away.
arch/powerpc/cpu/mpc85xx/p2041_ids.c | 6 +++--- arch/powerpc/cpu/mpc85xx/p3041_ids.c | 8 ++++---- arch/powerpc/cpu/mpc85xx/p4080_ids.c | 6 +++--- arch/powerpc/cpu/mpc85xx/p5020_ids.c | 8 ++++---- 4 files changed, 14 insertions(+), 14 deletions(-)
arch/powerpc/cpu/mpc85xx/p2041_ids.c +3 -3
@@ -62,9 +62,9 @@ struct liodn_id_table liodn_tbl[] = {SET_SATA_LIODN (1 ,127 ),SET_SATA_LIODN (2 ,128 ), -SET_PCI_LIODN ("fsl,qoriq-pcie-v2.2" ,1 ,193 ), -SET_PCI_LIODN ("fsl,qoriq-pcie-v2.2" ,2 ,194 ), -SET_PCI_LIODN ("fsl,qoriq-pcie-v2.2" ,3 ,195 ), +SET_PCI_LIODN (CONFIG_SYS_FSL_PCIE_COMPAT ,1 ,193 ), +SET_PCI_LIODN (CONFIG_SYS_FSL_PCIE_COMPAT ,2 ,194 ), +SET_PCI_LIODN (CONFIG_SYS_FSL_PCIE_COMPAT ,3 ,195 ),SET_DMA_LIODN (1 ,197 ), SET_DMA_LIODN(2, 198),
arch/powerpc/cpu/mpc85xx/p3041_ids.c +4 -4
@@ -62,10 +62,10 @@ struct liodn_id_table liodn_tbl[] = {SET_SATA_LIODN (1 ,127 ),SET_SATA_LIODN (2 ,128 ), -SET_PCI_LIODN ("fsl,qoriq-pcie-v2.2" ,1 ,193 ), -SET_PCI_LIODN ("fsl,qoriq-pcie-v2.2" ,2 ,194 ), -SET_PCI_LIODN ("fsl,qoriq-pcie-v2.2" ,3 ,195 ), -SET_PCI_LIODN ("fsl,qoriq-pcie-v2.2" ,4 ,196 ), +SET_PCI_LIODN (CONFIG_SYS_FSL_PCIE_COMPAT ,1 ,193 ), +SET_PCI_LIODN (CONFIG_SYS_FSL_PCIE_COMPAT ,2 ,194 ), +SET_PCI_LIODN (CONFIG_SYS_FSL_PCIE_COMPAT ,3 ,195 ), +SET_PCI_LIODN (CONFIG_SYS_FSL_PCIE_COMPAT ,4 ,196 ),SET_DMA_LIODN (1 ,197 ), SET_DMA_LIODN(2, 198),
arch/powerpc/cpu/mpc85xx/p4080_ids.c +3 -3
@@ -52,9 +52,9 @@ struct liodn_id_table liodn_tbl[] = {SET_SDHC_LIODN (1 ,156 ), -SET_PCI_LIODN ("fsl,p4080-pcie" ,1 ,193 ), -SET_PCI_LIODN ("fsl,p4080-pcie" ,2 ,194 ), -SET_PCI_LIODN ("fsl,p4080-pcie" ,3 ,195 ), +SET_PCI_LIODN (CONFIG_SYS_FSL_PCIE_COMPAT ,1 ,193 ), +SET_PCI_LIODN (CONFIG_SYS_FSL_PCIE_COMPAT ,2 ,194 ), +SET_PCI_LIODN (CONFIG_SYS_FSL_PCIE_COMPAT ,3 ,195 ),SET_DMA_LIODN (1 ,196 ), SET_DMA_LIODN(2, 197),
arch/powerpc/cpu/mpc85xx/p5020_ids.c +4 -4
@@ -62,10 +62,10 @@ struct liodn_id_table liodn_tbl[] = {SET_SATA_LIODN (1 ,127 ),SET_SATA_LIODN (2 ,128 ), -SET_PCI_LIODN ("fsl,qoriq-pcie-v2.2" ,1 ,193 ), -SET_PCI_LIODN ("fsl,qoriq-pcie-v2.2" ,2 ,194 ), -SET_PCI_LIODN ("fsl,qoriq-pcie-v2.2" ,3 ,195 ), -SET_PCI_LIODN ("fsl,qoriq-pcie-v2.2" ,4 ,196 ), +SET_PCI_LIODN (CONFIG_SYS_FSL_PCIE_COMPAT ,1 ,193 ), +SET_PCI_LIODN (CONFIG_SYS_FSL_PCIE_COMPAT ,2 ,194 ), +SET_PCI_LIODN (CONFIG_SYS_FSL_PCIE_COMPAT ,3 ,195 ), +SET_PCI_LIODN (CONFIG_SYS_FSL_PCIE_COMPAT ,4 ,196 ),SET_DMA_LIODN (1 ,197 ), SET_DMA_LIODN(2, 198),
Signature · 1 line
1.7.3.4