ram: rk3399: Use rank mask in ca data training
authorJagan Teki <jagan@amarulasolutions.com>
Mon, 15 Jul 2019 18:28:41 +0000 (23:58 +0530)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 19 Jul 2019 03:11:09 +0000 (11:11 +0800)
commit708e9a79dc297aeb8a62dc6ba95b651b0493e1e1
tree206eaa3775d1676043d81411b230c8b950054109
parent01976ae6f55ecfdf9ace9a453cc16d84585d49d8
ram: rk3399: Use rank mask in ca data training

Add rank_mask based on the rank number, this would keep
the ca 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