X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=nand_spl%2Fnand_boot.c;h=563a80b9537705e88019c582c0fdb4e2072490e1;hb=54754120637b6a7f4ff774fb199fc550bcfea1da;hp=bc577252cf754fe695e5061ce51da6fd13104390;hpb=46f373838e384a4c23d13581b1dfa5acb66b5810;p=oweals%2Fu-boot.git diff --git a/nand_spl/nand_boot.c b/nand_spl/nand_boot.c index bc577252cf..563a80b953 100644 --- a/nand_spl/nand_boot.c +++ b/nand_spl/nand_boot.c @@ -221,19 +221,18 @@ static int nand_load(struct mtd_info *mtd, int offs, int uboot_size, uchar *dst) return 0; } +/* + * The main entry for NAND booting. It's necessary that SDRAM is already + * configured and available since this code loads the main U-Boot image + * from NAND into SDRAM and starts it from there. + */ void nand_boot(void) { - ulong mem_size; struct nand_chip nand_chip; nand_info_t nand_info; int ret; void (*uboot)(void); - /* - * Init sdram, so we have access to memory - */ - mem_size = initdram(0); - /* * Init board specific nand support */