summaryrefslogtreecommitdiffstats
path: root/common/spl
diff options
context:
space:
mode:
authorTim Harvey <tharvey@gateworks.com>2014-05-07 22:16:12 -0700
committerStefano Babic <sbabic@denx.de>2014-05-15 10:27:24 +0200
commit50c8d66d33651d7fca6a082a1eea6e537401a2f4 (patch)
tree775c6a23b8cde937f93dcf7545eddfb9aad43a05 /common/spl
parent0ef797a59eba57a03ab40af439c7968b8a45d31b (diff)
downloadtalos-obmc-uboot-50c8d66d33651d7fca6a082a1eea6e537401a2f4.tar.gz
talos-obmc-uboot-50c8d66d33651d7fca6a082a1eea6e537401a2f4.zip
nand: remove CONFIG_SYS_NAND_PAGE_SIZE
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>
Diffstat (limited to 'common/spl')
-rw-r--r--common/spl/spl_nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/spl/spl_nand.c b/common/spl/spl_nand.c
index 9da021862e..062461b2b6 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);
OpenPOWER on IntegriCloud