diff options
author | Terry Lv <r65388@freescale.com> | 2010-05-17 02:57:01 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-09-19 15:47:29 (GMT) |
commit | a80603598cef13ab8031b514a603ef1a6169d249 (patch) | |
tree | df2e6fba57113709e6fe8b943024999d4e564283 /arch/powerpc | |
parent | 3adfd1143bd55608fa9ec81f98999d478c9313ba (diff) | |
download | u-boot-fsl-qoriq-a80603598cef13ab8031b514a603ef1a6169d249.tar.xz |
Save environment data to mmc.
This patch is to save environment data to mmc card.
It uses interfaces defined in generic mmc.
Signed-off-by: Terry Lv <r65388@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/lib/board.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/arch/powerpc/lib/board.c b/arch/powerpc/lib/board.c index 0e00d86..628d067 100644 --- a/arch/powerpc/lib/board.c +++ b/arch/powerpc/lib/board.c @@ -783,6 +783,17 @@ void board_init_r (gd_t *id, ulong dest_addr) nand_init(); /* go init the NAND */ #endif +#ifdef CONFIG_GENERIC_MMC +/* + * MMC initialization is called before relocating env. + * Thus It is required that operations like pin multiplexer + * be put in board_init. + */ + WATCHDOG_RESET (); + puts ("MMC: "); + mmc_initialize (bd); +#endif + /* relocate environment function pointers etc. */ env_relocate (); @@ -939,12 +950,6 @@ void board_init_r (gd_t *id, ulong dest_addr) scsi_init (); #endif -#ifdef CONFIG_GENERIC_MMC - WATCHDOG_RESET (); - puts ("MMC: "); - mmc_initialize (bd); -#endif - #if defined(CONFIG_CMD_DOC) WATCHDOG_RESET (); puts ("DOC: "); |