From: Scott Wood Date: Mon, 11 Apr 2011 13:56:08 -0500 Subject: [U-Boot] [PATCH v1 2/2] nand/spl: Assuming a static nand page size to reduce code size In-Reply-To: <1302032374-28857-2-git-send-email-msm@freescale.com> References: <20110405140350.37fb9928@schlenkerla.am.freescale.net> <1302032374-28857-1-git-send-email-msm@freescale.com> <1302032374-28857-2-git-send-email-msm@freescale.com> Message-ID: <20110411185608.GA25161@schlenkerla.am.freescale.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Apr 05, 2011 at 02:39:34PM -0500, Matthew McClintock wrote: > Change variables to const to reduce code size, these values are > hardcoded via defines anyways so we might as well assume they > are constants > > Signed-off-by: Matthew McClintock > cc: Scott Wood > --- > With this change we can reduce the size of the nand_spl by > 148 bytes with my particular board/compiler > > v1: Add prior patch to correct naming of CONFIG_SYS_NAND_*_PRELIM Applied to u-boot-nand-flash -Scott