From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Thu, 29 Dec 2011 13:38:10 +0100 Subject: [U-Boot] [PATCH] sdhc_boot: Introduce CONFIG_FSL_FIXED_MMC_LOCATION option In-Reply-To: References: <1324398781-11198-1-git-send-email-festevam@gmail.com> Message-ID: <201112291338.11194.marek.vasut@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > >-----Original Message----- > >From: Fabio Estevam [mailto:festevam at gmail.com] > >Sent: Wednesday, December 21, 2011 12:33 AM > >To: u-boot at lists.denx.de > >Cc: sbabic at denx.de; marek.vasut at gmail.com; Fleming Andy-AFLEMING; Gala > >Kumar-B11780; Guo Shawn-R65073; Liu Hui-R64343; Huang Changming-R66093; > >Estevam Fabio-R49496 > >Subject: [PATCH] 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 > >--- > > > > board/freescale/common/Makefile | 2 +- > > board/freescale/common/sdhc_boot.c | 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 + > > 10 files changed, 11 insertions(+), 1 deletions(-) > > Acked-by: Jason Liu Did you get a third identity (Liu Hui)? M