From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Fri, 15 May 2015 13:59:32 -0500 Subject: [U-Boot] [PATCH] env_nand: use nand_spl_load_image for readenv if SPL In-Reply-To: <1431629284-1456-1-git-send-email-tharvey@gateworks.com> References: <1431629284-1456-1-git-send-email-tharvey@gateworks.com> Message-ID: <1431716372.3868.208.camel@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- > common/env_nand.c | 7 +++++++ > 1 file changed, 7 insertions(+) Acked-by: Scott Wood -Scott