diff options
Diffstat (limited to 'common/spl/spl_onenand.c')
-rw-r--r-- | common/spl/spl_onenand.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/spl/spl_onenand.c b/common/spl/spl_onenand.c index d32333935a7..ee30f328e60 100644 --- a/common/spl/spl_onenand.c +++ b/common/spl/spl_onenand.c @@ -21,8 +21,7 @@ static int spl_onenand_load_image(struct spl_image_info *spl_image, debug("spl: onenand\n"); - /*use CONFIG_SYS_TEXT_BASE as temporary storage area */ - header = (struct image_header *)(CONFIG_SYS_TEXT_BASE); + header = spl_get_load_buffer(0, CONFIG_SYS_ONENAND_PAGE_SIZE); /* Load u-boot */ onenand_spl_load_image(CONFIG_SYS_ONENAND_U_BOOT_OFFS, CONFIG_SYS_ONENAND_PAGE_SIZE, (void *)header); |