I have a question about SATA test,
The Reference Manual Section 184.108.40.206 describes the Looback Responder,
High Frequency Test Pattern (HFTP)
Mid Frequency Test Pattern (MFTP)
Low Frequency Test Pattern (LFTP)
Lone Bit Pattern (LBP)
Does Freescale have any sample code for this test?
From our HW engineer:
"There is no code for the test patterns. These are Built In Self Test (BIST) patterns contained in the PHY controller. You make the appropriate register setting (either through software, or manually through JTAG or a regisitry utility such as memtool) to SATA_BISTCR[TXO] and the PHY will output the selected, pre-programmed test pattern.
Other settings in the SATA_BISTCR register are used to set up the PHY to transmit the BIST pattern. The section you sited in the Reference Manual should be sufficient to guide you in using the BIST tests.
The SATA controller can initiate a BIST test on an attached device, or receive a command from an attached device to initiate a BIST test on its side, or can run a loop back BIST test. The Reference Manual describes how to do all three. Hopefully I have given you enough of a hint to use the Reference Manual. Please ask more specific questions if you have them."
Also, keep in mind that some BIST cannot be used after the IC is in a BGA package. This is described in the RM.
Hope this helps.
I modified the register as below:
Set SATA_TESTR. TEST_IF=0x1 (enable test mode)
Set SATA_BISTCR = 0x00041700 (Set pattern)
But it didn't generate SATA test pattern.
Do I miss anything?