MPC8315E PCIe memory configuration

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MPC8315E PCIe memory configuration

913 次查看
linjiepan
Contributor II

On physical hardware,PCIe 1 connects with PCI device(BCM56134).

When during scanning pci 1 bus,why It can't detect bcm56134?

It print like this:

pastedImage_0.png

In fact,Should be printed like this:

pastedImage_2.png

154436_154436.pngpastedImage_3.png

How to set the PCI configuration space, MEM space and  I/O space?

and Which register are need to set?

Such these Macro definitions,how to set ?

CONFIG_SYS_PCIE1_BASE、CONFIG_SYS_PCIE1_MEM_BASE、CONFIG_SYS_PCIE1_MEM_PHYS、CONFIG_SYS_PCIE1_MEM_SIZE?

CONFIG_SYS_PCIE1_CFG_BASE、CONFIG_SYS_PCIE1_CFG_SIZE?

CONFIG_SYS_PCIE1_IO_BASE、CONFIG_SYS_PCIE1_IO_PHYS、CONFIG_SYS_PCIE1_IO_SIZE?

=================================================================================


/*

* General PCI

* Addresses are mapped 1-1.

*/

#define CONFIG_SYS_PCI_MEM_BASE        0x80000000

#define CONFIG_SYS_PCI_MEM_PHYS CONFIG_SYS_PCI_MEM_BASE

#define CONFIG_SYS_PCI_MEM_SIZE          0x10000000 /* 256M */

#define CONFIG_SYS_PCI_MMIO_BASE       0x90000000

#define CONFIG_SYS_PCI_MMIO_PHYS       CONFIG_SYS_PCI_MMIO_BASE

#define CONFIG_SYS_PCI_MMIO_SIZE         0x10000000 /* 256M */

#define CONFIG_SYS_PCI_IO_BASE             0x00000000

#define CONFIG_SYS_PCI_IO_PHYS             0xE0300000

#define CONFIG_SYS_PCI_IO_SIZE               0x00100000 /* 1M */

#define CONFIG_SYS_PCI_SLV_MEM_LOCAL CONFIG_SYS_SDRAM_BASE

#define CONFIG_SYS_PCI_SLV_MEM_BUS 0x00000000

#define CONFIG_SYS_PCI_SLV_MEM_SIZE 0x80000000

#define CONFIG_SYS_PCIE1_BASE           0xb0000000

#define CONFIG_SYS_PCIE1_MEM_BASE 0xb0000000

#define CONFIG_SYS_PCIE1_MEM_PHYS 0xb0000000

#define CONFIG_SYS_PCIE1_MEM_SIZE   0x02000000

#define CONFIG_SYS_PCIE1_CFG_BASE 0xe0009000

#define CONFIG_SYS_PCIE1_CFG_SIZE   0x00001000

#define CONFIG_SYS_PCIE1_IO_BASE     0x00000000

#define CONFIG_SYS_PCIE1_IO_PHYS     0xb2000000

#define CONFIG_SYS_PCIE1_IO_SIZE       0x00800000

#define CONFIG_SYS_PCIE2_BASE            0xb4000000

#define CONFIG_SYS_PCIE2_MEM_BASE  0xb4000000

#define CONFIG_SYS_PCIE2_MEM_PHYS  0xb4000000

#define CONFIG_SYS_PCIE2_MEM_SIZE    0x02000000

#define CONFIG_SYS_PCIE2_CFG_BASE   0xe000a000

#define CONFIG_SYS_PCIE2_CFG_SIZE     0x00001000

#define CONFIG_SYS_PCIE2_IO_BASE       0x00000000

#define CONFIG_SYS_PCIE2_IO_PHYS       0xb6000000

#define CONFIG_SYS_PCIE2_IO_SIZE         0x00800000

0 项奖励
回复
1 回复

738 次查看
Pavel
NXP Employee
NXP Employee

Look at attached files. These files are documentation from NXP LTIB BSP for the MPC8315RDB board:

https://www.nxp.com/webapp/Download?colCode=CWF-MPC8315E-RDB&appType=license&location=null&Parent_no...

Use this documentation for PCIe setting on your board.

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复