]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
env_mmc: allow negative CONFIG_ENV_OFFSET
authorStephen Warren <swarren@nvidia.com>
Tue, 11 Jun 2013 21:14:02 +0000 (15:14 -0600)
committerAndy Fleming <afleming@freescale.com>
Thu, 13 Jun 2013 21:52:20 +0000 (16:52 -0500)
commit5c088ee841f9c660a3e62887e7b8623fc15dcd68
treef2cf7e6bb7e0a66b7b3959ec3fd792c85b8dd2b7
parentf866a46d6ee86335f60c542e294ec2c01d689eba
env_mmc: allow negative CONFIG_ENV_OFFSET

A negative value of CONFIG_ENV_OFFSET is treated as a backwards offset
from the end of the eMMC device/partition, rather than a forwards offset
from the start.

This is useful when a single board may be stuffed with different eMMC
devices, each of which has a different capacity, and you always want the
environment to be stored at the very end of the device (or eMMC boot
partition for example).

One example of this case is NVIDIA's Ventana reference board.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
README
common/env_mmc.c