diff options
author | Justin Waters <justin.waters@timesys.com> | 2013-07-09 10:27:11 -0400 |
---|---|---|
committer | Justin Waters <justin.waters@timesys.com> | 2013-08-05 14:27:09 -0400 |
commit | ad7df90230a5fe2ae06dbe1a6291ce58ed0d0988 (patch) | |
tree | 6b63242da7ccf7f291151ad05b9d357f99690707 | |
parent | b34e5cbed1b816a8b4f38217c8806c1417338074 (diff) |
am335x_evm: Add support for eMMC environment
Some boards, such as the BeagleBone Black, have an eMMC chip intstead
of NAND. We can use the eMMC boot partition to store the environment,
since it isn't used for anything else. This allows us to have a
configurable environment on those boards.
Signed-off-by: Justin Waters <justin.waters@timesys.com>
-rw-r--r-- | include/configs/am335x_evm.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index 0df0e7ac419..e3f75cde0b6 100644 --- a/include/configs/am335x_evm.h +++ b/include/configs/am335x_evm.h @@ -486,7 +486,12 @@ # define CONFIG_ENV_SPI_MAX_HZ CONFIG_SF_DEFAULT_SPEED # define CONFIG_ENV_OFFSET (892 << 10) /* 892 KiB in */ # define CONFIG_ENV_SECT_SIZE (4 << 10) /* 4 KB sectors */ -#endif /* SPI support */ +#elif defined(CONFIG_EMMC_BOOT) +# undef CONFIG_ENV_IS_NOWHERE +# define CONFIG_ENV_IS_IN_MMC +# define CONFIG_SYS_MMC_ENV_DEV 1 +# define CONFIG_SYS_MMC_ENV_PART 2 +#endif /* Unsupported features */ #undef CONFIG_USE_IRQ |