]> code.ossystems Code Review - bsp/u-boot.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)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 20 May 2015 13:53:09 +0000 (10:53 -0300)
commitc52aa2e5968d99ef5783652f8e318a00089c9905
tree6bbe6e41946e74eae541a129312cd6ff94ecd7fb
parent5559f42a24126c1c3712294aa4d14915c5260573
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