From: Scott Wood Date: Fri, 11 Sep 2009 13:06:22 -0500 Subject: [U-Boot] [PATCH v2 1/5] 85xx: add boot from NAND/eSDHC/eSPI support In-Reply-To: <1252639077-29277-1-git-send-email-Mingkai.hu@freescale.com> References: <1252639077-29277-1-git-send-email-Mingkai.hu@freescale.com> Message-ID: <4AAA919E.8040002@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Mingkai Hu wrote: > The MPC8536E is capable of booting form NAND/eSDHC/eSPI, this patch > implements these three bootup methods in a unified way - all of these > use the general cpu/mpc85xx/start.S, and load the main image to L2SRAM > which lets us use the SPD to initialize the SDRAM. > > For all three bootup methods, the bootup process can be divided into two > stages: the first stage will initialize the corresponding controller, > configure the L2SRAM, then copy the second stage image to L2SRAM and > jump to it. The second stage image is just like the general U-Boot image > to configure all the hardware and boot up to U-Boot command line. > > When boot from NAND, the eLBC controller will first load the first stage > image to internal 4K RAM buffer because it's also stored on the NAND > flash. The first stage image, also call 4K NADN loader, will initialize s/NADN/NAND/ here... > +#ifdef CONFIG_NADN_SPL > static void tlbsx (const volatile unsigned *addr) And more importantly, here. -Scott