u-boot/drivers/ram/rockchip
Jagan Teki 4b09719c38 ram: rk3399: Compute stride for 2 channels
stride value from sdram timings can be computed dynamically
based on the determined capacity for the given channel.

Right now these stride values are taken as part of sdram timings
via dtsi, but it possible to use same timings dtsi for given
frequency even though the configured board sdram do support
single channel with different size by dynamically detect the
stride value.

Example, NanoPi NEO4 do have DDR3-1866, but with single channel
and 1GB size with dynamic stride detection it is possible to
use existing rk3399-sdram-ddr3-1866.dtsi whose stride,
number of channels and capacity it support is d efferent.

So, add initial support to calculate the stride value for
2 channels sdram, which is available by default on existing
boards.

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>
2019-07-19 11:11:10 +08:00
..
dmc-rk3368.c rockchip: dmc: rk3368: update rank number for evb-px5 2019-05-08 17:34:12 +08:00
Kconfig ram: rockchip: Add debug sdram driver 2019-07-19 11:11:09 +08:00
Makefile ram: rockchip: Add debug sdram driver 2019-07-19 11:11:09 +08:00
sdram_debug.c ram: rk3399: debug: Add sdram_print_stride 2019-07-19 11:11:10 +08:00
sdram_rk322x.c Revert "rockchip: rk322x: ram: enable DRAM init in SPL instead of TPL" 2019-05-08 17:34:12 +08:00
sdram_rk3128.c rockchip: use 'arch-rockchip' as header file path 2019-05-01 00:00:05 +02:00
sdram_rk3188.c rockchip: use 'arch-rockchip' as header file path 2019-05-01 00:00:05 +02:00
sdram_rk3288.c rockchip: use 'arch-rockchip' as header file path 2019-05-01 00:00:05 +02:00
sdram_rk3328.c rockchip: use 'arch-rockchip' as header file path 2019-05-01 00:00:05 +02:00
sdram_rk3399.c ram: rk3399: Compute stride for 2 channels 2019-07-19 11:11:10 +08:00