diff options
author | York Sun <yorksun@freescale.com> | 2012-10-08 07:44:04 +0000 |
---|---|---|
committer | Andy Fleming <afleming@freescale.com> | 2012-10-22 14:31:14 -0500 |
commit | a1e4318cffb77fa604fb0d51ca09b7cef3555282 (patch) | |
tree | 6ec5bb24bab74e7a02a77d989767dee5899daa0d | |
parent | e4de13e38a24601e057c63f129bc80e127c91f9f (diff) | |
download | u-boot-imx-a1e4318cffb77fa604fb0d51ca09b7cef3555282.zip u-boot-imx-a1e4318cffb77fa604fb0d51ca09b7cef3555282.tar.gz u-boot-imx-a1e4318cffb77fa604fb0d51ca09b7cef3555282.tar.bz2 |
driver/pci: Fix compiling error
Fix compiling error in case CONFIG_SYS_PCIE2_MEM_VIRT or CONFIG_SYS_PCIE3_MEM_VIRT
not defined.
Signed-off-by: York Sun <yorksun@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
-rw-r--r-- | drivers/pci/fsl_pci_init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/pci/fsl_pci_init.c b/drivers/pci/fsl_pci_init.c index 20dabf3..86ccbe7 100644 --- a/drivers/pci/fsl_pci_init.c +++ b/drivers/pci/fsl_pci_init.c @@ -276,14 +276,18 @@ static void fsl_pcie_boot_master_release_slave(int port) release_addr = CONFIG_SYS_PCIE1_MEM_VIRT + CONFIG_SRIO_PCIE_BOOT_BRR_OFFSET; break; +#ifdef CONFIG_SYS_PCIE2_MEM_VIRT case 2: release_addr = CONFIG_SYS_PCIE2_MEM_VIRT + CONFIG_SRIO_PCIE_BOOT_BRR_OFFSET; break; +#endif +#ifdef CONFIG_SYS_PCIE3_MEM_VIRT case 3: release_addr = CONFIG_SYS_PCIE3_MEM_VIRT + CONFIG_SRIO_PCIE_BOOT_BRR_OFFSET; break; +#endif default: release_addr = 0; break; |