
Registers
1389
SPRUH82C – April 2013 – Revised September 2016
Copyright © 2013–2016, Texas Instruments Incorporated
Serial ATA (SATA) Controller
28.4.17 Test Register (TESTR)
The test register (TESTR) is used to put the SATASS slave interface into a test mode and to select a Port
for BIST operation. The TESTR is shown in
and described in
Figure 28-17. Test Register (TESTR)
31
19
18
16
Reserved
PSEL
R-0
R/W-0
15
0
Reserved
TEST_IF
R-0
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 28-21. Test Register (TESTR) Field Descriptions
Bit
Field
Value
Description
31-19
Reserved
0
Reserved.
18-16
PSEL
0
Port Select. Selects the port for BIST operation. Note that there is only one port in this subsystem, so 0
is the only valid value.
15-1
Reserved
0
Reserved.
0
TEST_IF
Test Interface. Places the DWC SATA AHCI slave interface into the test mode.
0
Normal mode: the read back value of some registers is a function of the DWC SATA AHCI state and
does not match the value written.
1
Test mode: the read back value of the registers matches the value written. Normal operation is
disabled. The following registers are accessed in this mode:
• GHC register: IE bit
• BISTAFR register: NCP and PD bits become read/write
• BISTCR register: LLC, ERREN, FLIP, PV, PATTERN
• BISTFCTR, BISTSR, BISTDECR registers become read/write
• P0CLB/CLBU, P0FB/FBU registers
• P0IS register: RW1C and UFS bits become read/write
• P0IE register
• P0CMD register: ASP, ALPE, DLAE, ATAPI, PMA bits
• P0TFD, P0SIG registers become read/write
• P0SCTL register
• P0SERR register: R/W1C bits become read/write bits
• P0SACT, P0CI, P0SNTF registers become read/write
• P0DMACR register
• P0PHYCR register
• P0PHYSR register becomes read/write
Notes:
Interrupt is asserted if any of the IS register bits is set after setting the corresponding P0IS and P0IE
registers and GHC.IE = 1.
CAP.SMPS/SSS, PI, P0CMD.ESP/CPD/MPSP/ HPCP register bits are W/RO (written once after power-
on reset, then remain as read-only) type and can not be used in test mode.
Global DWC SATA AHCI reset must be issued (GHC.HR = 1) after TEST_IF bit is cleared following the
test mode operation.