diff options
| author | Dmitry Lifshitz <[email protected]> | 2014-07-30 13:19:06 +0300 |
|---|---|---|
| committer | Pantelis Antoniou <[email protected]> | 2014-08-01 20:12:15 +0300 |
| commit | 6e7b7df4df435742fcfde5f384760ae1bda2e39c (patch) | |
| tree | 64f0cc9f8d1d07ca8f19d66cf2a9f0ba17eead23 /include | |
| parent | ac77f42d0939f05b39335277b678859b47edb997 (diff) | |
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 <[email protected]>
Signed-off-by: Igor Grinberg <[email protected]>
Acked-by: Pantelis Antoniou <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/environment.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/environment.h b/include/environment.h index d7a1adf716f..1fdbdad8822 100644 --- a/include/environment.h +++ b/include/environment.h @@ -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 |
