driver: ram: rockhip: px30: fix lpddr2 bug

set lpddr2 detect max row = 15 to match lpddr2 inc file

Change-Id: I8fd57984331d35bafaf263829760204c582d120d
Signed-off-by: YouMin Chen <cym@rock-chips.com>
This commit is contained in:
YouMin Chen 2018-09-26 21:22:32 +08:00 committed by Jianhong Chen
parent ca0ddd934d
commit f588f59eac
1 changed files with 4 additions and 1 deletions

View File

@ -920,7 +920,10 @@ static u64 dram_detect_cap(struct dram_info *dram,
/* detect col and bk for ddr3/lpddr3 */ /* detect col and bk for ddr3/lpddr3 */
coltmp = 12; coltmp = 12;
bktmp = 3; bktmp = 3;
rowtmp = 16; if (dram_type == LPDDR2)
rowtmp = 15;
else
rowtmp = 16;
for (col = coltmp; col >= 9; col -= 1) { for (col = coltmp; col >= 9; col -= 1) {
writel(0, CONFIG_SYS_SDRAM_BASE); writel(0, CONFIG_SYS_SDRAM_BASE);