]> git.baikalelectronics.ru Git - uboot.git/commit
ram: rk3288: Initialize dram for TPL builds
authorJagan Teki <jagan@amarulasolutions.com>
Tue, 17 Sep 2019 06:10:38 +0000 (11:40 +0530)
committerKever Yang <kever.yang@rock-chips.com>
Thu, 19 Sep 2019 01:35:31 +0000 (09:35 +0800)
commit707ea8b59fb36f5b72f01763858183c467611805
treed760a65180c7dcd93e64ef6e11b2875a1e834cc4
parentcacb54bdeaafe336bd12a247f63ac8a27a32883d
ram: rk3288: Initialize dram for TPL builds

Few of the rk3288 boards like tinker, vyasa are using
TPL, SPL bootchain so the dram initialization must needed
during TPL stage. So add proper ifconstruct to satisfy
both TPL, SPL and SPL-only bootchain boards.

This eventually fixing TPL to SPL handoff, otherwise missing
dram initilaztion at TPL stage would leads to SPL hang.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Kever Yang<kever.yang@rock-chips.com>
drivers/ram/rockchip/sdram_rk3288.c