[PATCH] ddr: imx: Save the FW loading if it hasn't changed

Fabio Estevam festevam at gmail.com
Mon Jan 2 14:49:48 CET 2023


On Mon, Jan 2, 2023 at 9:21 AM Shawn Guo <shawnguo at kernel.org> wrote:
>
> From: Shawn Guo <shawn.guo at linaro.org>
>
> Function ddr_load_train_firmware() is called 4 times in a loop by
> ddr_cfg_phy(). The first 3 calls are all '1D' type and just loading the
> same FWs.  Let's add a type check and save 2 of them.  This helps to
> reduce DDRPHY training time from 269 ms down to 212 ms, and thus speed
> up boot time ~ 50 ms.
>
> Signed-off-by: Shawn Guo <shawn.guo at linaro.org>

Reviewed-by: Fabio Estevam <festevam at denx.de>


More information about the U-Boot mailing list