mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
env_mmc: support env partition setup in runtime
Add callback with __weak annotation to allow setup of environment partition number in runtime from a board file. Propagate mmc_switch_part() return value into init_mmc_for_env() instead of -1 in case of failure. Signed-off-by: Dmitry Lifshitz <lifshitz@compulab.co.il> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il> Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
This commit is contained in:
parent
ac77f42d09
commit
6e7b7df4df
2 changed files with 26 additions and 12 deletions
|
@ -184,6 +184,9 @@ extern void env_reloc(void);
|
|||
#include <mmc.h>
|
||||
|
||||
extern int mmc_get_env_addr(struct mmc *mmc, int copy, u32 *env_addr);
|
||||
# ifdef CONFIG_SYS_MMC_ENV_PART
|
||||
extern uint mmc_get_env_part(struct mmc *mmc);
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef DO_DEPS_ONLY
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue