From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikita Kiryanov Date: Wed, 09 Apr 2014 17:55:08 +0300 Subject: [U-Boot] [PATCH 01/11] SPL: NAND: remove CONFIG_SYS_NAND_PAGE_SIZE In-Reply-To: <1396504871-1454-2-git-send-email-tharvey@gateworks.com> References: <1396504871-1454-1-git-send-email-tharvey@gateworks.com> <1396504871-1454-2-git-send-email-tharvey@gateworks.com> Message-ID: <53455F4C.10604@compulab.co.il> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Tim, On 04/03/2014 09:01 AM, Tim Harvey wrote: > We only need to read in the size of struct image_header and thus don't > need to know the page size of the nand device. > > Signed-off-by: Tim Harvey > --- > common/spl/spl_nand.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/common/spl/spl_nand.c b/common/spl/spl_nand.c > index 9da0218..062461b 100644 > --- a/common/spl/spl_nand.c > +++ b/common/spl/spl_nand.c > @@ -76,7 +76,7 @@ void spl_nand_load_image(void) > #endif > /* Load u-boot */ > nand_spl_load_image(CONFIG_SYS_NAND_U_BOOT_OFFS, > - CONFIG_SYS_NAND_PAGE_SIZE, (void *)header); > + sizeof(*header), (void *)header); > spl_parse_image_header(header); > nand_spl_load_image(CONFIG_SYS_NAND_U_BOOT_OFFS, > spl_image.size, (void *)spl_image.load_addr); > +1 -- Regards, Nikita.