diff options
author | Andy Fleming <afleming@freescale.com> | 2008-10-30 16:19:25 -0500 |
---|---|---|
committer | Andy Fleming <afleming@freescale.com> | 2009-02-16 18:07:40 -0600 |
commit | b2e2ed0233a5ef299361abec4fbdaefb63456eff (patch) | |
tree | ff07986e344483f9813677931b235d5bc10655ec /common/cmd_mem.c | |
parent | e1be0d25ecf494ae81245ca438738ba839d6329b (diff) | |
download | u-boot-imx-b2e2ed0233a5ef299361abec4fbdaefb63456eff.zip u-boot-imx-b2e2ed0233a5ef299361abec4fbdaefb63456eff.tar.gz u-boot-imx-b2e2ed0233a5ef299361abec4fbdaefb63456eff.tar.bz2 |
Eliminate support for using MMC as memory
MMC cards are not memory, so we stop treating them that way.
Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'common/cmd_mem.c')
-rw-r--r-- | common/cmd_mem.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/common/cmd_mem.c b/common/cmd_mem.c index a203e0d..2d4fc2a 100644 --- a/common/cmd_mem.c +++ b/common/cmd_mem.c @@ -29,9 +29,6 @@ #include <common.h> #include <command.h> -#if defined(CONFIG_CMD_MMC) -#include <mmc.h> -#endif #ifdef CONFIG_HAS_DATAFLASH #include <dataflash.h> #endif @@ -404,46 +401,6 @@ int do_mem_cp ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) } #endif -#if defined(CONFIG_CMD_MMC) - if (mmc2info(dest)) { - int rc; - - puts ("Copy to MMC... "); - switch (rc = mmc_write ((uchar *)addr, dest, count*size)) { - case 0: - putc ('\n'); - return 1; - case -1: - puts ("failed\n"); - return 1; - default: - printf ("%s[%d] FIXME: rc=%d\n",__FILE__,__LINE__,rc); - return 1; - } - puts ("done\n"); - return 0; - } - - if (mmc2info(addr)) { - int rc; - - puts ("Copy from MMC... "); - switch (rc = mmc_read (addr, (uchar *)dest, count*size)) { - case 0: - putc ('\n'); - return 1; - case -1: - puts ("failed\n"); - return 1; - default: - printf ("%s[%d] FIXME: rc=%d\n",__FILE__,__LINE__,rc); - return 1; - } - puts ("done\n"); - return 0; - } -#endif - #ifdef CONFIG_HAS_DATAFLASH /* Check if we are copying from RAM or Flash to DataFlash */ if (addr_dataflash(dest) && !addr_dataflash(addr)){ |