u-boot-brain/drivers/ram
Jagan Teki c36abd087a ram: rk3399: Add lpddr4 set rate support
Unlike rest of dram type chips, LPDDR4 initialization start
with at board selected frequency (say 50MHz) and then it
switches into 400MHz and 800MHz simultaneously to make the
proper sequence work on each channel with associated training.

The lpddr4 set rate sequnce will follow by setting lpddr4
- dq out
- ca odt
- MR3
- MR12
- MR14
registers sets in sequential order.

Here is sameple log about LPDDR4-100 init sequence in Rockpro64:

Channel 0: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
Channel 1: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
256B stride
channel 0 training pass
channel 1 training pass
change freq to 400 MHz 0, 1
channel 0 training pass
channel 1 training pass
change freq to 800 MHz 1, 0

This patch add support to this init sequence via lpddr4 set rate
by taking sdram timing parameters from 400, 800 .inc files.

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>
(Fix travis error, use one ret instead of ret[2] in set_ctrl)
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2019-07-20 23:59:44 +08:00
..
mediatek ram: MediaTek: add DDR3 driver for MT7629 SoC 2018-11-28 23:04:53 -05:00
rockchip ram: rk3399: Add lpddr4 set rate support 2019-07-20 23:59:44 +08:00
stm32mp1 ram: stm32mp1_ram: Fix warnings when compiling with W=1 2019-07-12 11:50:56 +02:00
bmips_ram.c ram: bmips: Remove DM_FLAG_PRE_RELOC flag 2018-11-14 09:16:28 -08:00
k3-am654-ddrss.c ram: Introduce K3 AM654 DDR Sub System driver 2018-11-16 16:51:58 -05:00
k3-am654-ddrss.h ram: Introduce K3 AM654 DDR Sub System driver 2018-11-16 16:51:58 -05:00
Kconfig ram: rockchip: Add initial Kconfig 2019-07-19 11:11:09 +08:00
Makefile ram: MediaTek: add DDR3 driver for MT7629 SoC 2018-11-28 23:04:53 -05:00
mpc83xx_sdram.c mpc83xx: Introduce ARCH_MPC837X 2019-05-20 13:50:34 +02:00
ram-uclass.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sandbox_ram.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
stm32_sdram.c ram: stm32_sdram: Adds stm32f429-disco fixes for HardFault at booting 2018-05-26 18:19:17 -04:00