]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: dmc: rk3368: update rank number for evb-px5
authorKever Yang <kever.yang@rock-chips.com>
Fri, 29 Mar 2019 14:48:29 +0000 (22:48 +0800)
committerKever Yang <kever.yang@rock-chips.com>
Wed, 8 May 2019 09:34:12 +0000 (17:34 +0800)
evb-px5 has only 1 CS, update for it.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Tested-by: Andy Yan <andy.yan@rock-chips.com>
drivers/ram/rockchip/dmc-rk3368.c

index 92f584fadcb299d00853c8321380ff4e8dfdece3..e52fc3baad92dc4a58395d8b4afb12b7cf4b67b4 100644 (file)
@@ -842,7 +842,11 @@ static int setup_sdram(struct udevice *dev)
        move_to_access_state(pctl);
 
        /* TODO(prt): could detect rank in training... */
+#ifdef CONFIG_TARGET_EVB_PX5
+       params->chan.rank = 1;
+#else
        params->chan.rank = 2;
+#endif
        /* TODO(prt): bus width is not auto-detected (yet)... */
        params->chan.bw = 2;  /* 32bit wide bus */
        params->chan.dbw = params->chan.dbw;  /* 32bit wide bus */