ram: rk3399: Update lpddr4 vref based on io settings
authorJagan Teki <jagan@amarulasolutions.com>
Tue, 16 Jul 2019 11:57:26 +0000 (17:27 +0530)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 20 Jul 2019 15:59:44 +0000 (23:59 +0800)
commit95be76eb5ce0d807d5b1b360efbac11f16a819af
treea77af0fce2d54887998fb44df35a5cd30dbba369
parent4eceda01d5df9d90d6402dfd5fcf1bcc9c5c00e6
ram: rk3399: Update lpddr4 vref based on io settings

The vref_mode_dq, vref_value_dq on lpddr4 value is depending
on IO settings of rd_vref.

Add 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