]> git.baikalelectronics.ru Git - uboot.git/commit
rockchip: SPL: fix ordering of DRAM init
authorThomas Hebb <tommyhebb@gmail.com>
Fri, 15 Nov 2019 16:48:55 +0000 (08:48 -0800)
committerKever Yang <kever.yang@rock-chips.com>
Sun, 17 Nov 2019 10:51:25 +0000 (18:51 +0800)
commite6c4973286aefe197ca63678d1cc2088aa842d9a
treea3b359cace2435b0f1daa30c32ea8d6dce44c60b
parentc81ee3a123a57bf85cc497a1f0e2d41d35587586
rockchip: SPL: fix ordering of DRAM init

The common SPL code reordered the DRAM initialization before
rockchip_stimer_init(), which as far as I can tell causes the RK3399 to
lock up completely.

Fix this issue in the common code by putting the DRAM init back after
timer init. I have only tested this on the RK3399, but it wouldn't make
any sense for the timer init to require DRAM be set up on any system.

Fixes: 251aac651b3c ("rockchip: rk3399: Migrate to use common spl board file")
Signed-off-by: Thomas Hebb <tommyhebb@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/mach-rockchip/spl.c