Hi All
i don't know what is the DDR PHY register related to the " i.MX 8M Dual/8M QuadLite/8M Quad Applications Processors Reference Manual, Rev. 2, 08/2019"
In MX8M_LPDDR4_RPA_v23.xlsx DDR Tools it represent like this ;
| DDR_PHY_Dq0LnSel_0 | 0x3C040280 | 0x00000000 |
| DDR_PHY_Dq1LnSel_0 | 0x3C040284 | 0x00000001 |
| DDR_PHY_Dq2LnSel_0 | 0x3C040288 | 0x00000002 |
| DDR_PHY_Dq3LnSel_0 | 0x3C04028C | 0x00000003 |
| DDR_PHY_Dq4LnSel_0 | 0x3C040290 | 0x00000004 |
| DDR_PHY_Dq5LnSel_0 | 0x3C040294 | 0x00000005 |
| DDR_PHY_Dq6LnSel_0 | 0x3C040298 | 0x00000006 |
| DDR_PHY_Dq7LnSel_0 | 0x3C04029C | 0x00000007 |
but gen from MSCALE_DDR_Tool.exe the lpddr4_timing.c it represent like this :
struct dram_cfg_param ddr_ddrphy_cfg[] = {
{0x100a0,0x0},
{0x100a1,0x1},
{0x100a2,0x2},
{0x100a3,0x3},
{0x100a4,0x4},
{0x100a5,0x5},
{0x100a6,0x6},
{0x100a7,0x7},
....
...
..
.
then in the Applications Processors Reference Manual represent like this :
DWC_DDRPHYA_DBYTE0 base address: 1_0000h
9.4.3.3.35 Maps Phy DQ lane to memory DQ0 (Dq0LnSel - Dq7LnSel)
9.4.3.3.35.1 Offset
For n = 0 to 7:
Register Offset
DqnLnSel 140h + (n × 2h)
in this moment i know
0x3C000000 from manual DDR PHY Register base addr
0x100a0 from lpddr4_timing.c
0x3C040280 from the ddr tools excel
formula in the uboot code like this 0x3C000000 + 4*0x100a0 = 0x3C040280 this is fine, i understand .
but what is the Reference Manual represent ??? DqnLnSel 140h + (n × 2h)
i don't know how to use 140h ??
how can be from 0x3C000000+DqnLnSel 140h + (n × 2h) to be a 0x3C040280 ???