ram: rk3399: Add lpddr4 rank mask for wdql training
authorJagan Teki <jagan@amarulasolutions.com>
Tue, 16 Jul 2019 11:57:10 +0000 (17:27 +0530)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 20 Jul 2019 15:59:44 +0000 (23:59 +0800)
commitc716bf67f5eb54ed64538f7ce70b36da04c55352
tree9b6288a35908cf75f75a9651d7af7c4ad37a2228
parent3dae87da89e4c9edb4da9e05bde2e10bb98bd885
ram: rk3399: Add lpddr4 rank mask for wdql training

Add rank_mask based on the rank number for lpddr4.

This would keep the wdql data training loop based on the
desired rank mask value instead of looping for all values.

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