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.
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.
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?
> Any hints?
Download a working Linux setup and then read the source to see how it handles the chipset.
Tom