Simple settings for PCIe on MPC8308

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Simple settings for PCIe on MPC8308

600 Views
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.

Tags (1)
0 Kudos
3 Replies

371 Views
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 Kudos

371 Views
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 Kudos

371 Views
TomE
Specialist II

> Any hints?

 

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

 

Tom

 

0 Kudos