]> git.dujemihanovic.xyz Git - u-boot.git/commit
ram: k3-ddrss: do not touch ctrl regs during training
authorBryan Brattlof <bb@ti.com>
Mon, 17 Jul 2023 22:15:26 +0000 (17:15 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 21 Jul 2023 19:32:12 +0000 (15:32 -0400)
commitaf7c33c103450e06aecf8adba8cbc8c522295be1
tree5916d80b6cb2a6b18772303d2a23713c3abdfa87
parent7c97b715e920bc41f628b39925ac829ff9cf7d8f
ram: k3-ddrss: do not touch ctrl regs during training

During LPDDR initialization we will loop through a series of frequency
changes in order to train at the various operating frequencies. During
this training, accessing the DRAM_CLASS bitfield could happen during a
frequency change and cause the read to hang.

Store the DRAM type into the main structure to avoid multiple readings
while the independent phy is training.

Signed-off-by: Bryan Brattlof <bb@ti.com>
drivers/ram/k3-ddrss/k3-ddrss.c