Simple settings for PCIe on MPC8308

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

Simple settings for PCIe on MPC8308

1,763 次查看
mad_dad
Contributor II

We have a bespoke board with a MPC8308, and I have been tasked with getting the PCIe to work.

The number of registers is scary. Is there a simple example of setting up a memory space or bus scan.

 

We are not using Linux but have our own BSP using Freescale runtime.

标记 (1)
0 项奖励
回复
3 回复数

1,534 次查看
mad_dad
Contributor II

Re-reading the manual and following the initialisation procedure..

I have got as far as setiing up the SerDes, taking PCI out of reset, setting Outbound window and configuring the CSB registers the PEX_LTSSM_STAT status code returns 4 then 8 but never returns 16.

Code 8 is Polling Compliance, does this mean it is having trouble communicating across the transmission link.

This link is on a new card so is unproven.

0 项奖励
回复

1,534 次查看
mad_dad
Contributor II

Solved the first problem.

 

The clock was not enabled for the PCIe switch, can now read the switch's header.

 

Now need to work out how to do a PCI scan for End Points on the other side of the switch, using the 8308.

 

I'm sure it's something to do with the OWTAR but the ref. manual is not clear.

 

Any hints?

0 项奖励
回复

1,534 次查看
TomE
Specialist II

> Any hints?

 

Download a working Linux setup and then read the source to see how it handles the chipset.

 

Tom

 

0 项奖励
回复