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)
commit4f24163efad8a886800a02da0dd787996d7adfa7
treed760a65180c7dcd93e64ef6e11b2875a1e834cc4
parent78efae613bbade1d366e920ba93a44cdeb06c5f6
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