[U-Boot] [U-Boot,v2] env: add spi_flash_read_env function

Tom Rini trini at konsulko.com
Thu Jan 17 22:44:05 UTC 2019


On Tue, Dec 11, 2018 at 10:13:56AM +0100, Horatiu Vultur wrote:

> The spi_flash_read_env function is a wrapper over spi_flash_read, which
> enables the env to read multiple flash page size from flash until '\0\0'
> is read or the end of env partition is reached. Instead of reading the
> entire env size. When it reads '\0\0', it stops reading further the env
> and assumes that the rest of env is '\0'.
> 
> This is an optimization for large environments that contain few bytes
> environment variables. In this case it doesn't need to read the entire
> environment and only few pages.
> 
> Signed-off-by: Horatiu Vultur <horatiu.vultur at microchip.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190117/489c43b7/attachment.sig>


More information about the U-Boot mailing list