I am trying to read the LTSSM state of the PCIe interface in my T2081 CPU using Codewarrior Tap. I believe that would be the PEX control/status register 0 or CSR0 register. I can't seem to find that register in the standard register list using the Debug tool in Codewarrior. Is it possible to read the LTSSM state using Codewarrior Tap?
We were reading the wrong address. Since we are using PEX4 we needed offset 270000, so in u-boot the CRS0 address is 0xfe270f14 as mentioned above. In Linux you add an extra f so 0xffe270f14. When booted the LTSSM state is 0x11 as expected.
0xffe270f14 90000044 00FF0000 00000000 00008000
The difficulty now is trying to read that register while Link Training. It seems this is not possible using CodeWarrior Tap so we are attempting to create some code to do it and log the LTSSM register transitions.