memory: brcmstb: dpfe: use byte 3 of registers MR4-MR8
authorMarkus Mayer <mmayer@broadcom.com>
Tue, 12 Feb 2019 01:24:43 +0000 (17:24 -0800)
committerFlorian Fainelli <f.fainelli@gmail.com>
Mon, 20 May 2019 16:32:35 +0000 (09:32 -0700)
commit78a6f5bef9b8132e34f58f60c190da83b46cefef
treeb38fed3fe4077ff97aceb40e07cc8066288fedfe
parent900c8f578be2032e46dd936684838aa59cd5a477
memory: brcmstb: dpfe: use byte 3 of registers MR4-MR8

For dual-rank LPDDR4, result data for any command is placed in byte 0
and byte 3 of the corresponding MR register by the firmware.
Single-rank RAM was supposed to work the same way. However, due to a
firmware bug, result values are only placed in byte 3 of the
corresponding MR register.

Since byte 3 works for single-rank and dual-rank setups, we change the
Linux driver to always use byte 3, thus returning the correct value in
either case.

Signed-off-by: Markus Mayer <mmayer@broadcom.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
drivers/memory/brcmstb_dpfe.c