Tool/software:
Hi expert
sdk8.2
Does TDA4 have an interface that can directly read DDR MR6 and MR7 register
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Hi expert
sdk8.2
Does TDA4 have an interface that can directly read DDR MR6 and MR7 register
Hi,
There is a function in the driver included with u-boot / PDK which can read the LPDDR4 mode register.
See the driver function (lpddr4_getmmrregister) here: https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/drivers/ram/k3-ddrss/lpddr4.c?h=08.06.00.007#n288
The function input parameter, readmoderegval, corresponds to DDRSS_CTL_160[24:8].
Bits ( 7:0) define the memory mode register
Bits ( 15:8) define the chip select.
Bit (16) triggers the read
See the example below, where readModeRegVal variable is set as 0x10000 | ((rank & 1) << 8) | (mr & 0xFF), where "rank" is the chip select of interest, and "mr" is the mode register number of interest.

Regards,
Kevin