ddr: imx8m: fix ddr firmware location when enable SPL OF
authorPeng Fan <peng.fan@nxp.com>
Tue, 27 Aug 2019 06:24:47 +0000 (06:24 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 8 Oct 2019 14:36:36 +0000 (16:36 +0200)
commit28cb058ff748aa592014fcc8049b6bac1e2e4a2e
tree6c125d3e19cd179487f1784812ea8e097cd4c6f2
parent4b78bb504142ebc97efae6908e666cb0608ebf86
ddr: imx8m: fix ddr firmware location when enable SPL OF

With CONFIG_SPL_OF_CONTROL, the device tree will be padded to
end of the u-boot-spl-nodtb.bin, however we also put
the ddr firmware file to this location, so need to adapt
the code with SPL OF and align to 4 bytes to ease copy firmware.

Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Tested-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/ddr/imx/imx8m/helper.c