env_mmc: allow environment to be in an eMMC partition
authorStephen Warren <swarren@nvidia.com>
Mon, 30 Jul 2012 10:55:44 +0000 (10:55 +0000)
committerTom Warren <twarren@nvidia.com>
Fri, 7 Sep 2012 20:54:31 +0000 (13:54 -0700)
commit300feff3241def7a972a01915b75b7a1e1ec2d62
tree0569cd4d57828a551db4114c61cb9183564fa791
parent29159057a168fce0fb473b7771bb4f0940527213
env_mmc: allow environment to be in an eMMC partition

eMMC devices may have hardware-level partitions: 2 boot partitions,
up to 4 general partitions, plus the user area. This change introduces
optional config variable CONFIG_SYS_MMC_ENV_PART to indicate which
partition the environment should be stored in: 0=user, 1=boot0, 2=boot1,
4..7=general0..3. This allows the environment to be kept out of the user
area, which simplifies the management of OS-/user-level (MBR/GPT)
partitions within the user area.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
common/env_mmc.c