]> git.baikalelectronics.ru Git - uboot.git/commit
rk3288: sdram: auto-detect the capacity
authorKever Yang <kever.yang@rock-chips.com>
Fri, 7 Oct 2016 09:47:58 +0000 (17:47 +0800)
committerSimon Glass <sjg@chromium.org>
Sun, 30 Oct 2016 19:29:06 +0000 (13:29 -0600)
commit859e4e758f7f21f8c10a0003442d868070867e86
tree4c625fc65da0c6b9b310569d8ac1293265f2cf05
parent9441d2df10c98e9c607b57ef9d41501566c3d8c7
rk3288: sdram: auto-detect the capacity

Add support for rk3288 dram capacity auto detect, support DDR3 and
LPDDR3, DDR2 is not supported.
The program will automatically detect:
- channel number
- rank number
- column address number
- row address number

The dts file do not need to describe those info after apply this patch.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Tested-by: Simon Glass <sjg@chromium.org>
Tested-by: Vagrant Cascadian <vagrant@debian.org>
Tested-by: Vagrant Cascadian <vagrant@debian.org>
arch/arm/include/asm/arch-rockchip/sdram.h
arch/arm/mach-rockchip/rk3288/sdram_rk3288.c