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)
commit7d6c78f5731e71c7619c621c4c7e30c56f0fd9bf
tree4c625fc65da0c6b9b310569d8ac1293265f2cf05
parentcd2f6b8b956735081fec3ad3859e7d7ecf0877c3
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