Skip to content
  • Stephen Warren's avatar
    env_mmc: allow negative CONFIG_ENV_OFFSET · 5c088ee8
    Stephen Warren authored
    
    
    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's avatarStephen Warren <swarren@nvidia.com>
    Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
    5c088ee8