[U-Boot] [PATCH] 85xx/p2020ds: Use is_serdes_configured() to determine of PCIe enabled
Timur Tabi
timur at freescale.com
Wed May 26 22:46:27 CEST 2010
On Fri, May 21, 2010 at 4:17 AM, Kumar Gala <galak at kernel.crashing.org> wrote:
> #ifdef CONFIG_PCIE3
> ft_fsl_pci_setup(blob, "pci0", &pcie3_hose);
> +#else
> + ft_fsl_pci_setup(blob, "pci0", NULL);
> #endif
What is the reason why CONFIG_PCIE3 setups up the pci node called
"pci0"? Is it because CONFIG_SYS_PCIE3_ADDR is the address of the
pci0 node in the p2020ds device tree?
If so, why can't we do this is P2020DS.h:
#define CONFIG_SYS_PCIE1_ADDR (CONFIG_SYS_CCSRBAR+0x8000) /* pci0 */
#define CONFIG_SYS_PCIE2_ADDR (CONFIG_SYS_CCSRBAR+0x9000) /* pci1 */
#define CONFIG_SYS_PCIE3_ADDR (CONFIG_SYS_CCSRBAR+0xa000) /* pci2 */
--
Timur Tabi
Linux kernel developer at Freescale
More information about the U-Boot
mailing list