]> git.sur5r.net Git - u-boot/commit
env_mmc: support env partition setup in runtime
authorDmitry Lifshitz <lifshitz@compulab.co.il>
Wed, 30 Jul 2014 10:19:06 +0000 (13:19 +0300)
committerPantelis Antoniou <panto@antoniou-consulting.com>
Fri, 1 Aug 2014 17:12:15 +0000 (20:12 +0300)
commit6e7b7df4df435742fcfde5f384760ae1bda2e39c
tree64f0cc9f8d1d07ca8f19d66cf2a9f0ba17eead23
parentac77f42d0939f05b39335277b678859b47edb997
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>
common/env_mmc.c
include/environment.h