From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Sun Date: Tue, 20 Aug 2013 10:06:49 -0700 Subject: [U-Boot] [PATCH 4/7 v11] powerpc : spi flash : Support to start from eSPI with SPL In-Reply-To: <1376637376-25563-4-git-send-email-ying.zhang@freescale.com> References: <1376637376-25563-1-git-send-email-ying.zhang@freescale.com> <1376637376-25563-4-git-send-email-ying.zhang@freescale.com> Message-ID: <5213A229.4070102@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 On 08/16/2013 12:16 AM, ying.zhang at freescale.com wrote: > From: Ying Zhang > > This patch introduces SPL to enable a loader stub that being loaded by > the code from the internal on-chip ROM. It loads the final uboot image > into DDR, then jump to it to begin execution. > > The SPL's size is sizeable, the maximum size must not exceed the size of L2 > SRAM. It initializes the DDR through SPD code, and copys final uboot image > to DDR. So there are two stage uboot images: > * spl_boot, 96KB size. The env variables are copied to L2 SRAM, so that > ddr spd code can get the interleaving mode setting in env. It loads > final uboot image from offset 96KB. > * final uboot image, size is variable depends on the functions enabled. > > Signed-off-by: Ying Zhang > --- > Change from v10: > - No change. > Change from v9: > - Modify drivers/mtd/spi/fsl_espi_spl.c, fix checkpatch warnings. > Change from v8: > - No change. > Change from v7: > - No change. > Change from v6: > - No change. > Change from v5: > - Split from "powerpc/p1022ds: boot from spi flash with SPL". > - this patch add the capability starting from eSPI with SPL. > Change from v4: > - No change. > Change from v3: > - No change. > Change from v2: > - No change. > Change from v1: > - Split from "boot from SD card/SPI flash with SPL". > > drivers/mtd/spi/Makefile | 1 + > drivers/mtd/spi/fsl_espi_spl.c | 77 ++++++++++++++++++++++++++++++++++++++++ > drivers/mtd/spi/spi_flash.c | 2 + > 3 files changed, 80 insertions(+), 0 deletions(-) > create mode 100644 drivers/mtd/spi/fsl_espi_spl.c Applied to u-boot-mpc85xx.git. York