]> git.dujemihanovic.xyz Git - u-boot.git/commit
driver/mtd/spi:Read 8KB data chunk during u-boot load in SPL
authorPrabhakar Kushwaha <prabhakar@freescale.com>
Tue, 8 Apr 2014 13:43:11 +0000 (19:13 +0530)
committerYork Sun <yorksun@freescale.com>
Wed, 23 Apr 2014 00:58:50 +0000 (17:58 -0700)
commite278ddcd7fb6550b58030988467ef4b48d51bed8
treefb1478a74a79ff9faef011b1419a8281f8fe6632
parent5abed9c546be4a96db1443cd3abd5f82dfbe5903
driver/mtd/spi:Read 8KB data chunk during u-boot load in SPL

SPI driver perform its operation(read/write) on 64KB buffer chunk for data
greater than 64KB. This buffer chunk is allocated from system heap.

During SPL boot, 768KB of data is read from SPI flash.
Here, heap size may not be sufficient enough to full-fill 64KB buffer
requirement of SPI driver. So break down u-boot read operation at 8KB of chunk.

Also, fix a warning i.e. "unused variable buf" during CONFIG_FSL_CORENET

Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
drivers/mtd/spi/fsl_espi_spl.c