SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
Table 26-7 summarizes the low-level programming sequence to set up the SATA PHY subsystem for SATA I/O operations.
Step | Description | Comment |
---|---|---|
1. | Set the startup low-performance OPP in the appropriate PRCM registers. | For more information regarding demanded OPP, see the device Data Manual. |
2. | Enable the PRCM.SATA_REF_GFCLK. | See Clock Domain Module Attributes, in Power, Reset, and Clock Management. |
3. | Enable the PRCM.L3INIT_L4_GICLK clock to enable the OCP2SCP3 interface adapter operation. | See Clock Domain Module Attributes, in Power, Reset, and Clock Management. |
4. | Software reset the OCP2SCP3 and poll until soft reset completion is indicated in status. | See Section 26.1.4.1. |
5. | Set up division ratio between the OCP clock (PRCM.L3INIT_L4_GICLK) and SCP clock to supply the serial configuration register domains of the DPLLCTRL_SATA. | See Section 26.1.4.1. |
6. | Set up necessary SYNC1 and SYNC2 timings to ensure no blocking of transactions over the SCP bus. | . See Section 26.1.4.1.After this step user is ready to access DPLLCTRL_SATA . |
7. | Configure DPLL_SATA to generate frequency (CLKDCOLDO) = 1.5 GHz. | See Section 26.1.4.3.7.2 and Table 26-8. |
8. | Soft assert bit DPLLCTRL_SATA.PLL_GO[0] PLL_GO to 0x1. | Start the DPLL lock with desired parameters. |
9. | Poll DPLLCTRL_SATA.PLL_STATUS[1] PLL_LOCK bit until it is seen 1. | DPLL locked event |
10. | Perform a SATA_PHY tuning required for SATA i/f operation | Follow steps described in Table 26-9, SATA PHY Tuning Table. |
11. | Software trigger the SATA_PHY_TX power-up sequence. | For more details, see Section 26.1.4.2.3.1, SATA_PHY Power-Up/-Down Sequences. |
12. | Software trigger the SATA_PHY_RX power-up sequence. | For more details, see Section 26.1.4.2.3.1, SATA_PHY Power-Up/-Down Sequences. |
Parameter | Setting | ||||
---|---|---|---|---|---|
F(CLKDCOLDO) MHz | 1500 | ||||
SYS_CLK (MHz) | 12 | 16.8 | 19.2 | 26 | 38.4 |
N | 4 | 6 | 7 | 12 | 15 |
SELFREQDCO[2:0] | 100 | 100 | 100 | 100 | 100 |
M | 625 | 625 | 625 | 750 | 625 |
Frac | 0 | 0 | 0 | 0 | 0 |
SD | 6 | 7 | 6 | 6 | 6 |
Physical address(2) [bits to modify] | Preferred value setting(1) |
---|---|
0x4A09 600C [31:27] | 0b01000 for SATA 1.5 Gbps mode 0b00100 for SATA 3 Gbps mode |
0x4A09 600C [17:14] | 0b1010 for SATA-Gen1x and SATA-Gen2x(3) 0b0101 for SATA-Gen1m and SATA-Gen2m |
0x4A09 6028 [23:19] | 0b11100 if spread-spectrum is ON 0b00001 if spread-spectrum is OFF |
0x4A09 6028 [18:11] | 0b01100110 (regardless of spread-spectrum being ON or OFF) |
0x4A09 600C [6:5] | 0b00 |
0x4A09 601C [31:30] | 0b01 |
0x4A09 6024 [31:30] | 0b10 |
0x4A09 6038 [31:16] | 0x0000 |
0x4A09 6038 [15:7] | 0b111110000 |
0x4A09 6038 [2:1] | 0b11 |
0x4A09 6044 [10:9] | 0b00 |