ddr: imx8m: Return error values from LPDDR4 training
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Wed, 11 Dec 2019 10:01:19 +0000 (10:01 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 7 Jan 2020 09:26:57 +0000 (10:26 +0100)
commit83083febf55679ee0fc68ba55e9af43add277b58
treeb2495a3ed95c2ec411c67de34cccb125f4dbd2ba
parent162c72c80445636ec73f8833b9e91f0128d21b8f
ddr: imx8m: Return error values from LPDDR4 training

In cases when the same SPL should run on boards with i.MX8MM, that
differ in DDR configuration, it is necessary to try different
parameters and check if the training done by the firmware suceeds or
not.

Therefore we return the DDR training/initialization success to the
upper layer in order to be able to retry with different settings if
necessary.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
arch/arm/include/asm/arch-imx8m/ddr.h
drivers/ddr/imx/imx8m/ddr_init.c
drivers/ddr/imx/imx8m/ddrphy_train.c
drivers/ddr/imx/imx8m/ddrphy_utils.c