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)
committerAndy Fleming <afleming@freescale.com>
Wed, 5 Sep 2012 22:32:41 +0000 (17:32 -0500)
commit9404a5fc7cb58bc56152dfd7d355902dfb666f8b
tree161d64baeb1a02953f7900fd9818c359a719a427
parent8948ea830275afaa7c91fe7e13dd3c4b894a453f
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: Andy Fleming <afleming@freescale.com>
common/env_mmc.c