]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitac3ddd09285f52bba6b9cd803342c92070406e7a
treeb2495a3ed95c2ec411c67de34cccb125f4dbd2ba
parent419aebc3938d8b5082bed0e2a29078c5a3673041
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