u-boot-brain/drivers
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
..
adc adc: stm32: Fix warnings when compiling with W=1 2019-07-12 11:50:55 +02:00
ata ata: fsl_ahci: Add sata DM support for Freescale powerpc socs 2019-05-23 19:53:09 +05:30
axi drivers: cosmetic: Convert SPDX license tags to Linux Kernel style 2018-10-28 09:26:39 -04:00
bios_emulator bios_emulator: remove assignment without effect 2018-07-23 14:33:21 -04:00
block blk: Invalidate block cache when switching hwpart 2019-07-18 11:31:31 -04:00
board board: gazerbeam: Fix SC detection 2019-05-21 08:03:38 +02:00
bootcount bootcount: add a DM RTC backing store for bootcount 2018-12-10 10:04:45 +01:00
cache dm: cache: add the pl310 cache controller driver 2019-05-05 08:48:50 -04:00
clk clk: rockchip: rk3399: Set 400MHz ddr clock 2019-07-21 00:00:25 +08:00
core regmap: Add API regmap_init_mem_index() 2019-07-17 11:12:08 -04:00
cpu cpu: Bind timer driver for boot hart 2019-02-27 09:12:33 +08:00
crypto Revert "drivers/crypto/fsl: assign job-rings to non-TrustZone" 2019-06-11 10:42:48 +02:00
ddr mpc83xx: Get rid of CONFIG_SYS_DDR_SDRAM_BASE 2019-05-21 07:52:33 +02:00
demo SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dfu dfu: mmc: call fs functions instead of run_command 2019-01-30 21:22:53 -05:00
dma CONFIG_SPL_SYS_[DI]CACHE_OFF: add 2019-05-18 08:15:35 -04:00
fastboot fastboot: Check if partition really exist in getvar_has_slot() 2019-06-14 12:39:54 +02:00
firmware firmware: ti_sci: Always request response from firmware 2019-05-03 07:23:17 -04:00
fpga spl: socfpga: Implement fpga bitstream loading with socfpga loadfs 2019-05-10 22:48:11 +02:00
gpio Merge branch 'master' of https://gitlab.denx.de/u-boot/custodians/u-boot-sunxi 2019-07-16 11:19:31 -04:00
hwspinlock hwspinlock: add stm32 hardware spinlock support 2018-12-06 23:26:33 -05:00
i2c i2c: omap24xx_i2c: Adapt driver to support K3 devices 2019-07-17 11:12:54 -04:00
input Kconfig: tegra: Migrate TEGRA_KEYBOARD 2019-02-20 09:01:45 -07:00
led led: bcm6858: allow to use this driver on ARCH_963158 2019-04-23 17:57:22 -04:00
mailbox mailbox: introduce stm32-ipcc driver 2019-07-12 11:18:53 +02:00
memory SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
misc - syscon: add support for power off 2019-07-14 09:09:49 -04:00
mmc mmc: am654_sdhci: Allow driver to probe without PDs specified 2019-07-17 11:12:54 -04:00
mtd mtd: rawnand: stm32_fmc2: avoid warnings when building with W=1 option 2019-07-12 11:50:57 +02:00
net net: macb: Add support for 1000-baseX 2019-07-15 13:32:26 -05:00
nvme nvme: Fix warning of cast from pointer to integer of different size 2019-05-19 16:17:33 +08:00
pch pch: Add ioctl support 2019-02-20 15:27:08 +08:00
pci pci: ensure enumeration of all devices in pci_init 2019-07-12 21:07:58 -04:00
pci_endpoint pci_ep: fix wrong addressing to barno 2019-07-18 11:31:32 -04:00
pcmcia SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
phy sunxi: phy: Add USB PHY support for Allwinner H6 2019-07-16 17:13:15 +05:30
pinctrl - syscon: add support for power off 2019-07-14 09:09:49 -04:00
power regulator: Allow enabling GPIO regulator 2019-07-18 11:31:25 -04:00
pwm rockchip: use 'arch-rockchip' as header file path 2019-05-01 00:00:05 +02:00
qe configs: Migrate CONFIG_FMAN_ENET and some related options to Kconfig 2019-05-26 14:40:50 -04:00
ram ram: rk3399: Add lpddr4 set rate support 2019-07-20 23:59:44 +08:00
remoteproc remoteproc: k3_system_controller: Increase rx timeout 2019-05-09 20:22:05 -04:00
reset reset: socfpga: convert to livetree 2019-05-10 22:48:11 +02:00
rtc rtc: Add DM support to ds3231 2019-07-18 11:31:23 -04:00
scsi dm: scsi: report correct device number 2019-02-19 08:55:43 -05:00
serial - syscon: add support for power off 2019-07-14 09:09:49 -04:00
smem drivers: smem: sandbox 2018-07-19 16:31:38 -04:00
soc soc: keystone: Merge into ti specific directory 2019-04-11 20:07:12 -04:00
sound sound: tegra: Add a sound driver 2019-05-24 10:14:10 -07:00
spi - syscon: add support for power off 2019-07-14 09:09:49 -04:00
spmi SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sysreset - syscon: add support for power off 2019-07-14 09:09:49 -04:00
tee test/py: avb: fix test_avb_persistent_values fail 2019-05-09 19:52:55 -04:00
thermal SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
timer timer: dw-apb: remove unused DECLARE_GLOBAL_DATA_PTR 2019-05-10 22:48:11 +02:00
tpm tpm: wait for valid status 2019-07-11 14:11:18 -04:00
usb rockchip: xhci: Remove RK3399 support 2019-07-19 11:11:09 +08:00
video fdt: Allow indicating a node is for U-Boot proper only 2019-07-10 16:52:58 -06:00
virtio virtio: Add a Sandbox transport driver 2018-11-14 09:16:28 -08:00
w1 w1: Add driver for i.MX bus master controller 2019-01-01 14:12:18 +01:00
w1-eeprom w1-eeprom: Add support for Maxim DS2502 add only memory 2018-11-16 16:51:55 -05:00
watchdog watchdog: tangier: Convert to use WDT class 2019-06-22 22:27:13 +08:00
Kconfig drivers: pci_ep: Introduce UCLASS_PCI_EP uclass 2019-07-11 10:05:15 -04:00
Makefile drivers: pci_ep: Introduce UCLASS_PCI_EP uclass 2019-07-11 10:05:15 -04:00