[U-Boot] [PATCH] env_nand: use nand_spl_load_image for readenv if SPL

Scott Wood
2015-05-15T18:59:32Z

On Thu, 2015-05-14 at 11:48 -0700, Tim Harvey wrote:
> The readenv() implementation of env_nand uses the mtd layer which is
> unnecessary overhead in SPL when we already have a nand_spl_load_image()
> function that doesn't need it. Using this instead eliminates the need
> to provide a mtd_read for SPL env as well as reduces code (4KB savings in IMX6
> SPL).
>
> Signed-off-by: Tim Harvey <tharvey@gateworks.com>
> ---
> common/env_nand.c | 7 +++++++
> 1 file changed, 7 insertions(+)

Acked-by: Scott Wood <scottwood@freescale.com>

-Scott