ram: rk3399: Fix dram setting to make dram more stable
authorYouMin Chen <cym@rock-chips.com>
Fri, 15 Nov 2019 03:04:53 +0000 (11:04 +0800)
committerKever Yang <kever.yang@rock-chips.com>
Sun, 17 Nov 2019 08:23:56 +0000 (16:23 +0800)
commitbcfacab517e9632040c44ee30e84338b71fa0366
tree315697575c0af8c7813e0196c8a55e5c1f09405f
parentc8863b85083a8f5864f800dee4f22a7dc9f41c9f
ram: rk3399: Fix dram setting to make dram more stable

There are some code different with rockchip vendor code which may lead
to different bugs, including:
1) Fix setting error about LPDDR3 dram size ODT.
2) Set phy io speed to 0x2.
3) Fix setting error about phy_pad_fdbk_drive.
4) Fix setting error about PI_WDQLVL_VREF_EN

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