]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
sdhc_boot: Introduce CONFIG_FSL_FIXED_MMC_LOCATION option
authorFabio Estevam <festevam@gmail.com>
Wed, 11 Jan 2012 09:20:50 +0000 (09:20 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sun, 12 Feb 2012 09:11:25 +0000 (10:11 +0100)
commit4394d0c2eec75509a8be7867f0346b2f993a6f93
tree681d2fea3a30ad4e76512bca45d0aadbdf0cb3cb
parent6be6db588d81aafd7a9e4c5282c9f8a0b93544db
sdhc_boot: Introduce CONFIG_FSL_FIXED_MMC_LOCATION option

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@freescale.com>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Stefano Babic <sbabic@denx.de>
board/freescale/common/Makefile
include/configs/MPC8536DS.h
include/configs/P1010RDB.h
include/configs/P1_P2_RDB.h
include/configs/P2020COME.h
include/configs/P2020DS.h
include/configs/P2041RDB.h
include/configs/corenet_ds.h
include/configs/p1_p2_rdb_pc.h