]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
env_nand: use nand_spl_load_image for readenv if SPL
authorTim Harvey <tharvey@gateworks.com>
Thu, 14 May 2015 18:48:04 +0000 (11:48 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 13:00:31 +0000 (15:00 +0200)
commit2fe204d365a9914b13b8d57b726049d9aac6561c
treeb38e4180eff1b1cf863c475d4807f719f9c85172
parentefba82790cc3683d1a5fe0a3580be6bbc646f6c2
env_nand: use nand_spl_load_image for readenv if SPL

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>
Acked-by: Scott Wood <scottwood@freescale.com>
common/env_nand.c