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

Stefano Babic sbabic at denx.de
Tue May 19 15:02:52 CEST 2015


Hi Tim,

On 15/05/2015 20:59, Scott Wood wrote:
> 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 at gateworks.com>
>> ---
>>  common/env_nand.c | 7 +++++++
>>  1 file changed, 7 insertions(+)
> 
> Acked-by: Scott Wood <scottwood at freescale.com>
> 

Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================


More information about the U-Boot mailing list