ram: rk3399: Simplify data training first argument
authorJagan Teki <jagan@amarulasolutions.com>
Tue, 16 Jul 2019 11:57:29 +0000 (17:27 +0530)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 20 Jul 2019 16:00:01 +0000 (00:00 +0800)
commite6ae37a007c2ddc5f070c8ce65349b472e625060
tree30e9aa14062fab7c1cdc4ed07919da3d27fc5765
parente939f92eae5b6524c18cbb4a42f4cc3910e5d018
ram: rk3399: Simplify data training first argument

data training is using chan_info as first argument with
channel number as second argument instead of that use
dram_info as first argument so-that we can get the
chan_info at data training definition.

This was the argument handling is meaningful, readable
and it would help to add similar data training for
lpddr4 in future.

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