[U-Boot] [PATCH] 85xx/p2020ds: Use is_serdes_configured() to determine of PCIe enabled
Timur Tabi
timur at freescale.com
Thu May 27 23:38:45 CEST 2010
On Fri, May 21, 2010 at 4:17 AM, Kumar Gala <galak at kernel.crashing.org> wrote:
> if (pcie_configured && !(devdisr & MPC85xx_DEVDISR_PCIE2)) {
> + set_next_law(CONFIG_SYS_PCIE2_MEM_PHYS, LAW_SIZE_512M,
> + LAW_TRGT_IF_PCIE_2);
> + set_next_law(CONFIG_SYS_PCIE2_IO_PHYS, LAW_SIZE_64K,
> + LAW_TRGT_IF_PCIE_2);
> SET_STD_PCIE_INFO(pci_info[num], 2);
How about this instead:
SET_STD_PCIE_INFO(pci_info[num], 2);
+ set_next_law(pci_info[num].mem_phys,
+ law_size_bits(pci_info[num].mem_size),
+ LAW_TRGT_IF_PCIE_2);
+ set_next_law(pci_info[num].io_phys,
+ law_size_bits(pci_info[num].io_size),
+ LAW_TRGT_IF_PCIE_2);
--
Timur Tabi
Linux kernel developer at Freescale
More information about the U-Boot
mailing list