]> git.sur5r.net Git - u-boot/commitdiff
nand: remove CONFIG_SYS_NAND_PAGE_SIZE
authorTim Harvey <tharvey@gateworks.com>
Thu, 8 May 2014 05:16:12 +0000 (22:16 -0700)
committerStefano Babic <sbabic@denx.de>
Thu, 15 May 2014 08:27:24 +0000 (10:27 +0200)
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.

Cc: Scott Wood <scottwood@freescale.com>
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Acked-by: Stefano Babic <sbabic@denx.de>
Acked-by: Scott Wood <scottwood@freescale.com>
common/spl/spl_nand.c

index 9da021862eaf9c67c4e680564222b9aae1f319bd..062461b2b6069140d604dbeab62b8f46db0ca9f5 100644 (file)
@@ -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);