[U-Boot] [PATCH v2] sdhc_boot: Introduce CONFIG_FSL_FIXED_MMC_LOCATION option

Stefano Babic sbabic at denx.de
Thu Jan 12 09:45:39 CET 2012


On 11/01/2012 20:20, Fabio Estevam wrote:
> Since commit 97039ab98 (env_mmc: Allow board code to override the environment address)
> mmc_get_env_addr is a weak-aliased function in common/env_mmc.c
> 
> The mmc_get_env_addr implementation that exists at
> board/freescale/common/sdhc_boot.c is meant to be used only for PowerPC boards,
> but currently it is being used for all platforms that have CONFIG_ENV_IS_IN_MMC defined.
> 
> Introduce CONFIG_FSL_FIXED_MMC_LOCATION so that the boards that need to use 
> the mmc_get_env_addr version from board/freescale/common/sdhc_boot.c could activate
> this config option on their board file.
> 
> This fixes the retrieval of CONFIG_ENV_OFFSET on non-PowerPC boards.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
> ---
> Changes since v1:
> - Remove unneeded ifdef from board/freescale/common/sdhc_boot.c
>  board/freescale/common/Makefile |    2 +-
>  include/configs/MPC8536DS.h     |    1 +
>  include/configs/P1010RDB.h      |    1 +
>  include/configs/P1_P2_RDB.h     |    1 +
>  include/configs/P2020COME.h     |    1 +
>  include/configs/P2020DS.h       |    1 +
>  include/configs/P2041RDB.h      |    1 +
>  include/configs/corenet_ds.h    |    1 +
>  include/configs/p1_p2_rdb_pc.h  |    1 +
>  9 files changed, 9 insertions(+), 1 deletions(-)

Acked-by: Stefano Babic <sbabic at denx.de>

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================


More information about the U-Boot mailing list