ram: rk3399: Add LPPDR4 mr detection
authorJagan Teki <jagan@amarulasolutions.com>
Tue, 16 Jul 2019 11:57:31 +0000 (17:27 +0530)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 20 Jul 2019 16:00:10 +0000 (00:00 +0800)
commita0ded6d317b0a12e1555080e55971bde8e932026
tree60a40c8d9c131e6c17f2914f79a7de21a2a1fe84
parent299deecf4a8cd6bc5b17fd3691a39066601eca35
ram: rk3399: Add LPPDR4 mr detection

Like data training in other sdram types, mr detection need
to taken care for lpddr4 with looped rank and associated
channel to make sure the proper configuration held.

Once the mr detection successful for active and configured
rank with channel number, the same can later reused during
actual LPDDR4 initialization.

So, add code to support for it.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Signed-off-by: YouMin Chen <cym@rock-chips.com>
Reviewed-by: Kever Yang <Kever.yang@rock-chips.com>
drivers/ram/rockchip/sdram_rk3399.c