imx8mm_evk: Add Serial Download Protocol support
authorFabio Estevam <festevam@denx.de>
Tue, 20 Sep 2022 00:20:14 +0000 (21:20 -0300)
committerStefano Babic <sbabic@denx.de>
Fri, 21 Oct 2022 09:54:13 +0000 (11:54 +0200)
commit750d7ddf2c514949228d991e6dd4f7982bfb27f6
tree817c45c9583105e3a7c15373ca870601605c5bf6
parent330fbafa09b75778880e7821763400a2135cd745
imx8mm_evk: Add Serial Download Protocol support

Add Serial Download Protocol support as it is a useful method to
load flash.bin to RAM and run it via 'uuu'.

With this patch, it is possible to start both U-Boot SPL and U-Boot
proper using the following 'uuu'command:

$ uuu -brun spl flash.bin

Based on a patch from Marek Vasut for the imx8mm-mx8menlo board.

Also, to fit the SPL binary into the internal RAM, select CONFIG_LTO
to reduce its size.

Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
arch/arm/dts/imx8mm-evk-u-boot.dtsi
configs/imx8mm_evk_defconfig