Skip to content

Commit fea3b9e

Browse files
dgarskedanielinux
authored andcommitted
Improve PCIe code.
1 parent 0b206d6 commit fea3b9e

5 files changed

Lines changed: 261 additions & 166 deletions

File tree

hal/nxp_p1021.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -975,10 +975,10 @@ void hal_early_init(void)
975975
static int hal_pcie_init(void)
976976
{
977977
/* Map LAW for PCIe */
978-
set_law(0, 0, CONFIG_SYS_PCIE1_MEM_PHYS, LAW_TRGT_PCIE1, LAW_SIZE_512MB, 1),
979-
set_law(1, 0, CONFIG_SYS_PCIE1_IO_PHYS, LAW_TRGT_PCIE1, LAW_SIZE_64KB, 1),
980-
set_law(2, 0, CONFIG_SYS_PCIE2_MEM_PHYS, LAW_TRGT_PCIE2, LAW_SIZE_512MB, 1),
981-
set_law(3, 0, CONFIG_SYS_PCIE2_IO_PHYS, LAW_TRGT_PCIE2, LAW_SIZE_64KB, 1),
978+
set_law(0, 0, CONFIG_SYS_PCIE1_MEM_PHYS, LAW_TRGT_PCIE1, LAW_SIZE_512MB, 1);
979+
set_law(1, 0, CONFIG_SYS_PCIE1_IO_PHYS, LAW_TRGT_PCIE1, LAW_SIZE_64KB, 1);
980+
set_law(2, 0, CONFIG_SYS_PCIE2_MEM_PHYS, LAW_TRGT_PCIE2, LAW_SIZE_512MB, 1);
981+
set_law(3, 0, CONFIG_SYS_PCIE2_IO_PHYS, LAW_TRGT_PCIE2, LAW_SIZE_64KB, 1);
982982

983983
/* Map TLB for PCIe */
984984
set_tlb(1, 2, CONFIG_SYS_PCIE2_MEM_VIRT, CONFIG_SYS_PCIE2_MEM_PHYS, 0,

0 commit comments

Comments
 (0)